Initialize CloudFormation Template

Initialize CloudFormation Templates

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:

  1. Log in to AWS Management Console
    • Find CloudFormation
    • Select CloudFormation

Launch 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.

Launch CloudFormation

  1. In the CloudFormation interface, select Stack

Launch CloudFormation

  1. In the Stack interface, select Create stack

Launch CloudFormation

  1. 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

Launch CloudFormation

  1. 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

Launch CloudFormation Launch CloudFormation

  1. On the Configure stack options page, select Next

Launch CloudFormation

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

Launch CloudFormation Launch CloudFormation

  1. Wait 10 minutes later, Stack created successfully.

Launch CloudFormation

  1. View Output of the newly created Stack.

Launch CloudFormation