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 @@ -50,6 +50,7 @@ func execWithCredentials(argv []string, creds *credentials) error {
50
50
env = append (env , fmt .Sprintf ("AWS_ACCESS_KEY_ID=%s" , creds .AccessKeyId ))
51
51
env = append (env , fmt .Sprintf ("AWS_SECRET_ACCESS_KEY=%s" , creds .SecretAccessKey ))
52
52
env = append (env , fmt .Sprintf ("AWS_SESSION_TOKEN=%s" , creds .SessionToken ))
53
+ env = append (env , fmt .Sprintf ("AWS_SECURITY_TOKEN=%s" , creds .SessionToken ))
53
54
return syscall .Exec (argv0 , argv , env )
54
55
}
55
56
@@ -65,6 +66,7 @@ func printCredentials(creds *credentials) {
65
66
fmt .Printf ("export AWS_ACCESS_KEY_ID=\" %s\" \n " , creds .AccessKeyId )
66
67
fmt .Printf ("export AWS_SECRET_ACCESS_KEY=\" %s\" \n " , creds .SecretAccessKey )
67
68
fmt .Printf ("export AWS_SESSION_TOKEN=\" %s\" \n " , creds .SessionToken )
69
+ fmt .Printf ("export AWS_SECURITY_TOKEN=\" %s\" \n " , creds .SessionToken )
68
70
fmt .Printf ("# Run this to configure your shell:\n " )
69
71
fmt .Printf ("# eval $(%s)\n " , strings .Join (os .Args , " " ))
70
72
}
You can’t perform that action at this time.
0 commit comments