This is an exploration of Step Functions using the CDK based on the following tutorial by Yan Cui.
- Create a
cdk.context.json
file and add the region that you want to deploy to as follows (default isus-east-2
):
{
"region": "us-east-2"
}
The cdk.json
file tells the CDK Toolkit how to execute your app.
yarn build
compile typescript to jsyarn watch
watch for changes and compileyarn test
perform the jest unit testsyarn cdk deploy
deploy this stack to your default AWS account/regionyarn cdk diff
compare deployed stack with current stateyarn cdk synth
emits the synthesized CloudFormation template