aws-samples/image-optimization

Set own transformed bucket name

Closed this issue · 2 comments

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?

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(..

Thank you very much!