[cloudfront] Distribution construct does not add edgelambda.amazonaws.com service principal to associated Lambda function roles #9998
Labels
@aws-cdk/aws-cloudfront
Related to Amazon CloudFront
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
in-progress
This issue is being actively worked on.
p1
#5180 reported an issue where the edgelambda.amazonaws.com service principal was not present on automatically-generated IAM roles for Lambda functions associated with a
CloudFrontWebDistribution
construct. #5191 fixed this.The newer
Distribution
construct lacks this behavior, and I hit the same error as reported in #5180. I had to work around by manually generating a role and adding the appropriate two service principals.Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: