Initialize CloudFormation Template
This step will detail how to create My VPC with CloudFormation Template. You can repeat this step to create more HG VPCs. A stack can take up to 5 minutes to complete initialization.
-
Login to AWS Management Console
- Find CloudFormation
- Select CloudFormation

In this workshop, we will use the Singapore region (ap-southeast-1). If you want to use another Region, be sure to move the Region back to the Region you want to use when creating workshop-related resources.

- In the CloudFormation interface, select Stack

- In the Stack interface, select Create stack

- In 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 and then select the VPCTempalte.yaml file that has just been download.
- Select Next

- In the Specify stack details page, you will enter the required parameters in VPCTempalte.yaml as follows:
- Stack name:
- Parameters:
- EnvironmentName:
My VPC
- PrivateSubnet1CIDR:
172.31.3.0/24
- PrivateSubnet2CIDR:
172.31.4.0/24
- PublicSubnet1CIDR:
172.31.1.0/24
- PublicSubnet2CIDR:
172.31.2.0/24
- VpcCIDR:
172.31.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, Stack created successfully.

- View Output of the newly created Stack.

- Repeat steps to create HG VPC
- In the left sidebar, select Stacks. Then select Create stack and select With new resources (standard).

- In 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 and then select the VPCTempalte.yaml file that has just been created.

-
Stack name:
- Stack name:
HG-VPC-Stack
- Parameters:
- EnvironmentName:
HG VPC
- PrivateSubnet1CIDR:
10.10.3.0/24
- PrivateSubnet2CIDR:
10.10.4.0/24
- PublicSubnet1CIDR:
10.10.1.0/24
- PublicSubnet2CIDR:
10.10.2.0/24
- VpcCIDR:
10.10.0.0/16

- 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 after completing the stack creation.

- View Output stack just created.
