-
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
[Bug]: aws_autoscaling_group (invalid new value for .mixed_instances_policy.launch_template.override) fails on change #34543
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
I have the same issue in the actual aws provider version 5.28.0 |
I've got a hopefully-canned reproduction configuration, it's not perfectly minimal but reasonably close. I can reproduce without using dynamic blocks, though my configuration also uses them for very similar dev v. prod reasons. I've attached the main.tf... as a .txt file because github: main.tf.txt I'm getting the same issue with the non-override To use the main.tf:
If I had to guess about a codebase I do not know, the "known after apply" attribute of the launch template version has been lost somewhere. |
Reverting the commits in https://github.com/hashicorp/terraform-provider-aws/pull/34086/commits removes this issue -- of course it will re-introduce the issue that PR resolves. |
Hello! we are seeing this issue on version 5.29.0. It looks like the revert hasn't been merged into main yet, looking forward to a fix for this! |
This functionality has been released in v5.37.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. Thank you! |
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. |
Terraform Core Version
1.6.4
AWS Provider Version
5.26.0
Affected Resource(s)
aws_autoscaling_group
Expected Behavior
ASG is created with a mixed_instances_policy.override that includes multiple instance types.
Actual Behavior
Terraform plan works.
Terraform apply fails with:
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Apply ASG the first time with any list of instance types, this will work.
Make any change to the list and you get an error for the block changing values.
Deleting the ASG before applying new values allows this to succeed.
Debug Output
No response
Panic Output
No response
Important Factoids
This bug first appeared in 5.23.1 to our knowledge. We recently retried with current version 5.26.0 and as it's still an issue we're logging it.
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: