-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
ASG Failed scale up after update aws_launch_template with aws provider 2.61.0 (currently latest version) #874
Comments
I've put a fix in #875. Can you confirm that it fixes your issue? |
HI @dpiddockcmp , thanks for fix. It do solve our issue when we didn't set "launch_template_placement_group" in "var.worker_groups_launch_template". |
Reopening until a fix is merged upstream or in this module. |
For us reverting to provider Reverting to previous launch template version stopped the bleeding (be sure not to revert to incompatible AMIs or anything). Trick to fix if having broken asg via provider |
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. |
I have an issue when I update aws_launch_template with provider.aws=2.61.0.
I'm submitting a...
What is the current behavior?
The latest terraform provider rolled out a new improvement with in MR. It will set "partition_number" to 0 when you not handle it at placement. This will cause ASG failed to launch instance with error
Launching a new EC2 instance. Status Reason: Could not launch Spot Instances. InvalidParameterValue - You cannot use PartitionNumber with a Placement Group that does not exist. Specify a valid Placement Group and try again. Launching EC2 instance failed.
If this is a bug, how to reproduce? Please include a code sample if relevant.
Use aws provider 2.61.0 (currently latest version), update any launch template and apply
What's the expected behavior?
ASG will failed to scale up
Are you able to fix this problem and submit a PR? Link here if you have already.
NA
Environment details
Any other relevant info
The text was updated successfully, but these errors were encountered: