Deploying China region using --use-s3-bucket
toshilam opened this issue · comments
toshilam commented
- Expected behaviour:
when deploying lambda function to China region "cn-north-1" using --, calling : "claudia create"
the full command :
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
- What actually happens:
always return :
The AWS Access Key Id you provided does not exist in our records.
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 Adzic commented
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
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 Adzic commented
closing this due to inactivity. if something still needs to be done here, please reopen.