June 2018
Beginner
578 pages
13h 39m
English
Now that we have our VPC, we can start to populate it. The first thing we are going to configure is the 10 subnets. If you recall, we need the following:
Create the role by running the following command from your working directory:
$ ansible-galaxy init roles/subnets
Now, in roles/subnets/defaults/main.yml, enter the following:
the_subnets: - { use: 'ec2', az: 'a', subnet: '10.0.10.0/24' } - { use: 'ec2', az: 'b', subnet: '10.0.11.0/24' } - { use: 'ec2', az: 'c', subnet: '10.0.12.0/24' } - { use: 'elb', az: 'a', subnet: '10.0.20.0/24' } - { use: 'elb', az: 'b', subnet: '10.0.21.0/24' } - { use: 'elb', az: 'c', subnet: '10.0.22.0/24' } - { use: 'rds', ...Read now
Unlock full access