Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Create EC2 in an existing VPC with AWS CDK Python

This is a project to create a new EC2 in an existing VPC on AWS with the AWS Cloud Development Kit.

This project also demonstrates:

  • Using customized user data of EC2
  • Customize multiple EBS volume
  • Specify AMI id
  • Security groups allow SSH access from internet

Useful commands

  • cdk ls list all stacks in the app
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk docs open CDK documentation