Open 00linglin opened 4 years ago
Currently, the code only looks for SERVICE_REGION and fails if it is not found, in AWS Lambda, the environment variable 'AWS_REGION' is prepopulated by default and can be used.
https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html
Thanks for the suggestion, @00linglin! We're discussing the issue.
Currently, the code only looks for SERVICE_REGION and fails if it is not found, in AWS Lambda, the environment variable 'AWS_REGION' is prepopulated by default and can be used.
https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html