To create a working AWS cloud infrastructure, you will need to create security groups, key pairs, users and roles, MySQL RDS instance, EC2 instances, Elastic IP’s and then wire them together. We will create this environment in a bottom up manner where we first create the base AWS constructs such as security groups, key pairs, users, and roles and then we wire them to the EC2 and RDS instances.
Perform the steps in the following sections to set up the infrastructure for our example application.