serverless-step-functions icon indicating copy to clipboard operation
serverless-step-functions copied to clipboard

Support arn:aws:states:::aws-sdk:eventbridge:putTargets.waitForTaskToken

Open mararrdeveloper opened this issue 3 years ago • 1 comments

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

mararrdeveloper avatar May 01 '22 21:05 mararrdeveloper

I'm having problem with Resource: arn:aws:states:::lambda:invoke.waitForTaskToken

Error: TypeError: state.Resource.match is not a function

ameerulislam avatar Jun 13 '22 11:06 ameerulislam