- tested using python2.7
- support subdirectory in S3
- you could easily update the script according to your requirement
The code uploads the resized image to a different bucket with the same image name, as shown following:
source-bucket/image.png -> source-bucketresized/image.png
PS: This example is inspired and updated from AWS Doc