Skip to content

Use create_before_destroy for launch_configuration #5

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

Closed
wants to merge 1 commit into from

Conversation

brantburnett
Copy link

Motivation

If the launch configuration changes, for example if the user data is modified, the new launch configuration must be created and applied to the auto scaling group before the old one may be destroyed.

Modifications

Use "name_prefix" instead of "name" for the launch configuration.

Set lifecycle of "create_before_destroy" to true.

Results

User data can be modified and applied to the existing auto scaling group without errors.

The launch configuration will gain a random suffix, to avoid name conflicts.

Motivation
----------
If the launch configuration changes, for example if the user data is modified, the new launch configuration must be created and applied to the auto scaling group before the old one may be destroyed.

Modifications
-------------
Use "name_prefix" instead of "name" for the launch configuration.

Set lifecycle of "create_before_destroy" to true.

Results
-------
User data can be modified and applied to the existing auto scaling group without errors.

The launch configuration will gain a random suffix, to avoid name conflicts.
@krotkiewicz
Copy link
Member

I added in during small redesign, please take a look at 2.0.0 version.

rraub pushed a commit to rraub/terraform-aws-rabbitmq that referenced this pull request Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants