Set Up
Build the environment using CloudFormation
- We will need an EC2 Key Pair to build this stack.
- Under Services, Compute go to EC2.
- Select Key Pairs on the left.
- Create a Key Pair. Name the Key Pair "CloudSecurityDemoKP" and save the file to your desktop.
- We will not need the file, but a Key Pair must exist
- Now under Services open Management & Governance, CloudFormation
- Click “Create Stack”
- Save this file to your desktop: InfraSecBuilderSessionEnvBuild.json
- In CloudFormation, choose upload a template file, and choose the json file you just downloaded.
- Fill out the screen as follows:
- Stack Name: "CloudSecurity-Demo-Stack"
- Availability Zone 1: Pick any availability zone
- Availability Zone 2: Pick any availability zone except the first one you picked
- LatestLinuxAmiID: Leave as default.
- PassedKeyName: "CloudSecurityDemoKP"
- Click “Next”
- Click “Next” on the following screen.
- Acknowledge the CloudFormation Template creates a user by checking the box.
- Note: People frequently miss this step
- Click “Create Stack”
- Refresh the CloudFormation interface until the Status of the CloudSecurity demo stack shows “Create Complete”
- Click on the Stack Name
- Go to the Outputs tab of the Stack
- Copy the following DNS names into a separate note pad. You can go to these in a web browser to validate that the Web servers are publicly accessible.
- The LoadBalancerFullDNS, PoCWebServer1PublicDNS, and PoCWebServer2PublicDNS should all work.
Now we’ve setup the environment. We can now move forward with your hands on portion.