2

SWF child workflows fail to schedule lambda tasks even though they are created with a role with access to lambda. Task fail with the error below.

ASSUME_ROLE_FAILED

Sr Julien
  • 494
  • 1
  • 8
  • 27
Asanka
  • 429
  • 3
  • 10
  • Could you add some context, more details about your errors, etc... – XavM Oct 11 '16 at 16:56
  • Hey XavM, thank you for the response. I just sorted out what had gone wrong. I had not allow "iam:PassRole" on the user calling the swf api. – Asanka Oct 11 '16 at 17:57

1 Answers1

1

After hours of debugging I sorted out what was the issue.

User accessing the swf api need permission to perform action "iam:PassRole". Got it working using the policy below.

{
"Version": "2012-10-17",
"Statement": [
    {
        "Sid": "Stmt14762077XXXXX",
        "Effect": "Allow",
        "Action": [
            "iam:PassRole"
        ],
        "Resource": [
            "arn:aws:iam::XXXXXXXXX:role/XXXXXXRole"
        ]
    }
]
}
Asanka
  • 429
  • 3
  • 10