aws-samples / image-optimization

Simple, performant and cost efficient solution for optimizing images using Amazon CloudFront, Amazon S3 and AWS Lambda
MIT No Attribution
195 stars 116 forks source link

Set own transformed bucket name #29

Closed pawlakzn closed 8 months ago

pawlakzn commented 8 months ago

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 8 months ago

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 8 months ago

Thank you very much!