Skip to content

Commit

Permalink
feat(s3): fix bucket permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
briancaffey committed Mar 6, 2024
1 parent 9888efb commit e648a7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/constructs/ad-hoc/base/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { RemovalPolicy, Stack } from 'aws-cdk-lib';
import { IVpc, SecurityGroup } from 'aws-cdk-lib/aws-ec2';
import { ApplicationListener, ApplicationLoadBalancer } from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import { DatabaseInstance } from 'aws-cdk-lib/aws-rds';
import { Bucket } from 'aws-cdk-lib/aws-s3';
import { Bucket, ObjectOwnership } from 'aws-cdk-lib/aws-s3';
import { Construct } from 'constructs';
import { AlbResources } from '../../internal/alb';
import { ElastiCacheCluster } from '../../internal/ec';
Expand Down Expand Up @@ -46,6 +46,7 @@ export class AdHocBase extends Construct {
restrictPublicBuckets: false,
},
autoDeleteObjects: true,
objectOwnership: ObjectOwnership.OBJECT_WRITER,
});
this.assetsBucket = assetsBucket;

Expand Down

0 comments on commit e648a7b

Please sign in to comment.