This is a CDK project for AWS infrastructure development with TypeScript.
- Node.js (v18 or later)
- AWS CLI configured with credentials
- AWS CDK CLI (
npm install -g aws-cdk)
npm run buildcompile typescript to jsnpm run watchwatch for changes and compilecdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation templatecdk bootstrapbootstrap your AWS environment (one-time setup)
-
Configure your AWS credentials:
aws configure
-
Bootstrap CDK (first time only):
cdk bootstrap
-
Deploy your stack:
cdk deploy
bin/aws-demo.ts- Entry point for the CDK applib/aws-demo-stack.ts- Main stack definitioncdk.json- CDK configurationtsconfig.json- TypeScript configuration