Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[no ticket] Adds a command for running step functions #3634

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

coilysiren
Copy link
Collaborator

Time to review: 2 mins

Context for reviewers

Functionally procrastination on my part, I wrote this so I could test step functions without having to drop into / out of the AWS console

Testing

$ ./bin/run-step-function.sh analytics prod opportunity-load-csvs
aws stepfunctions start-execution
  --state-machine-arn arn:aws:states:us-east-1:315341936575:stateMachine:analytics-prod-opportunity-load-csvs
  --name kai-1737665796

View the step function execution in the AWS console:
  https://us-east-1.console.aws.amazon.com/states/home?region=us-east-1#/v2/executions/details/arn:aws:states:us-east-1:315341936575:execution:analytics-prod-opportunity-load-csvs:kai-1737665796

EXECUTION_ARN="arn:aws:states:$REGION:$ACCOUNT:execution:$APP-$ENVIRONMENT-$STEP_FUNCTION"
EXECUTION_URL="https://$REGION.console.aws.amazon.com/states/home?region=$REGION#/v2/executions/details/$EXECUTION_ARN:$USER-$DATE"

echo "aws stepfunctions start-execution"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really like this echoing out what it running for tweaking/future reference.

Copy link
Collaborator

@mdragon mdragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@coilysiren coilysiren merged commit 4c96a79 into main Jan 23, 2025
6 checks passed
@coilysiren coilysiren deleted the kai/run-step-function branch January 23, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants