Skip to content

Commit

Permalink
fix: set removal policy when auto deleting firehose bucket objects (#113
Browse files Browse the repository at this point in the history
)
  • Loading branch information
suhussai authored Nov 11, 2024
1 parent 84c4dae commit 0964d1d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export class FirehoseAggregator extends Construct implements IDataIngestorAggreg
const firehoseDestinationBucket = new s3.Bucket(this, 'FirehoseDestinationBucket', {
enforceSSL: true,
autoDeleteObjects: props.autoDeleteObjects,
...(props.autoDeleteObjects && { removalPolicy: cdk.RemovalPolicy.DESTROY }),
blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
});

Expand Down

0 comments on commit 0964d1d

Please sign in to comment.