-
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
aws_launch_template update from 3.58 -> 3.59 state not migrated #20977
Comments
I think the problem here is that terraform-provider-aws/aws/resource_aws_launch_template.go Lines 389 to 394 in 1be601a
needs to be |
Hmm, no. If it's
|
Has there been any more research on this since it happened? We are running into the same thing and we tried We have also tried manually adding the property in the state, updating our DynamoDB md5 hash, and then re-running the In our smaller environment, we took the blow and cycled all of the EC2 instances in our EKS managed nodegroup. Doing that for production is a much bigger task and we would prefer not to do that. |
Hi everybody. I've just met the same problem. It occurred for me after upgrading my providers and migrating my Terraform code to replace module EKS by native resources. I solved the problem by removing my aws_launch_template from the state : |
@pdechandol, doesn't that create a resource and leave the original resource orphaned? |
@ingshtrom You're right, working like this, I've created a new resource If you want to keep your existing resource, maybe you could investigate the |
Interesting. I hadn't thought about doing a remove and then import 🤔 . I may have to try that. |
This was addressed via #22277. |
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Plan Output
Expected Behavior
New default variable triggers
aws_launch_template
update which triggers node rolling upgrade because their launch configuration would change.Actual Behavior
New parameters with proper default value should not trigger update of resource but the state should be migrated to reflect the new default value change.
Steps to Reproduce
terraform plan
References
http_protocol_ipv6
tometadata_options
#20796The text was updated successfully, but these errors were encountered: