CDK development with TypeScript
The cdk.json
file tells the CDK Toolkit how to execute your app.
Stack for the Landing Page
- S3 Bucket
- CloudFront Distribution
npx cdk deploy FlockWebStack
Stack for the API
- AppRunner
- Lambda
npx cdk deploy FlockApiStack-Dev
Stack for the Recommendation Engine
- SNS topic
- SQS queue
- Lambda
npx cdk deploy FlockRecommendationStack-Dev
Stack for the Books Data Population. When we add a book to our database, we set just initial data, we have to add more details to each book in a parallel service.
- SNS topic
- SQS queue
- Lambda
npx cdk deploy FlockBookDataPopulationStack-Dev
Stack for the Book Sync service, which retrieves data from NY Times Best Seller API, to add new books to our database.
- SNS topic
- SQS queue
- Lambda
npx cdk deploy FlockBookSyncStack-Dev
npm run bootstrap
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testsnpx cdk deploy
deploy this stack to your default AWS account/regionnpx cdk deploy --hotswap
deploy just what changednpx cdk deploy [StackName]
deploy a specific stacknpx cdk diff
compare deployed stack with current statenpx cdk synth
emits the synthesized CloudFormation template