Closed debashisbiswas closed 3 months ago
I wonder if your credentials don't have a default region. You check that.
Also you could try setting it explicitly in your sst config: https://ion.sst.dev/docs/reference/config/#home
Ideally you shouldn't have to set it in the AWS SDKs like that.
Thanks. Setting the region in the sst config led to the same issue. However, I didn't have a default region set for the AWS CLI, and specifying one resolved this.
I encountered this error when trying to create a fresh project and adding an S3 bucket following the docs at https://ion.sst.dev/docs/start/aws/svelte/. I was able to reproduce the same issue in the included template as well. Here are the reproduction steps:
ion/examples/aws-svelte-kit
npm install
npm run dev
I observed this issue in the Astro example as well. I've tried setting the
AWS_REGION
environment variable tous-east-1
before running, but this did not solve the issue.The error is on this line:
and a fix is to the specify the region directly...
...however, because the documentation does not do this, this does not seem to be the intended approach.