CodeCommit to CodePipeline to AWS Step Functions

CodeCommit → Code Pipeline → Step Functions

Create a CodePipeline that invokes Steps Functions to run Glue queries

CDK CodePipeline spins up against AWS CodeCommit repository, which triggers AWS StepFunctions to call Amazon Athena NamedQueries to create Views and Tables.
The branch Name and CodeCommit repository details must be provided in the configuration file src/config.ts.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/cdk-codecommit-codepipeline-sfn-athena-glue

Deploy

npx cdk bootstrap aws://accountnumber/regionnpx cdk synthnpx cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: npx cdk destroy.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus".
3. You see a message confirming DELETE_COMPLETE.

Created by:

Atul Sharma

Atul Sharma

Atul is Sr. Cloud Application Architect at AWS Pro-serve India.

Feroz Kumar

Feroz Kumar

Feroz is Cloud Application Consultant at AWS Pro-serve India.

Jayesh A Shinde

Jayesh A Shinde

Jayesh is Cloud Application Architect at AWS Pro-serve India.