# AutoScaling group
- ec2_asg:
name: "asg"
state: present
region: "{{ region }}"
load_balancers: "{{ elb_name }}"
availability_zones: [ '{{ az1 }}', '{{ az2 }}', '{{ az3 }}' ]
launch_config_name: "config"
min_size: "{{ min_size }}"
max_size: "{{ max_size }}"
desired_capacity: "{{ desired_capacity }}"
vpc_zone_identifier: "{{ vpc_zone_identifier }}"
# Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health
health_check_period: 900
health_check_type: ELB
tags:
- Name: "AutoScalingNode"
propagate_at_launch: true
- Environment: "Dev"
propagate_at_launch: true
"""