Skip to content
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

Add missing PassRole permission for Scheduler tasks #606

Closed
jormaechea opened this issue Mar 5, 2024 · 1 comment · Fixed by #607
Closed

Add missing PassRole permission for Scheduler tasks #606

jormaechea opened this issue Mar 5, 2024 · 1 comment · Fixed by #607
Labels

Comments

@jormaechea
Copy link
Contributor

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:

jormaechea added a commit to jormaechea/serverless-step-functions that referenced this issue Mar 5, 2024
@horike37
Copy link
Collaborator

horike37 commented Mar 6, 2024

🎉 This issue has been resolved in version 3.20.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants