Skip to content

Commit

Permalink
use KOPS_AWS_ROLE_ARN
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaab committed May 9, 2023
1 parent f31d8d5 commit 3aca8fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/awsup/aws_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func NewAWSCloud(region string, tags map[string]string) (AWSCloud, error) {
}

// assumes the role before executing commands
roleARN := os.Getenv("AWS_ASSUME_ROLE_ARN")
roleARN := os.Getenv("KOPS_AWS_ROLE_ARN")
if roleARN != "" {
creds := stscreds.NewCredentials(sess, roleARN)
config = &aws.Config{Credentials: creds}
Expand Down

0 comments on commit 3aca8fe

Please sign in to comment.