14 vpc_id: "{{ vpc.vpc.id }}"
15 region: "{{ vpc_region }}"
18 description: "vpcaccess rules"
22 cidr_ip: "{{ vpc.vpc.cidr_block }}"
26 register: sg_vpcaccess
30 region: "{{ vpc_region }}"
32 image_id: "{{ DEFAULT_AMI }}"
33 key_name: "{{ MANAGEMENT_KEY_NAME }}"
34 instance_profile_name: vpcaccess
36 - "{{ sg_vpcaccess.group_id }}"
37 - "{{ sg_ssh.group_id }}"
38 instance_type: m4.large
40 # setting the root volume seems to prevent instances from launching
41 # - device_name: /dev/sda1
44 # delete_on_termination: true
45 - device_name: /dev/sdb
47 - device_name: /dev/sdc
49 - device_name: /dev/sdd
51 - device_name: /dev/sde
53 register: vpcaccess_lc
55 - name: suss out our subnets
57 region: "{{ vpc_region }}"
59 vpc_id: "{{ vpc.vpc.id }}"
61 register: public_subnet_ids
64 var: public_subnet_ids
68 region: "{{ vpc_region }}"
74 vpc_zone_identifier: "{{ public_subnet_ids.subnets|map(attribute='id')|list }}"
75 launch_config_name: "{{ vpcaccess_lc.name|default('checkmode') }}"
76 notification_topic: "{{ management_topic.sns_arn }}"
78 - autoscaling:EC2_INSTANCE_LAUNCH
81 - account: "{{ ACCT_NAME }}"
82 propagate_at_launch: yes
84 propagate_at_launch: yes
86 propagate_at_launch: yes
88 propagate_at_launch: yes
90 propagate_at_launch: yes
92 - name: not implemented yet
95 attach policies to iam role