Skip to content

Construct to provision a vpc in AWS using cdkv2 written in Typescript

Notifications You must be signed in to change notification settings

clarizalooktech/aws-cdkv2-vpc-construct

Repository files navigation

Provision a VPC using CDKv2 TypeScript

This is a construct for CDK development with TypeScript to provision a vpc in your AWS account.

The cdk.json file tells the CDK Toolkit how to execute your app.

Step 1: Clone repo

git clone https://github.com/clarizalooktech/aws-cdkv2-vpc-construct.git

Step 2: Once its on your local computer, open it on VSCODE

Go to your vscode

Step 3: Update Code

Go to bin/vpc.ts, update AWS account with your account

Step 4: Configure AWS ACCESS keys in AWS console

Go to your iam and configure keys

Step 5: In your local computer, configure AWS ACCESS keys to setup prod profile

aws configure

Step 6: Synthesize CDK to create a Cloudformation Template

cdk synth

Step 7: Deploy CDK

cdk deploy --profile prod

Screenshots

cdk synth

CDK Synth

cdk deploy

CDK Deploy

CDK Deploy time

VPC in console view

CDK Deploy time

cdk destroy

CDK Deploy time

About

Construct to provision a vpc in AWS using cdkv2 written in Typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published