-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws-scheduler-targets-alpha: Add StepFunctionsStartExecution #27377
Comments
Hey @WtfJoke, this looks like a great feature to add! We did add hacktoberfest to the topic of this repository this morning, and once you open a PR, we can assign the correct label so it counts for you! |
A StepFunctionStartExecution ScheduleTarget was implemented similar to the already existing [LambdaInvoke](https://github.com/aws/aws-cdk/blob/b2a895ef285e5451e64c21e179172e998c479582/packages/%40aws-cdk/aws-scheduler-targets-alpha/lib/lambda-invoke.ts#L8) target. I've added an integration test, which will trigger an eventbridge schedule once. This schedule has a step function as a target. The step function creates a parameter with a given value, which will get verified by the test Closes #27377 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Describe the feature
Currently the only impelmentation of IScheduleTarget is LambdaInvoke.
It would be great if we could have also StepFunctionsStartExecution as one of the templated apis in the aws console.
Use Case
You can have a lot of targets in event scheduler, but in this alpha module its only possible to trigger a lambda. I would like to be able to trigger a Step Function/State Machine from there.
Proposed Solution
The implementation can be very similar/almost identical like LambdaInvoke.
I've tested following implementation in a private project succesfully (heavily inspired by the existing LambdaInvoke code):
Other Information
I would like to contribute this feature during the hacktoberfest.
It would be great if this repository can be marked with the topic "hacktoberfest" so that it gets counted towards the goal (see https://hacktoberfest.com/participation/#maintainers for more info) :)
Acknowledgements
CDK version used
2.99.1
Environment details (OS name and version, etc.)
windows, wsl
The text was updated successfully, but these errors were encountered: