This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
error assuming role Error [ConfigError]: Missing region in config #42
Labels
Comments
I found this helpful to solving the core issue: aws/aws-sdk-js#2929 I think the error was coming from the aws-sdk-js package here:
Investigating that repo's issues list, I came across the above. It also linked out to https://github.com/aws/aws-sdk-go/search?q=AWS_DEFAULT_REGION&unscoped_q=AWS_DEFAULT_REGION which adds a comment about AWS_DEFAULT_REGION behavior. The fix for me was to set AWS_REGION in the CI pipeline. (I would likewise guess that setting AWS_SDK_LOAD_CONFIG=true would work) |
corymhall
added a commit
to corymhall/cdk-assume-role-credential-plugin
that referenced
this issue
Aug 13, 2021
now use the aws_default_region and aws_default_profile environment variables if aws_region and aws_profile are not set fix aws-samples#42
corymhall
added a commit
that referenced
this issue
Aug 13, 2021
🎉 This issue has been resolved in version 1.4.0 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm having an issue using this plugin in the gitlab CI that corresponds to this stack trace:
The error appears to correspond with the following function in
https://github.com/aws-samples/cdk-assume-role-credential-plugin/blob/main/lib/assume-role-source.ts
:This always works locally for me using
yarn cdk diff
and the appropriateAWS_ACCESS_KEY_ID
+ secret combo. I was hoping that this response would solve the issue but no luck. Any idea what's going on? Why does this plugin, when running in a CI environment rather than on my local machine, always fail to find a region?The text was updated successfully, but these errors were encountered: