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
Use AWS_DEFAULT_REGION
not AWS_REGION
#2103
Comments
Hello @delitescere, thank you for reaching out to us. This would be a breaking change for the SDK and something we would not be able to support without introducing another environment variable. This is just an inconsistency of how SDKs handle environment variable. In addition, |
Thanks @xibz! Yes I definitely know the annoyance that the names of these configuration variables causes - I have several variations of the same values depending on what the client expects. Although, I don't know that my suggestion makes it a breaking change. Falling back to |
@delitescere thanks for the feedback. The reason the change in behavior is the SDK looks at The SDK requires an option support for the shared config files since its feature were added after the SDK initial released. Automatically supporting the shared config would of potentially change the behavior of user applications that were running in the same environment as the AWS CLI. |
By the way, it seems the CLI has dropped support for FWIW I would like to see these tools behave as consistently as possible, though I understand the pressure to remain backwards compatible. Perhaps pressure should be applied to awscli to re-support |
We used to have our own kube2iam helm chart because there wasn't an helm chart before. There is now a stable official helm chart [1] so no reason to keep ours. The structure of the values changed to comply with what the helm chart expects. NOTE: I'm also overriding the image tag as the helm chart uses a slightly older version by default (`0.10.0` vs the newer `0.10.4`) NOTE: I'm setting the `AWS_DEFAULT_REGION` environment variable even if the helm chart already sets `AWS_REGION` [2]. Documentation for `--use-regional-sts-endpoint` [3] talks about the `AWS_REGION` environment variable and it seems there is some confusion [4] at the moment around which environment variable takes precedence and/or is used by the AWS SDK. [1]: https://github.com/helm/charts/tree/master/stable/kube2iam [2]: https://github.com/helm/charts/blob/master/stable/kube2iam/templates/daemonset.yaml#L67 [3]: https://github.com/jtblin/kube2iam/blob/master/README.md#aws-sts-endpoint-and-regions [4]: aws/aws-sdk-go#2103
hello can anyone send get the all instances from all regions using go. |
We used to have our own kube2iam helm chart because there wasn't an helm chart before. There is now a stable official helm chart [1] so no reason to keep ours. The structure of the values changed to comply with what the helm chart expects. NOTE: I'm also overriding the image tag as the helm chart uses a slightly older version by default (`0.10.0` vs the newer `0.10.4`) NOTE: I'm setting the `AWS_DEFAULT_REGION` environment variable even if the helm chart already sets `AWS_REGION` [2]. Documentation for `--use-regional-sts-endpoint` [3] talks about the `AWS_REGION` environment variable and it seems there is some confusion [4] at the moment around which environment variable takes precedence and/or is used by the AWS SDK. [1]: https://github.com/helm/charts/tree/master/stable/kube2iam [2]: https://github.com/helm/charts/blob/master/stable/kube2iam/templates/daemonset.yaml#L67 [3]: https://github.com/jtblin/kube2iam/blob/master/README.md#aws-sts-endpoint-and-regions [4]: aws/aws-sdk-go#2103
We used to have our own kube2iam helm chart because there wasn't an helm chart before. There is now a stable official helm chart [1] so no reason to keep ours. The structure of the values changed to comply with what the helm chart expects. NOTE: I'm also overriding the image tag as the helm chart uses a slightly older version by default (`0.10.0` vs the newer `0.10.4`) NOTE: I'm setting the `AWS_DEFAULT_REGION` environment variable even if the helm chart already sets `AWS_REGION` [2]. Documentation for `--use-regional-sts-endpoint` [3] talks about the `AWS_REGION` environment variable and it seems there is some confusion [4] at the moment around which environment variable takes precedence and/or is used by the AWS SDK. [1]: https://github.com/helm/charts/tree/master/stable/kube2iam [2]: https://github.com/helm/charts/blob/master/stable/kube2iam/templates/daemonset.yaml#L67 [3]: https://github.com/jtblin/kube2iam/blob/master/README.md#aws-sts-endpoint-and-regions [4]: aws/aws-sdk-go#2103
We used to have our own kube2iam helm chart because there wasn't an helm chart before. There is now a stable official helm chart [1] so no reason to keep ours. The structure of the values changed to comply with what the helm chart expects. NOTE: I'm also overriding the image tag as the helm chart uses a slightly older version by default (`0.10.0` vs the newer `0.10.4`) NOTE: I'm setting the `AWS_DEFAULT_REGION` environment variable even if the helm chart already sets `AWS_REGION` [2]. Documentation for `--use-regional-sts-endpoint` [3] talks about the `AWS_REGION` environment variable and it seems there is some confusion [4] at the moment around which environment variable takes precedence and/or is used by the AWS SDK. [1]: https://github.com/helm/charts/tree/master/stable/kube2iam [2]: https://github.com/helm/charts/blob/master/stable/kube2iam/templates/daemonset.yaml#L67 [3]: https://github.com/jtblin/kube2iam/blob/master/README.md#aws-sts-endpoint-and-regions [4]: aws/aws-sdk-go#2103
We used to have our own kube2iam helm chart because there wasn't an helm chart before. There is now a stable official helm chart [1] so no reason to keep ours. The structure of the values changed to comply with what the helm chart expects. NOTE: I'm also overriding the image tag as the helm chart uses a slightly older version by default (`0.10.0` vs the newer `0.10.4`) NOTE: I'm setting the `AWS_DEFAULT_REGION` environment variable even if the helm chart already sets `AWS_REGION` [2]. Documentation for `--use-regional-sts-endpoint` [3] talks about the `AWS_REGION` environment variable and it seems there is some confusion [4] at the moment around which environment variable takes precedence and/or is used by the AWS SDK. [1]: https://github.com/helm/charts/tree/master/stable/kube2iam [2]: https://github.com/helm/charts/blob/master/stable/kube2iam/templates/daemonset.yaml#L67 [3]: https://github.com/jtblin/kube2iam/blob/master/README.md#aws-sts-endpoint-and-regions [4]: aws/aws-sdk-go#2103
We used to have our own kube2iam helm chart because there wasn't an helm chart before. There is now a stable official helm chart [1] so no reason to keep ours. The structure of the values changed to comply with what the helm chart expects. NOTE: I'm also overriding the image tag as the helm chart uses a slightly older version by default (`0.10.0` vs the newer `0.10.4`) NOTE: I'm setting the `AWS_DEFAULT_REGION` environment variable even if the helm chart already sets `AWS_REGION` [2]. Documentation for `--use-regional-sts-endpoint` [3] talks about the `AWS_REGION` environment variable and it seems there is some confusion [4] at the moment around which environment variable takes precedence and/or is used by the AWS SDK. [1]: https://github.com/helm/charts/tree/master/stable/kube2iam [2]: https://github.com/helm/charts/blob/master/stable/kube2iam/templates/daemonset.yaml#L67 [3]: https://github.com/jtblin/kube2iam/blob/master/README.md#aws-sts-endpoint-and-regions [4]: aws/aws-sdk-go#2103
We used to have our own kube2iam helm chart because there wasn't an helm chart before. There is now a stable official helm chart [1] so no reason to keep ours. The structure of the values changed to comply with what the helm chart expects. NOTE: I'm also overriding the image tag as the helm chart uses a slightly older version by default (`0.10.0` vs the newer `0.10.4`) NOTE: I'm setting the `AWS_DEFAULT_REGION` environment variable even if the helm chart already sets `AWS_REGION` [2]. Documentation for `--use-regional-sts-endpoint` [3] talks about the `AWS_REGION` environment variable and it seems there is some confusion [4] at the moment around which environment variable takes precedence and/or is used by the AWS SDK. [1]: https://github.com/helm/charts/tree/master/stable/kube2iam [2]: https://github.com/helm/charts/blob/master/stable/kube2iam/templates/daemonset.yaml#L67 [3]: https://github.com/jtblin/kube2iam/blob/master/README.md#aws-sts-endpoint-and-regions [4]: aws/aws-sdk-go#2103
aws-sdk-go/aws/defaults/defaults.go
Line 57 in f2f8437
According to https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html there is now a "standard" (unfortunately many API clients do indeed use
AWS_REGION
).Suggest only using
AWS_REGION
ifAWS_DEFAULT_REGION
is not blank.The text was updated successfully, but these errors were encountered: