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

AWS log forwarder CloudFormation template fails to deploy because it can't call lambda:GetLayerVersion (AccessDenied) . #807

Open
jumpeinoda opened this issue Jun 12, 2024 · 0 comments

Comments

@jumpeinoda
Copy link

jumpeinoda commented Jun 12, 2024

Describe what happened:
Deploying the Cloudformation template results in this error.
You are not authorized to perform: lambda:GetLayerVersion. even though my AWS Role has Administrator permissions

Datadog Lambda Layer version: 55

StackTrace
"User: xxxx is not authorized to perform: lambda:GetLayerVersion on resource: arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Forwarder:55 because no resource-based policy allows the lambda:GetLayerVersion action (Service: Lambda, Status Code: 403, Request ID: xxxxxx)" (RequestToken: xxxxx, HandlerErrorCode: AccessDenied)

Describe what you expected:
I should be able to use lambda runtime layer in ap-northeast-1 region of AWS

Steps to reproduce the issue:

  • Deploy the Cloudformation template to ap-northeast-1
  • AWS Console will error out saying You are not authorized to perform: lambda:GetLayerVersion.

This is referenced in DataDog/datadog-lambda-python#240 also.

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

1 participant