Miss any of our Open RFC calls?Watch the recordings here! »

@cloudcomponents/cdk-deletable-bucket

1.0.13 • Public • Published

cloudcomponents Logo

@cloudcomponents/cdk-deletable-bucket

Build Status typescript

Bucket with content cleanup to allow bucket deletion when the stack will be destroyed

Install

npm i @cloudcomponents/cdk-deletable-bucket

How to use

import { App, Stack, StackProps } from '@aws-cdk/core';
import { DeletableBucket } from '@cloudcomponents/cdk-deletable-bucket';
 
export class DeletableBucketStack extends Stack {
  public constructor(parent: App, name: string, props?: StackProps) {
    super(parent, name, props);
 
    new DeletableBucket(this, 'DeletableBucket', {
      bucketName: 'bucket2delete',
      forceDelete: true,
    });
  }
}

Example

See more complete examples.

License

MIT

Install

npm i @cloudcomponents/cdk-deletable-bucket

DownloadsWeekly Downloads

309

Version

1.0.13

License

MIT

Unpacked Size

42.5 kB

Total Files

12

Last publish

Collaborators

  • avatar