serverless-step-functions
serverless-step-functions copied to clipboard
Support arn:aws:states:::aws-sdk:eventbridge:putTargets.waitForTaskToken
This is a Feature Proposal
Description
Hi there,
just to highlight that eventbridge:putTargets is not working with the suffix .waitForTaskToken (supported by AWS Step Functions). Also TimeoutSecondsPath and HeartbeatSecondsPath are not allowed as property of eventbridge:putTargets.
A code sample below
For some smart reason put target and wait:
Type: Task
Next: End
Parameters:
Rule: My great rule inside an even greater eventbus
Targets:
- Arn:
Fn::GetAtt: [SomeSmartLambdaFunction, Arn]
Id: '1'
Resource: arn:aws:states:::aws-sdk:eventbridge:putTargets
ResultPath: $.taskResult
################################################
############ The following set up won't work
################################################
#Resource: arn:aws:states:::aws-sdk:eventbridge:putTargets.waitForTaskToken
#TimeoutSecondsPath: $.fixtureDetails.timeoutSeconds
#HeartbeatSecondsPath: $.fixtureDetails.heartbeatSeconds
I'm having problem with
Resource: arn:aws:states:::lambda:invoke.waitForTaskToken
Error: TypeError: state.Resource.match is not a function