claudiajs / claudia

Deploy Node.js projects to AWS Lambda and API Gateway easily
https://claudiajs.com
MIT License
3.8k stars 274 forks source link

Deploying China region using --use-s3-bucket #187

Closed toshilam closed 5 years ago

toshilam commented 5 years ago
claudia create --profile cn --name cn-func-prod --region cn-north-1 --api-module src/index --timeout 15 --memory 1024 --config claudia.cn.prod.json --version prod --role lambda-vpc-execution-role --use-s3-bucket xxx

To fix this issue, passing region when initialize aws S3 in lambda-code.js "uploadToS3"

s3 = loggingWrap(new aws.S3({signatureVersion: 'v4', region: "targeted-region"}), {log: logger.logApiCall, logName: 's3'}),
gojko commented 5 years ago

claudia 5.5.0 is now on NPM, should fix this. can you please try and let me know if it's OK?

toshilam commented 5 years ago

claudia 5.5.0 is now on NPM, should fix this. can you please try and let me know if it's OK?

cool. will give it a try this weekend. thank you gojko

gojko commented 5 years ago

closing this due to inactivity. if something still needs to be done here, please reopen.