|
|
@ -119,6 +119,8 @@ extends_documentation_fragment: aws
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
EXAMPLES = '''
|
|
|
|
|
|
|
|
A basic example of configuration:
|
|
|
|
|
|
|
|
|
|
|
|
- ec2_asg:
|
|
|
|
- ec2_asg:
|
|
|
|
name: special
|
|
|
|
name: special
|
|
|
|
load_balancers: 'lb1,lb2'
|
|
|
|
load_balancers: 'lb1,lb2'
|
|
|
@ -132,15 +134,11 @@ EXAMPLES = '''
|
|
|
|
- environment: production
|
|
|
|
- environment: production
|
|
|
|
propagate_at_launch: no
|
|
|
|
propagate_at_launch: no
|
|
|
|
|
|
|
|
|
|
|
|
deprecated method of expressing tags:
|
|
|
|
Below is an example of how to assign a new launch config to an ASG and terminate old instances.
|
|
|
|
tags:
|
|
|
|
|
|
|
|
- key: environment
|
|
|
|
|
|
|
|
value: production
|
|
|
|
|
|
|
|
propagate_at_launch: no
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example of how to assign a new launch config to an ASG and terminate old instances.
|
|
|
|
|
|
|
|
All instances in "myasg" that do not have the launch configuration named "my_new_lc" will be terminated in
|
|
|
|
All instances in "myasg" that do not have the launch configuration named "my_new_lc" will be terminated in
|
|
|
|
a rolling fashion with instances using the current launch configuration, "my_new_lc".
|
|
|
|
a rolling fashion with instances using the current launch configuration, "my_new_lc".
|
|
|
|
|
|
|
|
|
|
|
|
This could also be considered a rolling deploy of a pre-baked AMI.
|
|
|
|
This could also be considered a rolling deploy of a pre-baked AMI.
|
|
|
|
|
|
|
|
|
|
|
|
If this is a newly created group, the instances will not be replaced since all instances
|
|
|
|
If this is a newly created group, the instances will not be replaced since all instances
|
|
|
@ -167,8 +165,7 @@ will have the current launch configuration.
|
|
|
|
desired_capacity: 5
|
|
|
|
desired_capacity: 5
|
|
|
|
region: us-east-1
|
|
|
|
region: us-east-1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To only replace a couple of instances instead of all of them, supply a list
|
|
|
|
If you only wanted to replace a couple of instances instead of all of them, supply a list
|
|
|
|
|
|
|
|
to "replace_instances":
|
|
|
|
to "replace_instances":
|
|
|
|
|
|
|
|
|
|
|
|
- ec2_asg:
|
|
|
|
- ec2_asg:
|
|
|
|