简体   繁体   中英

aws-sdk v3 lambda region missing even after providing region

I'm migrating aws-sdk from v2 to v3 and I'm having trouble setting up the lambda client. I'm providing region during the instantiation of lambda client as shown in the docs but while running InvokeAsyncCommand on the client, I get "Region is missing" error.

The sandbox contains the issue reproduced

https://codesandbox.io/s/xenodochial-robinson-ljqfo

Adding clientConfig: {region: "region-here"} in fromCognitoIdentityPool solved the issue. I've left the code sandbox unedited for reference.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM