-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Removing key_name from launch configs does not trigger an updated launch config. #1676
Comments
+1 with terraform v0.11.1 |
We are seeing the same behaviour with As a workaround we taint the affected resources. |
+1 with terraform v0.11.11, provider.aws v1.60.0 |
We are also seeing the same issue with terraform v0.12.20 and aws provider version v2.49.0 |
+1 with terraform v0.12.23, provider.aws v2.52.0 |
Looks like this is related to the Terraform behavior described in hashicorp/terraform#4501. |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
remove stale |
This bug is still happening, is there any proposed fix on Terraform's side? |
still happens on v1.3.4 |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
This issue was originally opened by @Juberstine as hashicorp/terraform#15944. It was migrated here as a result of the provider split. The original body of the issue is below.
I needed to remove the key_name attached to an instance created by an ASG via a LC.
But running plan showed no change to be made.
Terraform Version
v0.9.5
Affected Resource(s)
Please list the resources as a list, for example:
aws_launch_configuration
Terraform Configuration Files
Actual code block post update. The only change made here was the removal of key_name:
All vars are set.
Inside the launch configs, the only code change was the removal of:
key_name = "${aws_key_pair.deployer.key_name}"
The above var was set but the concept here is that removing key_name does not trigger the LC to change.
Expected Behavior
LC should have been recreated without key_name.
Actual Behavior
Nothing.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Remove the key_name value from launch configs
terraform plan
terraform apply
Seems similar to the issue another user experience with EBS:
hashicorp/terraform#14826
The text was updated successfully, but these errors were encountered: