Skip to content

Commit

Permalink
Protect s3 bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
Melle committed Mar 4, 2024
1 parent 3275449 commit a0b70b9
Show file tree
Hide file tree
Showing 3 changed files with 288 additions and 209 deletions.
2 changes: 2 additions & 0 deletions lib/mwaa-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export class MwaaStack extends Stack {

createBucket(): s3.Bucket {
return new s3.Bucket(this, "Bucket", {
enforceSSL: true,
blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
autoDeleteObjects: true,
removalPolicy: RemovalPolicy.DESTROY,
});
Expand Down
Loading

0 comments on commit a0b70b9

Please sign in to comment.