mirror of
https://github.com/openshift/installer.git
synced 2026-02-06 18:47:19 +01:00
We've been involved in the profile decision since e915ab16
(platforms/aws: Allow specifying of AWS profile, 2017-11-07,
coreos/tectonic-installer#2320). Instead, callers should select their
profile using environment variables [1,2] and/or a shared credentials
file [3,4]. The 'aws' command line tool uses the same files and
environment variables [5,6,7]. Given that both our aws-sdx-go and
Terraform dependencies agree on how these values should be collected,
it seems easiest for us to just get out of the way and let the caller
set this up directly.
[1]: https://www.terraform.io/docs/providers/aws/#environment-variables
[2]: https://docs.aws.amazon.com/sdk-for-go/api/aws/session/#hdr-Environment_Variables
[3]: https://www.terraform.io/docs/providers/aws/#shared-credentials-file
[4]: https://docs.aws.amazon.com/sdk-for-go/api/aws/session/#hdr-Shared_Config_Fields
[5]: https://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html
[6]: https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html
[7]: https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html