use KOPS_AWS_ROLE_ARN

This commit is contained in:
Jesse Haka 2023-05-09 16:48:05 +03:00
parent f31d8d5aa8
commit 3aca8fee4f
1 changed files with 1 additions and 1 deletions

View File

@ -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}