Comments (8)
I suspect this must be an issue with your user permissions – the layer itself allows lambda:GetLayerVersion
to be called from any Principal.
Try adding the lambda:GetLayerVersion
permissions to the user explicitly and see if that works:
from git-lambda-layer.
Experiencing the same when deploying from Serverless
User: arn:aws:iam::886182114158:user/silviulucian-alt is not authorized to perform: lambda:GetLayerVersion on resource: arn:aws:lambda:us-east-1:553035198032:layer:git:3 (Service: AWSLambdaInternal; Status Code: 403; Error Code: AccessDeniedException; Request ID: ebbb27dc-0d1b-11e9-b997-7b10317a7e42).
As with romaninsh's account above, this user is a
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "*",
"Resource": "*"
}
]
}
from git-lambda-layer.
Well if it works from the AWS console, then I think everything must be fine on the layer end – so I still suspect it's some sort of permissions issue on your end.
Do you have the same problem with any other layers? eg, https://github.com/RafalWilinski/serverless-puppeteer-layers
from git-lambda-layer.
Aaaa, right, I feel silly I didn't check to see if it worked with another layer first. Same error. I'll keep digging and get back when I figured it out.
from git-lambda-layer.
Alrighty, figured it out: I copied and pasted the layer arn blindly and kept us-east-1 in there as the region. My lambda is deployed in eu-west-1 however. Everything started chooching just fine once I changed the region in the layer arn to match the one I was using.
from git-lambda-layer.
@silviulucian I am also deployed in EU region. Thanks for the possible fix idea!
from git-lambda-layer.
This is documented under the ARNs: https://github.com/lambci/git-lambda-layer#version-arns
I might add it to the getting started too
from git-lambda-layer.
Yes was confused because the same ARN worked the same.
from git-lambda-layer.
Related Issues (20)
- Nodejs12 doesn't seem to be working with layer v3? HOT 2
- Lambda nodejs12.x - Permission denied (Public Key) HOT 2
- Could you add the build process? HOT 3
- File too short on shared library libpcre2-8.so.0 HOT 6
- Add support for git lfs HOT 4
- Cannot load PCRE HOT 6
- AccessDeniedException on Gov Cloud? HOT 4
- Python import git module error for AWS Lambda HOT 1
- Lambda -> Git SSH Authentication HOT 13
- Could not deploy because lambda with layer exceeded 250 mb... HOT 3
- How to use "git push" ? HOT 7
- Support for GIT v2.30.2 because of Security Vulnerability HOT 3
- [Question] Uploading my own zip file HOT 5
- Support for using layer.zip with AWS Lambda containers HOT 7
- Support for using aws cli executable
- clone with ssh protocol hit issues
- Support for arm64 lambdas HOT 3
- How can I create my own layer? HOT 4
- using layer with python in Lambda function HOT 2
- Update to latest versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-lambda-layer.