-
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
recreating launch configuration always error and need to rerun to delete "deposed" one #3987
Comments
Hi @kzw 👋 could you show us a sanitized version of your |
You commented in another issue you close that I should not specify AZ in vpc asg and I have not gotten around to removing it yet but here is the current code
module
module
|
Hmm, not sure if I understand correctly, but you may need to use the name_prefix attribute instead of name: name_prefix = "stagingsandbox-services-" Then it'll automatically append a timestamp or something to that to form the actual name. That way, if there are any changes that require a new launch configuration, it can create the new one, with a new name, link it to the ASG, and then delete the old one. That's what I've done for my launch configurations. |
I prefer |
Still happening here too, I have create_before_destroy set to true. A way around this might be to use launch templates and just point the ASG at the latest version of that |
Out of a sudden this happened here too. Tried to |
Update your AWS provider, we had the same issue until 1.56.0. |
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! |
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. |
Whenever I have to recreate a launch configuration attached to an asg, terraform errors with a typical message like the following
Terraform Version
0.11.5
Affected Resource(s)
launch configuration
Terraform Configuration Files
Debug Output
.
Panic Output
.
Expected Behavior
No error
Actual Behavior
I need to deal with the error and re
apply
Steps to Reproduce
any adjustment to launch configuration
Important Factoids
References
The text was updated successfully, but these errors were encountered: