This project contains a Step Function Express workflow which will be called synchronously via an API endpoint defined in API Gateway.
This example is taken from the docs which detects the sentiment of the user that filled a feedback form and notifies via Email in case of a negative sentiment.
This deployment might incur some costs if not in the Free Tier so it's best to destroy after you've played with it.
-
Run
yarn
(recommended) ornpm install
-
Rename
.example.env
to.env
and replace the values with your configuration. The emails are mandatory and need to be verified in SES as you wouldn't be able to send emails. -
Run
yarn cdk deploy --all
to deploy the stack. -
Run
yarn cdk destroy --all
to delete all resources
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