-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS OpsWorks ssh_key in app_source keeps re-applying #165
Comments
I would like some idea on how to debug things, basically I want like a way for terraform to tell me why is it trying to recreate the resource |
Note that adding to |
I gave up using |
One limitation of the above solution is it only works for short keys (like API tokens). OpsWorks environment variables are limited to 256 characters, see: https://docs.aws.amazon.com/opsworks/latest/APIReference/API_EnvironmentVariable.html If you attempt to fit a large key in an environment variable Terraform will error with:
|
Any luck here or recommended workarounds? |
As a work around in some of our stacks, we uploaded the deployment key to SSM Parameter Store (which is free) and pass in the key name as an environment variable. Then in the deploy recipe we pull the key from SSM PS. For the stacks without the workaround, in Terraform 11 this problem was a nuisance but as TF 11 only printed the key it wasn't that hard to ignore during the plan/apply.
Now Terraform 12 prints the entire
The diffs have gone from two lines (with a blob of private key) to at least 100 lines (if you have any number of environment variables) with the blob of private key and another blob of TLS certificate if supplied. |
Just reproduced this issue using Terraform v0.11.10 Any workarounds? |
Having the same exact issue for Terraform v0.12.3 with provider.aws v2.21.0 Any workaround suggestion is highly appreciated |
This has been released in version 2.39.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @iroller as hashicorp/terraform#6648. It was migrated here as part of the provider split. The original body of the issue is below.
Hi there,
It looks like there's the same issue as hashicorp/terraform#3635 existing in aws_opsworks_application -> app_source -> ssh_key.
Config:
On terraform plan/apply it keeps re-applying the ssh_key even though it's the same.
Also if it's filtered it shouldn't be displayed:
Terraform Version
v0.6.15
Affected Resource(s)
The text was updated successfully, but these errors were encountered: