Community Note
- Please vote on this issue by adding a π reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version and Provider Version
terraform --version
Terraform v0.14.7
- provider registry.terraform.io/hashicorp/oci v4.14.0
- provider registry.terraform.io/hashicorp/template v2.2.0
Affected Resource(s)
oci_core_instance
bastion
Terraform Configuration Files
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file.
# Please remove any sensitive information from configuration files before sharing them.
Debug Output
Panic Output
Expected Behavior
By filling mandatory parameters, terraform plan should pass.
Actual Behavior
terraform plan fails for bastion resources creation as it is set as default enabled etc. Either documentation should says its mandatory or it should be default false in codebase
Steps to Reproduce
terraform apply
a) Fill mandatory parameters
b) terraform init
Terraform has been successfully initialized!
c) terraform plan
Error: Invalid function argument
on .terraform/modules/bastion/compute.tf line 29, in resource "oci_core_instance" "bastion":
29: ssh_authorized_keys = var.ssh_public_key != "" ? var.ssh_public_key : file(var.ssh_public_key_path)
|----------------
| var.ssh_public_key_path is ""
Invalid value for "path" parameter: failed to read ..
Error: Invalid function argument
on .terraform/modules/operator/compute.tf line 35, in resource "oci_core_instance" "operator":
35: ssh_authorized_keys = var.ssh_public_key != "" ? var.ssh_public_key : file(var.ssh_public_key_path)
|----------------
| var.ssh_public_key_path is ""
Invalid value for "path" parameter: failed to read ..
Important Factoids
References