You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use the CloudFrontToS3 construct always gives an error:
Unable to retrieve Id attribute for AWS::CloudFront::OriginAccessControl, with error message Access denied for operation 'AWS::CloudFront::OriginAccessControl'.
CREATE_FAILED | AWS::CloudFront::Distribution | portal-distribution/CloudFrontDistribution (portaldistributionCloudFrontDistribution739C662C) Unable to retrieve Id attribute for AWS::CloudFront::OriginAccessControl, with error message Access denied for operation 'AWS::CloudFront::OriginAccessControl'.
Environment
CDK CLI Version : "aws-cdk": "^2.177.0",
AWS Solutions Constructs Version : "@aws-solutions-constructs/aws-cloudfront-s3": "^2.77.0"
OS : Ubuntu 24.04
Language : TS
Other
Relevant IAM permissons on the CDK execution role:
To the role seems to have fixed the issue, not sure why
And usually arn errors are formatted a little bit differently than this, but it seems to be working now.
Thanks for letting us know - I figured it was a permissions issue and was paring down my privileges until I figured out which one. Apparently you have found it.
Trying to use the CloudFrontToS3 construct always gives an error:
Reproduction Steps
Error Log
Environment
Other
Relevant IAM permissons on the CDK execution role:
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: