terraform-provider-oci
terraform-provider-oci copied to clipboard
Bastion session creation fails
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 v1.8.4
on darwin_arm64
+ provider registry.terraform.io/hashicorp/oci v5.42.0
+ provider registry.terraform.io/oracle/oci v5.42.0
Affected Resource(s)
oci_bastion_session
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.
resource "oci_bastion_session" "hub_mysql_session" {
count = var.instance_count_mysql
#Required
bastion_id = oci_bastion_bastion.hub_bastion.id
key_details {
#Required
public_key_content = var.ssh_public_keys
}
target_resource_details {
#Required
session_type = "MANAGED_SSH"
#Optional
target_resource_id = module.hub_mysql.instance_id[count.index]
target_resource_operating_system_user_name = var.instance_username
}
#Optional
display_name = [for v in module.hub_mysql.instance_all_attributes : v.display_name][count.index]
session_ttl_in_seconds = var.session_session_ttl_in_seconds
timeouts {
create = "60m"
update = "60m"
delete = "60m"
}
}
Debug Output
https://gist.github.com/kocic11/a948dbbd994a2ea567e97fe112a3dc75
Panic Output
Expected Behavior
The bastion session should have been created.
Actual Behavior
The bastion session creation failed.
Steps to Reproduce
-
terraform apply