Skip to content

Commit

Permalink
Merge pull request #528 from snorlaX-sleeps/update_aws_sts_endpoint_t…
Browse files Browse the repository at this point in the history
…o_be_regional

Update the AWS STS endpoint to be regional as the method is now regional
  • Loading branch information
cben committed Jan 29, 2022
2 parents 44a3288 + 9cb760c commit 1c92f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kubeclient/aws_eks_credentials.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def token(credentials, eks_cluster, region: 'us-east-1')
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html#presign_url-instance_method
presigned_url_string = signer.presign_url(
http_method: 'GET',
url: 'https://sts.amazonaws.com/?Action=GetCallerIdentity&Version=2011-06-15',
url: "https://sts.#{region}.amazonaws.com/?Action=GetCallerIdentity&Version=2011-06-15",
body: '',
credentials: credentials,
expires_in: 60,
Expand Down

0 comments on commit 1c92f9d

Please sign in to comment.