Deploy The Lab Base Infrastructure
In this section, we will build out a Virtual Public Cloud (VPC), together with public and private subnets across two Availability Zones, Internet Gateway and NAT gateway along with the necessary routes from both public and private subnets.
This VPC will become the baseline network architecture within which the application will run. When we successfully complete our initial template deployment, our deployed workload should reflect the following diagram:

To deploy the infrastructure template follow the appropriate steps:
To deploy the first CloudFormation template, you can either deploy directly from the command line or via the console.
You can get the template here.
Click here for CloudFormation command-line deployment steps
Command Line Deployment:
To deploy from the command line, ensure that you have installed and configured AWS CLI with the appropriate credentials.
1.1.1. Execute Command
aws cloudformation create-stack --stack-name pattern3-base \
--template-body file://pattern1-base.yml \
--region ap-southeast-2
Note: Please adjust your command-line if you are using profiles within your aws command line as required.
1.1.2.
Confirm that the stack has installed correctly. You can do this by running the describe-stacks command as follows:
aws cloudformation describe-stacks --stack-name pattern3-base
Locate the StackStatus and confirm it is set to CREATE_COMPLETE as shown here:

1.1.3.
Take note of this stack output as we will need it for later sections of the lab.
Click here for CloudFormation console deployment steps
Console:
If you decide to deploy the stack from the console, ensure that you follow below requirements & step:
- Please follow this guide for information on how to deploy the cloudformation template.
- Use
pattern1-base
as the Stack Name, as this is referenced by other stacks later in the lab.
When the CloudFormation template deployment is completed, note the outputs produced by the newly created stack as these will be required at later points in the lab.
You can do this by clicking on the stack name you just created, and select the Outputs Tab as shown in diagram below.

You can now proceed to Section 2 of the lab where we will build out the application stack.
END OF SECTION 1