(cloudfront): Add L2 level construct for CfnOriginAccessControl #22493
Labels
@aws-cdk/aws-cloudfront
Related to Amazon CloudFront
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Describe the feature
https://aws.amazon.com/blogs/networking-and-content-delivery/amazon-cloudfront-introduces-origin-access-control-oac/
Configuration OAC is really cumbersome in CDK at the moment mainly because no origin contains a reference to a node which makes using escape hatches impossible.
Use Case
Proposed Solution
Add boolean property to
S3Origin
likeorigin_access_control_enabled: bool
. If set toTrue
a Origin Access Control is created and linked to origin via this property.Other Information
No response
Acknowledgements
CDK version used
2.45.0
Environment details (OS name and version, etc.)
MacOS
The text was updated successfully, but these errors were encountered: