-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS::S3::Bucket - RequesterPays #123
Labels
storage
S3, EFS, FSx, S3 Glacier, Storage Gateway, AWS Backup
Comments
TheDanBlanco
added
the
storage
S3, EFS, FSx, S3 Glacier, Storage Gateway, AWS Backup
label
Aug 13, 2019
Such feature would be exceptionally helpful!!! |
Hey @rhboyd, any plans for this? 🤗 |
Shocked that this isn't supported after 7 years... also sadly not shocked, more like resigned.
|
WOW |
Code Snippet to enable the feature using AwsCustomResource: addRequesterPaysToS3Bucket(prefix: string, stage: string, region: string, bucket: IBucket): AwsCustomResource {
// AWSSDKCall to apply to onCreate and onUpdate
const addRequestPay = {
action: 'putBucketRequestPayment',
region: region,
service: `S3`,
parameters: {
Bucket: bucket.bucketName,
RequestPaymentConfiguration: {
Payer: `Requester`
}
},
physicalResourceId: PhysicalResourceId.of(bucket.bucketName)
}
const awsCustomResource = new AwsCustomResource(this, `${prefix}-RequesterPaysCustomResource-${stage}`, {
policy: AwsCustomResourcePolicy.fromSdkCalls({
resources: [bucket.bucketArn]
}),
onCreate: addRequestPay,
onUpdate: addRequestPay
});
awsCustomResource.node.addDependency(bucket)
return awsCustomResource
} |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1. Title
AWS::S3::Bucket-RequesterPays
2. Scope of request
Enable CloudFormation to set the Requester Pays property on an S3 bucket. Currently, this property can only be set by the AWS console and AWS SDK.
3. Expected behavior
5. Helpful Links to speed up research and evaluation
6. Category
The text was updated successfully, but these errors were encountered: