s3: bucket replication
PR #184 has some initial work around S3 bucket replication
Is the bucket replication planned in the near future?
Would be great to see this landing in CDK.
Any progress on issue?
Also running into the same issue, any update?
Also running into the same issue. Any progress on this?
Blocked we had to do a work around for our client for this. Please update.
Also really need this, another upvote for priority :)
We could really use this too, cross-region replication is a requirement for us
We used heavily cdk for development and this is one of the core feature requiremet most of the people has. Another upvote for priority
Need replication for cross accounts.
I was able to use CfnBucket to have cross account replication. It seems like this may be possible for other scenarios too. Docs are not that helpful (many props were not needed and there is no explanation of what props are needed for what replication type) but I was able to get it working.
Planning to heavily use replication, any update on this issue?
Would be great to have this available on the high level Bucket construct. In the meantime, creating a subclass will let you to retain the benefits of the Bucket construct while adding support for replicationConfiguration via the underlying CfnBucket, as below:
import { Construct } from '@aws-cdk/core';
import { Bucket, BucketProps, CfnBucket, CfnBucketProps } from '@aws-cdk/aws-s3';
export class BucketWithReplication extends Bucket {
constructor(
scope: Construct,
id: string,
props: BucketProps & Required<Pick<CfnBucketProps, 'replicationConfiguration'>>
) {
const { replicationConfiguration, ...bucketProps } = props;
super(scope, id, bucketProps);
(this.node.defaultChild as CfnBucket).replicationConfiguration = replicationConfiguration;
}
}
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.