Prerequsite
Run the command to deploy this stack to your default AWS account/region
cdk deploy
Copy the bucket names & Step function's ARN from cloudformation output.
Upload the sample data file to source bucket. Replace the <source_bucketname> with the actual naem copied from step 2
aws s3 cp data/sample.json s3://<source_bucketname>/inbox/sample.json
Execute the step function using below command
aws stepfunctions start-execution --state-machine-arn <SFN_ARN> --input '{"sourceBucket":"<source_bucketname>","destBucket":"<destination_bucketname>","key":"sample.json"}'
Replace the with cloudformation output copied from step 2
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template