Set own transformed bucket name
Closed this issue · 2 comments
pawlakzn commented
There is a possibility to set different own parameters, e.g.: S3_IMAGE_BUCKET_NAME
.
Would you it be possible to set own name of transformed bucket? For example as S3_TRANSFORMED_IMAGE_BUCKET_NAME
?
achrafsouk commented
Yes, it's simple, you need to change the lib/image-optimization-stack.ts code.
instead of transformedImageBucket = new s3.Bucket(.... use -> transformedImageBucket = s3.Bucket.fromBucketName(..
pawlakzn commented
Thank you very much!