Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bastion session creation fails #2122

Open
kocic11 opened this issue May 23, 2024 · 0 comments
Open

Bastion session creation fails #2122

kocic11 opened this issue May 23, 2024 · 0 comments
Labels

Comments

@kocic11
Copy link

kocic11 commented May 23, 2024

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

  1. terraform apply

Important Factoids

References

@kocic11 kocic11 added the bug label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant