Using Ansible as an IaC tool for AWS
In this section, you will create Ansible content to provision and manage AWS resources using Ansible. Let’s assume that whenever you need to create a new EC2 instance, you need to follow multiple manual procedures such as creating a new Virtual Private Cloud (VPC), a new security group, network access policies, and many other items. You also need to do post-provisioning steps such as creating new user accounts, installing packages, configuring applications, and more.
With the help of the Ansible AWS collection, it is possible to automate all of these tasks and manage the entire life cycle of the infrastructure.
AWS Free Tier
To practice AWS and Ansible use cases, it is possible to use AWS Free Tier, which provides more than 100 AWS resources free of charge. Visit https://aws.amazon.com/free (Figure 7.25) and sign up for a free AWS Free Tier account to find them:
Figure 7.25 – AWS Free Tier access with...