This package is the "Code" that's known in tech-world as Infrastructure as Code. It carries concise and highly extensible templates to setup following infra -
- SQS, SNS, EventBus+Rule
- Lambda, Integration Tests
- DynamoDb Table
- Cloudwatch Metrics, Alarms and Dashboard
- VPC, Endpoints, Subnets, and SecurityGroups
Template code is organised and written so that user remains cognizant of security, testing, infra-costs, scalability, and monitoring.
You may use this project for CDK development with TypeScript.
- Checkout this code locally
- Add your AWS account(s) to the
lib/common/app-constants.ts
file - Configure aws credentials to the
App
account usingaws configure
- Run
npm install && npm run build && npx cdk synth && npx cdk bootstrap
(bootstrap only needed first time or when adding a new AWS Account) - Run
npx cdk deploy "MyPipelineStack/MyPipelineAppStage-Devo-us-east-1/*"
The cdk.json
file tells the CDK Toolkit how to execute your app.
- https://aws.amazon.com/getting-started/guides/setup-environment/
- https://docs.aws.amazon.com/cli/latest/userguide/getting-started-version.html
- https://docs.aws.amazon.com/cdk/v2/guide/cdk_pipeline.html
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template