Skip to content

Commit

Permalink
Update cloud_id.go
Browse files Browse the repository at this point in the history
  • Loading branch information
renanaAkeyless committed Dec 22, 2021
1 parent a6a73bf commit ddb00a7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cloudprovider/aws/cloud_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit ddb00a7

Please sign in to comment.