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

Unable to add extension due to 'not authorized to perform: lambda:GetLayerVersion on resource' error. #35

Open
brighttank opened this issue Nov 12, 2024 · 1 comment

Comments

@brighttank
Copy link

I'm following the documentation but when I try to add the extension using the command:
aws lambda update-function-configuration --function-name my_function_name --layers arn:aws:lambda:us-west-2:694952825547:layer:axiom-extension-arm64:10 --region us-west-2

I get the error:
An error occurred (AccessDeniedException) when calling the UpdateFunctionConfiguration operation: User: arn:aws:iam::ACCOUNT_ID:user/username is not authorized to perform: lambda:GetLayerVersion on resource: arn:aws:lambda:us-west-2:694952825547:layer:axiom-extension-arm64:10 because no resource-based policy allows the lambda:GetLayerVersion action

Is the extension publicly available or do I need to build my own version?

@bahlo
Copy link
Member

bahlo commented Nov 12, 2024

The extension is public—where did you get that ARN? Could you try again following the official docs, Install with AWS CLI?

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

No branches or pull requests

2 participants