We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems name of environment variable for aws region is different with aws-java-sdk
https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-core/src/main/java/com/amazonaws/SDKGlobalConfiguration.java#L254
The text was updated successfully, but these errors were encountered:
Is there a particular problem you are running into?
Sorry, something went wrong.
I've running gradle task cascaded by awsudo. e.g. awsudo -u profile_name ./gradlew ...
awsudo
awsudo -u profile_name ./gradlew ...
I expect that region written in ~/.aws/config is applied to aws-java-sdk, but it's not.
~/.aws/config
So I think it will be better awsudo set AWS_REGION too, which is used by aws-java-sdk.
An example of functionality that needs AWS_REGION set may be CloudWatchLogs:
AWS_REGION
CloudWatchLogs
const Aws = require('aws-sdk'); new Aws.CloudWatchLogs().describeLogGroups({}, (err, details) => { if (err) { console.error(err); } else { console.log(details); } });
If launched as awsudo node index.js it fails with ConfigError: Missing region in config. But AWS_REGION=us-east-1 node index.js works fine.
awsudo node index.js
ConfigError: Missing region in config
AWS_REGION=us-east-1 node index.js
Cool!. Let me look into this.
No branches or pull requests
It seems name of environment variable for aws region is different with aws-java-sdk
https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-core/src/main/java/com/amazonaws/SDKGlobalConfiguration.java#L254
The text was updated successfully, but these errors were encountered: