Skip to content

Commit 20d9f0c

Browse files
committed
Remove unecessary configs
1 parent 3ff2f64 commit 20d9f0c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

backend/src/iac/backend-stack.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,6 @@ export class BackendStack extends cdk.Stack {
533533
const uploadBucket = new s3.Bucket(this, `${appName}UploadBucket-${props.environment}`, {
534534
bucketName: `${appName.toLowerCase()}-uploads-${props.environment}-${this.account}`,
535535
removalPolicy: RemovalPolicy.RETAIN,
536-
versioned: true, // Enable versioning in production
537536
lifecycleRules: [
538537
{
539538
noncurrentVersionExpiration: cdk.Duration.days(7),
@@ -567,12 +566,6 @@ export class BackendStack extends cdk.Stack {
567566
effect: iam.Effect.ALLOW,
568567
actions: ['s3:PutObject', 's3:GetObject', 's3:DeleteObject'],
569568
resources: [`${uploadBucket.bucketArn}/*`],
570-
conditions: {
571-
// Restrict uploads to PDF and JPG files
572-
StringLike: {
573-
's3:x-amz-content-type': ['application/pdf', 'image/jpeg', 'image/jpg'],
574-
},
575-
},
576569
});
577570

578571
// Create an IAM role for authenticated users

0 commit comments

Comments
 (0)