In this lab, we will deploy an EC2 instance within a public subnet of your VPC as part of a new CDK project. Upon completion of this lab, you will have launched a Cloud9 instance, edited terminal inputs, and created a new EC2 instance by deploying a CDK project.
Successfully complete this lab by achieving the following learning objectives:
- Launch a Cloud9 Instance
In the AWS console, launch a Cloud9 instance.
- Edit Your Terminal Inputs
Put together the code for CDK to be able to deploy the correct resources using the GitHub repo.
- Create a New EC2
Deploy your CDK stack, and check that your EC2 instance was deployed correctly. The total number of EC2 instances that should exist is 2: