1.0.1 • Published 2 years ago
aria-npm-testing v1.0.1
EC2 Instance Example in AWS CDK - Complete Guide
A repository for an article on bobbyhadz.com
How to Use
Clone the repository
Install the dependencies
npm install
create a Key pair with the name of
ec2-key-pair
in your default regionCreate the CDK stack
npx cdk deploy
Open the AWS CloudFormation Console and the stack should be created in your default region
Copy and paste the public IPv4 url of the EC2 instance in your browser and you should see the response from the nginx server
Cleanup
npx cdk destroy