Skip to content

Commit

Permalink
Older versions of boto use AWS_SECURITY_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
lox committed Oct 10, 2015
1 parent e1babc5 commit 1fc3416
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func ExecCommand(ui Ui, input ExecCommandInput) {

env := os.Environ()
env = overwriteEnv(env, "http_proxy", l.Addr().String())
env = overwriteEnv(env, "no_proxy", "amazonaws.com")
env = overwriteEnv(env, "AWS_CONFIG_FILE", cfg.Name())
env = overwriteEnv(env, "AWS_DEFAULT_PROFILE", input.Profile)

Expand All @@ -71,6 +72,7 @@ func ExecCommand(ui Ui, input ExecCommandInput) {

if val.SessionToken != "" {
env = overwriteEnv(env, "AWS_SESSION_TOKEN", val.SessionToken)
env = overwriteEnv(env, "AWS_SECURITY_TOKEN", val.SessionToken)
}
}

Expand Down

0 comments on commit 1fc3416

Please sign in to comment.