Create AWS EC2 Auto Scaling Groups
The boto package is required for this role
You are required to pass in the following variables:
- component
- service
- env
- region
- ami_id
- sec_groups
If you require load balancers associated with the ASG, you should already have them created.
You should also have an IAM role 'Default-ec2-Role' available for the instances. You can specify your own one with the 'iam_role' variable
- hosts: localhost
vars:
volumes:
- name: My_Volume
size: 30
zone: eu-west-1b
device: /dev/xvdf
component: mgt
env: nonprod
service: auth
region: eu-west-2
sec_groups:
- Auth-SG
- default
ami_id: ami-01234567
roles:
- { role: ec2-asg }
GPL
Iain M Conochie [email protected]