Skip to content

saswatkumarsahoo/stepfunctions-sdk

Repository files navigation

Step Functions SDK Integration - Example

Steps to run

Prerequsite

  1. Install CDK
  2. Install AWS CLI
Step 1

Run the command to deploy this stack to your default AWS account/region

cdk deploy
Step 2

Copy the bucket names & Step function's ARN from cloudformation output.

Step 3

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
Step 4

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

Useful CDK commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published