Skip to content

Policy template for sending task status to Step Functions #2193

Closed

Description

@gevial

Description:

There is a pattern to coordinate queue-based Lambda function execution from a Step Function: https://aws.amazon.com/getting-started/hands-on/orchestrate-microservices-with-message-queues-on-step-functions/

The worker Lambda function in this approach needs to send task status back to the step function. Currently there is no ready-to-use policy for that in SAM.

I'm going to create a PR which adds the policy with states:SendTaskFailure, states:SendTaskHeartbeat and states:SendTaskSuccess permissions.

Activity

  1. gevial commented on Oct 25, 2021

    @gevial
    Author

    According to https://docs.aws.amazon.com/step-functions/latest/dg/concept-create-iam-advanced.html, Step Function API calls to update task status require "the ARN of the activity or the token of the instance as part of the request". Since the token is provided as an input to the worker Lambda function, I think it's safe to use Resources: "*" for this policy.

  2. gevial commented on Oct 25, 2021

    @gevial
    Author

    Here's a PR: #2194

  3. mildaniel commented on Jan 17, 2022

    @mildaniel
    Contributor

    Thank you for your contribution! We really appreciate it. Once a PR is submitted we weigh it against our roadmap, do regression testing, make sure it’s backwards compatible and maintainable. Please watch this channel from more updates, and feel free to reach out.

  4. bluenautilus2 commented on Aug 1, 2022

    @bluenautilus2

    Looking forward to this!

  5. locked and limited conversation to collaborators on Aug 8, 2023
  6. converted this issue into a discussion #3288 on Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions