PacktPublishing / AWS-CDK-in-Practice

AWS CDK in Practice, published by Packt
MIT License
53 stars 55 forks source link

s3 bucket name must be unique #5

Open lsdeva opened 1 year ago

lsdeva commented 1 year ago

chapter-4-complete-web-application-deployment-with-aws-cdk/infrastructure/lib/constructs/S3/index.ts

Bucket name hard-coded

rajat-packt commented 1 year ago

Hey @lsdeva, you may change the value of the variable unique_id on line 38 of the specified file so that the bucket name becomes unique. You can also try initializing unique_id using value from a function that generates random values so that you get a new value on every execution.