Skip to content

Commit

Permalink
feat: #8950 update cdk stack
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcvay committed Apr 27, 2023
1 parent 32f5635 commit f7f9f48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ts-scripts/src/cdk/components/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
aws_s3_deployment as deploy,
} from 'aws-cdk-lib'
import { Certificate, ICertificate } from 'aws-cdk-lib/aws-certificatemanager'
import { BlockPublicAccess, BucketAccessControl } from 'aws-cdk-lib/aws-s3'
import { ACM } from 'aws-sdk'

interface CreateSiteInterface {
Expand Down Expand Up @@ -60,6 +61,8 @@ export const createSite = async (
websiteIndexDocument: defaultRootObject,
websiteErrorDocument: defaultRootObject,
publicReadAccess: true,
blockPublicAccess: BlockPublicAccess.BLOCK_ACLS,
accessControl: BucketAccessControl.BUCKET_OWNER_FULL_CONTROL,
})

const deploymentBucket = new deploy.BucketDeployment(stack, 'deployment', {
Expand Down

0 comments on commit f7f9f48

Please sign in to comment.