From 6da665c8e12878a1b18659e77445a77475dbbbaa Mon Sep 17 00:00:00 2001 From: Ernesto Hernandez Date: Fri, 26 Jul 2024 08:20:21 +0200 Subject: [PATCH] (fix): Add prefix to S3 buckets --- infrastructure/stacks/common/stack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/stacks/common/stack.ts b/infrastructure/stacks/common/stack.ts index 8b9630b..d68fcd7 100644 --- a/infrastructure/stacks/common/stack.ts +++ b/infrastructure/stacks/common/stack.ts @@ -100,7 +100,7 @@ export class CommonStack extends cdk.Stack { // Define the S3 bucket for raw videos - const rawVideosBucket = new s3.Bucket(this, 'RawVideos', { + const rawVideosBucket = new s3.Bucket(this, `${CDCommonStackPrefix}RawVideos`, { removalPolicy: cdk.RemovalPolicy.DESTROY, // Only for development purposes autoDeleteObjects: true, // Only for development purposes }); @@ -112,7 +112,7 @@ export class CommonStack extends cdk.Stack { }); // Define the S3 bucket for video chunks - const VideoChunksBucket = new s3.Bucket(this, 'CommonBucketVideoChunks', { + const VideoChunksBucket = new s3.Bucket(this, `${CDCommonStackPrefix}CommonBucketVideoChunks`, { removalPolicy: cdk.RemovalPolicy.DESTROY, // Only for development purposes autoDeleteObjects: true, // Only for development purposes });