From ddb00a7b241da2dcb0f50d6b17f4d6daeeb16c2e Mon Sep 17 00:00:00 2001 From: renanaAkeyless Date: Wed, 22 Dec 2021 18:24:42 +0200 Subject: [PATCH] Update cloud_id.go --- cloudprovider/aws/cloud_id.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cloudprovider/aws/cloud_id.go b/cloudprovider/aws/cloud_id.go index 213e9a2..9e594b0 100644 --- a/cloudprovider/aws/cloud_id.go +++ b/cloudprovider/aws/cloud_id.go @@ -10,13 +10,10 @@ import ( "github.com/aws/aws-sdk-go/service/sts" ) -const ( - region = "us-east-1" -) - func GetCloudId() (string, error) { // Endpoint https://sts.amazonaws.com is available only in single region: us-east-1. // So, caller identity request can be only us-east-1. Default call brings region where caller is + region := "us-east-1" svc := sts.New(session.Must(session.NewSession()), aws.NewConfig().WithRegion(region))