aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

s3: bucket replication

Open eladb opened this issue 7 years ago • 14 comments

PR #184 has some initial work around S3 bucket replication

eladb avatar Feb 05 '19 11:02 eladb

Is the bucket replication planned in the near future?

kadishmal avatar Aug 17 '19 03:08 kadishmal

Would be great to see this landing in CDK.

pierreis avatar Sep 03 '19 20:09 pierreis

Any progress on issue?

hleb-albau avatar Jan 03 '20 09:01 hleb-albau

Also running into the same issue, any update?

mvanzanten avatar Jun 09 '20 17:06 mvanzanten

Also running into the same issue. Any progress on this?

denissimonovski avatar Jun 09 '20 17:06 denissimonovski

Blocked we had to do a work around for our client for this. Please update.

mugfordsfcc avatar Jun 09 '20 17:06 mugfordsfcc

Also really need this, another upvote for priority :)

UnbiasedGoat avatar Jul 02 '20 18:07 UnbiasedGoat

We could really use this too, cross-region replication is a requirement for us

mulvaney avatar Jul 20 '20 19:07 mulvaney

We used heavily cdk for development and this is one of the core feature requiremet most of the people has. Another upvote for priority

SachinSLondhe avatar Sep 17 '20 14:09 SachinSLondhe

Need replication for cross accounts.

jpSimkins avatar Oct 02 '20 13:10 jpSimkins

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.

jpSimkins avatar Oct 02 '20 23:10 jpSimkins

Planning to heavily use replication, any update on this issue?

cmorgia avatar Apr 10 '21 22:04 cmorgia

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;
  }
}

af-tomwilkins avatar Apr 21 '21 09:04 af-tomwilkins

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.

github-actions[bot] avatar Jan 16 '25 13:01 github-actions[bot]