Create a CloudFormation stack

Create a CloudFormation stack

  • We will use below file template to create CloudFormation stack. The template defines :
    • A VPC named CdkStack/DevAxNetworkVPC:
      • 2 Public Subnet
      • 2 Private Subnet
      • 2 NAT gateways
    • An EC2 Instance named DevAxWindowsHost
    • A RDS named ad12azpxp74wamj
    • User awsstudent
  1. Download file Module1.yaml.
  2. Go to Amazon CloudFormation Console.
  • Click Stacks
  • Click Create stack. Create CloudFormation stack
  1. In the Specify template section.
  • Select Upload a template file
  • Click Choose file, then select file Module1.yaml we downloaded.
  • Click Next. Create CloudFormation stack
  1. In the Stack name section, type aws-stack-for-Devax.
  • In the Stack name section, seclect KPforDevAxInstances.
  • Click Next. Create CloudFormation stack
  1. In the Configure stack options page, Drag the screen down, then Click Next. Create CloudFormation stack
  2. In the Review aws-stack-for-Devax page.
  • Drag the screen down, then Click I acknowledge that AWS CloudFormation might create IAM resources with custom names.
  • Click Create stack. Create CloudFormation stack

    Cloudformation will take 5 minutes to deploy Web App. Wait until all stacks are shown in a CREATE_COMPLETE state.

    Create CloudFormation stack

Check the VPC was created

  1. Go to Amazon VPC Console.
  • Click Your VPCs.
  • We will see a VPC named CdkStack/DevAxNetworkVPC Create CloudFormation stack
  1. Click Subnets.
  • type CdkStack/DevAxNetworkVPC into the search bar. Press Enter
  • We will see 4 Subnets Create CloudFormation stack
  1. Click NAT Gateways.
  • type CdkStack/DevAxNetworkVPC into the search bar. Press Enter
  • We will see 2 NAT gateways Create CloudFormation stack

Check EC2 Instance was created

  1. Go to Amazon EC2 console.
  • Click Instances.
  • type DevAxWindowsHost into the search bar. Press Enter
  • We will see an EC2 Instance named DevAxWindowsHost Create CloudFormation stack

Check AWS RDS was created

  1. Go to Amazon RDS console.
  • Click Databases.
  • type ad12azpxp74wamj into the search bar.
  • We will see 1 Databases named ad12azpxp74wamj Create CloudFormation stack