Skip to content

Instantly share code, notes, and snippets.

@JoshM1994
Last active March 20, 2022 02:39
Show Gist options
  • Save JoshM1994/b7c48026c0facd709175ab902cf41283 to your computer and use it in GitHub Desktop.
Save JoshM1994/b7c48026c0facd709175ab902cf41283 to your computer and use it in GitHub Desktop.
const siteBucket = new s3.Bucket(this, 'WebsiteBucket', {
encryption: BucketEncryption.S3_MANAGED,
removalPolicy: RemovalPolicy.DESTROY,
autoDeleteObjects: true,
// No website related settings
accessControl: BucketAccessControl.PRIVATE,
publicReadAccess: false,
blockPublicAccess: BlockPublicAccess.BLOCK_ALL,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment