Empty Stack

Demo: Use an AWS CDK Environment

Prior to deploying useful resources such as queues, buckets, and functions, it can be useful to practice the procedure for deploying anything using the CDK.

The “empty” demo creates a CloudFormation stack with no resources other than some CDK metadata.

Here are the purpose points for the empty demo deck.

  • Why? I want to practice resource deployment in the AWS cloud.
  • What? Use an AWS CDK environment.
  • Where? In my AWS account.
  • How? Use AWS CDK to create an AWS CloudFormation stack, then delete it.
  • Then… I know how to use AWS CDK to deploy and destroy AWS resources in my account(s).

Purpose: Deploy an empty stack

Steps:

Create a CDK app (cdk init).
Deploy the CDK app (cdk deploy).
Use the cloud app resources.
Remove the CDK app (cdk destroy).

Deploy an “empty” CDK app stack

mkdir empty
cd empty
cdk init app --language=typescript
cdk deploy
cdk destroy