(aws-cloudfront-origins): Enable S3 versioned access for OAC #33034
Labels
@aws-cdk/aws-cloudfront-origins
Related to CloudFront Origins for the CDK CloudFront Library
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
By calling
S3BucketOrigin.withOriginAccessControl
the access-levels only allow for adding for the bucket actions3:GetObject
but there is no way to easily adds3:GetObjectVersion
. In order to get that, the bucket permissions must be extended manually.There should be a way to extend the access levels, have a way to manually extend required actions or set a flag to enable versioned access.
Use Case
I created an S3 origin with OAC to provide a signed url and allow the
versionId
to be passed, so the user can download a specific object version. I needed to extend the bucket permission manually, by adding the action's3:GetObjectVersion'
for the distributionId.Proposed Solution
I see three possible solutions:
AccessLevel
to have aREAD_VERSIONED
versioned
in the properties on creating the OACOther Information
No response
Acknowledgements
CDK version used
2.167.1
Environment details (OS name and version, etc.)
MacOS
The text was updated successfully, but these errors were encountered: