Skip to content
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

provider/aws ASG termination_policies changes force new resources #2931

Closed
dlsniper opened this issue Aug 4, 2015 · 4 comments
Closed

provider/aws ASG termination_policies changes force new resources #2931

dlsniper opened this issue Aug 4, 2015 · 4 comments

Comments

@dlsniper
Copy link
Contributor

dlsniper commented Aug 4, 2015

Hi,

I have the following situation inside an aws_autoscaling_group when performing a change in the termination policies:

termination_policies.#:          "0" => "3" (forces new resource)
termination_policies.3089922268: "" => "ClosestToNextInstanceHour" (forces new resource)
termination_policies.3602983927: "" => "OldestLaunchConfiguration" (forces new resource)
termination_policies.912102603:  "" => "OldestInstance" (forces new resource)

This change should not require a new ASG as it can be applied in place.
I will gladly work on this when I'll have time but any pointers on how to get it done would also be great.

Thank you.

@pforman
Copy link
Contributor

pforman commented Aug 5, 2015

I had the same issue. I wrote PR #2890 for it. The details for why it breaks (basically "update" was never written) are in there.

It also fixes the fact that Terraform can incorrectly reorder your policies if you have more than one.

@dlsniper dlsniper changed the title AWS ASG termination_policies changes force new resources provider/aws ASG termination_policies changes force new resources Aug 5, 2015
@stack72
Copy link
Contributor

stack72 commented Oct 31, 2015

@catsby this can now be closed as #2890 was merged

@catsby
Copy link
Contributor

catsby commented Nov 2, 2015

Thanks for the cleanup work, @stack72 😄

@ghost
Copy link

ghost commented Apr 30, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants