k1LoW / serverless-s3-sync

A plugin to sync local directories and S3 prefixes for Serverless Framework :zap:
183 stars 70 forks source link

s3Sync operation cause IllegalLocationConstraintException #98

Open dengmingtong opened 2 years ago

dengmingtong commented 2 years ago

Hello, I am using serverless s3Sync to copy local file to aws s3 in HongKong(ap-east-1) region, I got below error:

IllegalLocationConstraintException: The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to. at Request.extractError (/home/ec2-user/environment/gcr-solutions/service-workbench-on-aws/node_modules/.pnpm/aws-sdk@2.721.0/node_modules/aws-sdk/lib/services/s3.js:837:35)

Does serverless s3Sync support AWS HongKong region? If yes, how can I config serverless.yml to fix this issue?

Thanks Mingtong