terraform-aws-modules / terraform-aws-vpn-gateway

Terraform module to create AWS VPN gateway resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/vpn-gateway/aws
Apache License 2.0
111 stars 154 forks source link

Q: Workaround for computed resource output as shared key? #65

Closed naseemkullah closed 2 years ago

naseemkullah commented 2 years ago

it cannot use a computed resource output (e.g. random_password.my_shared_key.result) as input for the shared key

Is this an anti-pattern or should the module be able to support that?

naseemkullah commented 2 years ago

It probably makes sense to always store any computed resource ouput password as a secret outside of terraform and then use a data source.

antonbabenko commented 2 years ago

There is a long-standing issue in Terraform - https://github.com/hashicorp/terraform/issues/4149 - which means that users need to create such resources in advance using -target and then run terraform apply to create the rest of resources.

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.