rayjanwilson / pr-to-pipeline-test

making a pr should trigger building out a pipeline
0 stars 0 forks source link

investigate s3 bucket removal for pipeline #22

Closed rayjanwilson closed 3 years ago

rayjanwilson commented 3 years ago

the pipeline makes a bucket to upload everything into. that bucket gets orphaned when the stack is deleted.

https://bobbyhadz.com/blog/cdk-delete-s3-bucket

const s3Bucket = new s3.Bucket(this, 'my-bucket', {
  removalPolicy: cdk.RemovalPolicy.DESTROY,
  autoDeleteObjects: true,
});

with that we can pass a bucket to the pipeline to use