mirror of https://github.com/kubernetes/kops.git
use KOPS_AWS_ROLE_ARN
This commit is contained in:
parent
f31d8d5aa8
commit
3aca8fee4f
|
|
@ -276,7 +276,7 @@ func NewAWSCloud(region string, tags map[string]string) (AWSCloud, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// assumes the role before executing commands
|
// assumes the role before executing commands
|
||||||
roleARN := os.Getenv("AWS_ASSUME_ROLE_ARN")
|
roleARN := os.Getenv("KOPS_AWS_ROLE_ARN")
|
||||||
if roleARN != "" {
|
if roleARN != "" {
|
||||||
creds := stscreds.NewCredentials(sess, roleARN)
|
creds := stscreds.NewCredentials(sess, roleARN)
|
||||||
config = &aws.Config{Credentials: creds}
|
config = &aws.Config{Credentials: creds}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue