Open giusedroid opened 1 month ago
this solution is even better: https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/123#issuecomment-932532908
@giusedroid Good morning. As rightly pointed out by you, there is an open issue https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/123 in CloudFormation repository. The constructs in CDK are limited by the functionality provided by CloudFormation. Once CloudFormation specification supports RequesterPays
property, it would be available as part of CDK CfnBucket
L1 construct. The workaround to use custom resource as suggested in https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/123#issuecomment-932532908 is the way to go forward as of now.
Thanks, Ashish
Describe the feature
Enable S3 requester pays
Enabling s3 requester pays as a property of BucketProperty would help customers managing the state of their payment options directly from code.
Use Case
As of now, I could not find a way to declaratively set this option on a bucket.
Proposed Solution
there's no CloudFormation equivalent option on AWS::S3::Bucket, so this may not be an easy fix. Here's a link to the docs where they show how to implement this via an HTTP request.
Potentially this could be implemented as a custom resource depending on the bucket
Other Information
No response
Acknowledgements
CDK version used
2.151.0
Environment details (OS name and version, etc.)
mac os