Initialize CloudFormation Template
Information: This step will provide detailed instructions on how to create My VPC using CloudFormation Template. You can repeat this step to create additional HG VPC. A stack may take up to 5 minutes to complete initialization.
💡 Pro Tip:
- Log in to AWS Management Console
- Find CloudFormation
- Select CloudFormation

Warning: In this workshop, we will use the Region Thailand (ap-southeast-7). If you want to use a different Region, make sure to switch the Region to the one you want to use when creating resources related to the workshop.

- In the CloudFormation interface, select Stack

- In the Stack interface, select Create stack

- On the Create stack page, select the following parameters and select Next:
- Prerequisite - Prepare template:
- Prerequisite template: Template is ready
- Specify template:
- Template source: Upload a template file
- Select Choose file then select the file two_vpcs_full_template.yaml that was downloaded earlier
- Select Next

- On the Specify stack details page, you will enter the parameters required in VPCTempalte.yaml as follows:
- Stack name:
My-Two-VPC-Stack - Parameters:
- FirstEnvironmentName:
My VPC - FirstPrivateSubnet1CIDR:
172.31.3.0/24 - FirstPrivateSubnet2CIDR:
172.31.4.0/24 - FirstPublicSubnet1CIDR:
172.31.1.0/24 - FirstPublicSubnet2CIDR:
172.31.2.0/24 - FirstVpcCIDR:
172.31.0.0/16 - SecondEnvironmentName:
HG VPC - SecondPrivateSubnet1CIDR:
10.10.3.0/24 - SecondPrivateSubnet2CIDR:
10.10.4.0/24 - SecondPublicSubnet1CIDR:
10.10.1.0/24 - SecondPublicSubnet2CIDR:
10.10.2.0/24 - SecondVpcCIDR:
10.10.0.0/16
- Check and select Next

- On the Configure stack options page, select Next

- On the Review page, check and select Submit at the bottom of the page.

- Wait 10 minutes later, Stack created successfully.

- View Output of the newly created Stack.
