2

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

Sisir
  • 218
  • 1
  • 12

1 Answers1

3

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

Sisir
  • 218
  • 1
  • 12
  • Thanks, I was really caught up with the docs and it was not at all helpful w.r.t to passing region info correctly – Nishant Jun 13 '23 at 07:25