mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 06:46:36 +01:00
So folks don't need to bother setting --aws-region or $AWS_REGION to
use their usual default. Docs for the config file settings are in
[1].
I've also adjusted the logic so that the precedence is:
1. --aws-region, falling back to
2. $AWS_REGION, falling back to
3. ~/.aws
Previously, $AWS_REGION took precedence, and has since the scripts
landed in 82bdd9fe (installer/scripts: AWS tag and delete scripts,
2017-06-28, coreos/tectonic-installer#1239). But having environment
variables override explicitly-set command line options is not
idiomatic.
[1]: https://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html