cdk-s3-bucketreplication
TypeScript icon, indicating that this package has built-in type declarations

0.0.20 • Public • Published

CDK Construct for S3 Bucket Replication

A CDK Construct for S3 Bucket Replication. Can handle cross-account replication. Make sure the source and destination buckets have versioning enabled.

const sourceBucket = new Bucket(this, 'SourceBucket', {
  versioned: true,
});
const destinationBucket = new Bucket(this, 'DestinationBucket', {
  versioned: true,
});

new BucketReplication(this, 'BucketReplication', {
  sourceBucket,
  destinationBucket,
  replicationDestinationProperties: {
    storageClass: ReplicationDestinationStorageClass.STANDARD_IA,
  },
});

Readme

Keywords

Package Sidebar

Install

npm i cdk-s3-bucketreplication

Weekly Downloads

5

Version

0.0.20

License

Apache-2.0

Unpacked Size

62.5 kB

Total Files

12

Last publish

Collaborators

  • rogerchi