-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
AWS – use session.NewSession
instead of session.New
to
#2428
AWS – use session.NewSession
instead of session.New
to
#2428
Conversation
`session.New` is deprecated and requires the `AWS_SDK_LOAD_CONFIG` environment variable to be set in order to automatically call `AssumeRoleWithWebIdentity` when `AWS_WEB_IDENTITY_TOKEN_FILE` is set (which is not documented and most likely unintended).
Original bug report: aws/aws-sdk-go#2828 |
/assign @Jeffwan |
Thanks for the change. This would be an easy way no matter /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Jeffwan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Cherry pick #2428 to 1.13
Due to the way the AWS's pod identity webhook provides authentication tokens to pods, we need to upgrade `aws-sdk-go` as per https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts-minimum-sdk.html and use replace the deprecated New func with NewSession to properly load the identity file as detailed in this issue: kubernetes/autoscaler#2428
session.New
is deprecated and requires theAWS_SDK_LOAD_CONFIG
environment variable to be set in order to automatically call
AssumeRoleWithWebIdentity
whenAWS_WEB_IDENTITY_TOKEN_FILE
is set(which is not documented and most likely unintended).