/aws-cdk-workshop

Demonstration of building API services using AWS CDK, with each stack configured as Infrastructure as Code (IaC).

Primary LanguageTypeScriptOtherNOASSERTION

Workshop: AWS CDK

Demonstration of building API services using AWS CDK, with each stack configured as Infrastructure as Code (IaC).

Setup The Project With AWS CDK

Here are the commands to setup the project with AWS CDK v2:

# To install TypeScript.
npm install -g typescript

# To install/upgrade AWS CDK.
npm install -g aws-cdk
cdk --version # To check the version of AWS CDK.

# To bootstrap the environment.
cdk bootstrap

Manage The CloudFormation Stack Using AWS CDK

export AWS_PROFILE=default       # Replace with your AWS profile.
export AWS_ACCOUNT_ID=1234567890 # Replace with your AWS account ID.
export AWS_REGION=us-east-1      # Replace with your AWS region.

export AWS_STACK_PREFIX=test- # Set the stack prefix to avoid conflicts with other stacks. Default is `test-`.

List of Stacks