-
-
Notifications
You must be signed in to change notification settings - Fork 693
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
Logging permission for Lambda@Edge restricted to us-east-1 #34
Comments
Lambda@Edge is special kind of Lambda function, which is required to be deployed in us-east-1 along with the log groups. Do you say that it doesn't log there? |
Yeah it is deployed in Let's say the viewer-request comes from Frankfurt, Germany: It's a bit complicated because that means to give terraform control over all log groups it have to create log groups in all regions. (https://advancedweb.hu/how-to-manage-lambda-log-groups-with-terraform/#lambdaedge) |
Now I see what you mean. I will try to take a look at this issue later this week. Maybe you can open a pull-request? |
Sure, no problem. Opened #35 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi, while playing around with Lambda@Edge I noticed that the deployed Lambdas were not logging anything to CloudWatch.
So I looked into the created cloudwatch policy and noticed that the log creation is currently restricted to the region where the lambda is deployed to:
While this is reasonable for normal Lambdas, Lambda@Edge uses the CloudWatch region which is closest to it's execution runtime so I think it would be better to drop the region from the resource when using Lambda@Edge:
Don't know if there is a better solution for changing the region in an ARN, I added this code in
iam.tf
to change the arn scope:The text was updated successfully, but these errors were encountered: