File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ func execWithCredentials(argv []string, creds *credentials) error {
60
60
env = append (env , fmt .Sprintf ("AWS_ACCESS_KEY_ID=%s" , creds .AccessKeyId ))
61
61
env = append (env , fmt .Sprintf ("AWS_SECRET_ACCESS_KEY=%s" , creds .SecretAccessKey ))
62
62
env = append (env , fmt .Sprintf ("AWS_SESSION_TOKEN=%s" , creds .SessionToken ))
63
+ env = append (env , fmt .Sprintf ("AWS_SECURITY_TOKEN=%s" , creds .SessionToken ))
63
64
return syscall .Exec (argv0 , argv , env )
64
65
}
65
66
@@ -75,6 +76,7 @@ func printCredentials(creds *credentials) {
75
76
fmt .Printf ("export AWS_ACCESS_KEY_ID=\" %s\" \n " , creds .AccessKeyId )
76
77
fmt .Printf ("export AWS_SECRET_ACCESS_KEY=\" %s\" \n " , creds .SecretAccessKey )
77
78
fmt .Printf ("export AWS_SESSION_TOKEN=\" %s\" \n " , creds .SessionToken )
79
+ fmt .Printf ("export AWS_SECURITY_TOKEN=\" %s\" \n " , creds .SessionToken )
78
80
fmt .Printf ("# Run this to configure your shell:\n " )
79
81
fmt .Printf ("# eval $(%s)\n " , strings .Join (os .Args , " " ))
80
82
}
You can’t perform that action at this time.
0 commit comments