Skip to content

Commit

Permalink
feat: changing access control for forums (#332)
Browse files Browse the repository at this point in the history
* feat: changing access control for forums

* fix: removing block public access
  • Loading branch information
JasonNotJson authored Sep 25, 2023
1 parent 5b0c09c commit 5d84c7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/constructs/persistence/data-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ export class ThreadImgDataPipeline extends AbstractDataPipeline {

// Initialize S3 bucket for storing thread images
this.dataSource = new s3.Bucket(this, 'thread-img-bucket', {
accessControl: s3.BucketAccessControl.PRIVATE,
blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
accessControl: s3.BucketAccessControl.PUBLIC_READ,
// blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
bucketName: 'wasedatime-thread-img',
encryption: s3.BucketEncryption.S3_MANAGED,
publicReadAccess: false,
publicReadAccess: true,
removalPolicy: RemovalPolicy.RETAIN,
versioned: true,
});
Expand Down

0 comments on commit 5d84c7d

Please sign in to comment.