5 - vpc_subnets_pub != ''
6 - vpc_subnets_priv != ''
12 vpc_id: "{{ vpc.vpc.id }}"
13 region: "{{ vpc_region }}"
19 resource: "{{ igw.gateway_id }}"
20 region: "{{ vpc_region }}"
22 Name: "igw-{{ vpc_region }}"
25 with_items: "{{ vpc_subnets_pub + vpc_subnets_priv }}"
28 vpc_id: "{{ vpc.vpc.id }}"
29 region: "{{ vpc_region }}"
30 cidr: "{{ item.cidr }}"
32 tags: "{{ item.resource_tags }}"
34 - name: Access/NAT EIP
37 region: "{{ vpc_region }}"
38 reuse_existing_ip_allowed: yes
41 - name: Private route table
44 vpc_id: "{{ vpc.vpc.id }}"
45 region: "{{ vpc_region }}"
47 Name: "Private-Routes-vpc-{{ vpc_region }}"
50 subnets: "{{ vpc_subnets_priv|map(attribute='cidr')|list }}"
53 - name: Public route table
56 vpc_id: "{{ vpc.vpc.id }}"
57 region: "{{ vpc_region }}"
59 Name: "Public-Routes-vpc-{{ vpc_region }}"
62 subnets: "{{ vpc_subnets_pub|map(attribute='cidr')|list }}"
65 gateway_id: "{{ igw.gateway_id }}"
68 - name: not implemented yet
71 Change pub-subnets to auto-assign external IPs