Skip to content

Commit

Permalink
fix: updated the deployment scripts to reflect the aws changes
Browse files Browse the repository at this point in the history
  • Loading branch information
meza committed Jun 8, 2023
1 parent b4df6c6 commit a31a97a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deployment/lib/Constructs/StaticDeployment.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Duration, RemovalPolicy } from 'aws-cdk-lib';
import { AnyPrincipal, Effect, PolicyStatement, Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam';
import { RetentionDays } from 'aws-cdk-lib/aws-logs';
import { Bucket, ObjectOwnership } from 'aws-cdk-lib/aws-s3';
import { BlockPublicAccess, Bucket, BucketAccessControl, ObjectOwnership } from 'aws-cdk-lib/aws-s3';
import { BucketDeployment, CacheControl, Source } from 'aws-cdk-lib/aws-s3-deployment';
import { Construct } from 'constructs';
import type { LambdaDeployment } from './LambdaDeployment';
Expand All @@ -24,7 +24,10 @@ export class StaticDeployment extends Construct {
websiteIndexDocument: 'index.html',
websiteErrorDocument: '404.html',
autoDeleteObjects: true,
removalPolicy: RemovalPolicy.DESTROY
removalPolicy: RemovalPolicy.DESTROY,
blockPublicAccess: BlockPublicAccess.BLOCK_ACLS,
accessControl: BucketAccessControl.BUCKET_OWNER_FULL_CONTROL,
publicReadAccess: true
});

const bucketPolicy = new PolicyStatement({
Expand Down

0 comments on commit a31a97a

Please sign in to comment.