-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Launch configurations update #2183
Comments
#1109 (comment) addresses the problem. Any chance to be able to generate an UID as a builtin method so that you can still specify name (and have it work with the LC update issue) instead of Something better than this: variable "uid" {
description = "UID to re-generate resources"
# date '+%m-%d-%Y_%H_%m_%S'
default = "06-01-2015_18_06"
} resource "aws_launch_configuration" "fortytwo_default" {
name = "fortytwo-default-${var.uid}"
} If we could just let terraform generate the UID but be able to override the I also tried to use a |
Hi @scalp42 - thanks for the detailed report here. Sounds like the root issue here is figured out - I just opened #2269 to track the feature that I believe supports the use-case you're talking about at the end here. I'm going to close this issue, but feel free to let me know if you believe there's some reason we should leave this open. 👍 |
Hi, Although the ticket is closed and related (somehow) to #2269 I think this should be dealt separately for the following reasons:
In practice: once created you can't update a auto-scaling group and launch configuration via Terraform, therefore the severity/priority of this issue should be considered higher than the related ticket. The only way I've managed to updated the launch configuration once created by Terraform, is by following these steps:
As you might imagine this isn't fun, and the copy/clone, as described above, could be done "easily" by terraform under the hood. Is there any chance to get a resolution any time soon? |
Hi @BrunoBonacci - sorry for the frustrating experience you've been having with LCs / ASGs in Terraform. The specifics of these resources that make this more complicated than other areas of the AWS APIs:
This places constraints on valid configurations, but there are definitely several ways to successfully manage a complete LC/ASG lifecycle via Terraform. I recently explained what we do at HashiCorp on the Terraform mailing list which gives a full working example of one such strategy: https://groups.google.com/d/msg/terraform-tool/7Gdhv1OAc80/iNQ93riiLwAJ |
Hi Paul, many thanks for your suggestions and the sample in the link, It would be good if you could add the ASG and LC sample you sent me in the Terraform documentation, Bruno |
This helps a lot. |
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'm running into an issue when updating launch configurations (for example updating the instance size).
Based on this config:
I run apply and then try to change the instance size to
m3.medium
:Result from running
plan
:Result when try to run
apply
:Thanks in advance for looking at it!
The text was updated successfully, but these errors were encountered: