Initialize CloudFormation Template

Initialize CloudFormatuon Templates

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.

  1. Login to AWS Management Console

    • Find CloudFormation
    • Select CloudFormation

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

Launch CloudFormation

  1. In the CloudFormation interface, select Stack

Launch CloudFormation

  1. In the Stack interface, select Create stack

Launch CloudFormation

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

Launch CloudFormation

  1. In the Specify stack details page, you will enter the required parameters in VPCTempalte.yaml as follows:
    • Stack name:
      • Stack name: My-VPC-Stack
    • 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

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

  1. Wait 10 minutes, Stack created successfully.

Launch CloudFormation

  1. View Output of the newly created Stack.

Launch CloudFormation

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

Launch CloudFormation

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

Launch CloudFormation

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

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

Launch CloudFormation

  1. View Output stack just created.

Launch CloudFormation