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

Must specify userName when calling with non-User credentials #3

Open
cymantic opened this issue Apr 5, 2018 · 1 comment
Open

Must specify userName when calling with non-User credentials #3

cymantic opened this issue Apr 5, 2018 · 1 comment

Comments

@cymantic
Copy link

cymantic commented Apr 5, 2018

When running lein lambda deploy production to an account where the user is connected via assume-role from a different aws account, you get this error:

com.amazonaws.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.
 at com.amazonaws.client.builder.AwsClientBuilder.setRegion (AwsClientBuilder.java:371)
    com.amazonaws.client.builder.AwsClientBuilder.configureMutableProperties (AwsClientBuilder.java:337)
...
    amazonica.core$intern_function$fn__5110.doInvoke (core.clj:995)
    clojure.lang.RestFn.invoke (RestFn.java:397)
    lein_lambda.identitymanagement$account_id.invokeStatic (identitymanagement.clj:8)
    lein_lambda.identitymanagement$account_id.invoke (identitymanagement.clj:7)

From the command line, instead of

aws iam get-user

use

aws sts get-caller-identity
@cymantic
Copy link
Author

cymantic commented Apr 5, 2018

Added a PR #4 to fix this issue

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

1 participant