Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s3 region error #460

Open
mspencer-hm opened this issue Jun 17, 2022 · 1 comment
Open

s3 region error #460

mspencer-hm opened this issue Jun 17, 2022 · 1 comment

Comments

@mspencer-hm
Copy link

I am able to auth with my aws api key and secret key. However I am getting this error SdkClientException Unable to find a region via the region provider chain. Must provide an explicit region in the builder or setup environment to supply a region. com.amazonaws.client.builder.AwsClientBuilder.setRegion (AwsClientBuilder.java:462)

I have seen some suggestions to update ~/aws/config, but that is 1 not working and 2 wont work for deployment. Is there a way to explicitly set the region value in the code or from an env variable?

@positron
Copy link

Not a very clean solution, but I ended up setting the system property aws.region since the client building code uses the region if the endpoint is set. That uses DefaultAwsRegionProviderChain

https://github.com/mcohen01/amazonica/blob/f8ba125/src/amazonica/core.clj#L185-L188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants