🚧 UNDER CONSTRUCTION 🚧
Introduction
Build your first app with AWS CDK
Install AWS CDK
npm install -g aws-cdk
Create app folder
mkdir sample-app
cd sample-app
Initialize the cdk app
cdk init sample-app --language typescript
Open the folder in VSCode - the project structure should look like this:
App Entry Point:
bin/sample-app.ts
Class SampleAppStack
is imported from lib/sample-app-stack.ts which is the main stack for the application. This is all that we need from this file for now.
Main Stack
lib/sample-app-stack.ts
As you can see, SampleAppStack
is created now with the following resources:
SQS Queue:
new sqs.Queue
SNS Topic:
new sns.Topic
SNS Topic Subscription:
new subs.SqsSubscription(queue)