The allowed pattern does not allow periods to exist in bucket names - even though periods are valid in S3 bucket creation. Perhaps this could be changed to [a-zA-Z][a-zA-Z0-9-.]* to allow periods.
https://github.com/awslabs/serverless-image-handler/blob/master/deployment/serverless-image-handler.template#L12