Creating infrastructure using CloudFormation
Now, let's create a CloudFormation template that will create a full database stack for us. The template we are going to make and then launch will create and configure the following:
- An RDS MySQL instance
- A parameter group for the database
- Security group rules to let anyone access the database on port 3306
To do this, we are going to use a template from within this book's GitHub repository that can be modified if required. This template contains variables called parameters, which allow us to pass values to the CloudFormation service at runtime. This allows us to reuse the same template and create multiple databases.
Before you begin, download the Chapter11.yaml
file from GitHub. You will also need to know which VPC to deploy in and which subnets to use. If you have more than one VPC, you will need to ensure you chose the correct ones when creating the stack. If you have do not have a VPC with at least...