Skip to content

Add missing PassRole permission for Scheduler tasks #606

@jormaechea

Description

@jormaechea

This is a Bug Report

Description

For bug reports:

  • What went wrong?
  • What did you expect should have happened?
    • The Schedule should have been created with the associated IAM Role
  • What was the config you used?
{
  "Type": "Task",
  "Resource": "arn:aws:states:::aws-sdk:scheduler:createSchedule",
  "Parameters": {
    "ActionAfterCompletion": "DELETE",
    "FlexibleTimeWindow": {
      "Mode": "FLEXIBLE",
      "MaximumWindowInMinutes": 5
    },
    "Name.$": "$$.Execution.Name",
    "GroupName": "default",
    "ScheduleExpression": "at(2024-03-06T00:00:00)",
    "Target": {
      "Arn": "arn:aws:states:${aws:region}:${aws:accountId}:AnotherMachine",
      "RoleArn": "arn:aws:iam::${aws:accountId}:role/MySchedulerRole",
      "Input": {
        "foo": "bar"
      }
    }
  },
  "End": true
}
  • What stacktrace or error message from your provider did you see?
    • User: xxx is not authorized to perform: iam:PassRole on resource: yyy because no identity-based policy allows the iam:PassRole action

Similar or dependent issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions