shelfio / chrome-aws-lambda-layer

58 MB Google Chrome to fit inside AWS Lambda Layer compressed with Brotli
MIT License
637 stars 45 forks source link

Permission Error When Attempting to Use Layer #19

Closed pacarvalho closed 4 years ago

pacarvalho commented 4 years ago

I am using AWS SAM to deploy a Lambda using this Layer. I have added the following specification for the layer in my YAML:

Layers:
  - arn:aws:lambda:us-west-1:764866452798:layer:chrome-aws-lambda:18

However, when attempting to deploy (or debug locally) I get the following error: "Error: Credentials provided are missing lambda:Getlayerversion policy that is needed to download the layer or you do not have permission to download the layer"

Where should this permission be added?

vladholubiev commented 4 years ago

Hey @pacarvalho

Please try version 16. Version 18 is in us-east-1 region only

image

pacarvalho commented 4 years ago

@vladgolubev Thank you for the fast reply! That was the issue. Thank you :)