1

I am trying to set up a continuous delivery pipeline for Lambda function following this tutorial, https://docs.aws.amazon.com/lambda/latest/dg/build-pipeline.html. This is my first time setting it up. Now I am stuck on the step, creating the pipeline and it is giving me the following error when I click on the create pipeline button.

enter image description here

I exactly followed the steps mentioned in the link. Why am I getting that error?

You can see the preview of my configuration here.

enter image description here

enter image description here

What is wrong with my configuration? It is giving me this error as well.

Stack [lambda-pipeline-stack] does not exist
halfer
  • 19,824
  • 17
  • 99
  • 186
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
  • 1
    Possible duplicate of [CloudFormation is not authorized to perform: iam:PassRole on resource](https://stackoverflow.com/questions/51911382/cloudformation-is-not-authorized-to-perform-iampassrole-on-resource) – Adiii Sep 14 '19 at 17:03
  • But it is not mentioning the role in my case as you can see the error message. just say xxxxx:root. – Wai Yan Hein Sep 14 '19 at 17:17
  • 1
    Give the iam:PassRole permission to your IAM User or Role. – Lamanus Sep 15 '19 at 01:58

1 Answers1

1

Hope this helps someone - The error basically says that

the lambda has no permission to perform/do iam:PassRole on a specific resource/service you are trying to use/manipulate with lambda.

To solve this on your lamnda policy add this -

{
      "Effect": "Allow",
      "Action": [
        "iam:PassRole"
        ],
      "Resource": "*"
    }
ashraf minhaj
  • 504
  • 2
  • 14