February 2018
Intermediate to advanced
200 pages
5h 51m
English
We can create an EC2 instance using an Ansible module, which will take an instance type, AMI, subnet ID of VPC, tags, the exact count of instances, and region as input. Let's define tasks:
- name: Create EC2 Key Pair ec2_key: name: my_first_key aws_access_key: "{{ access_key }}" aws_secret_key: "{{ secret_key }}" key_material: "{{ key }}" region: "{{ aws_region }}" state: present
Every AWS EC2 region maintains its own set of keypairs for instances to ...
Read now
Unlock full access