Skip to content

Commit

Permalink
Cap aws session ttl at 1hour (max)
Browse files Browse the repository at this point in the history
  • Loading branch information
lox committed Sep 15, 2015
1 parent ae6ed1b commit ab5207d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func main() {
ls = kingpin.Command("ls", "List profiles")
exec = kingpin.Command("exec", "Executes a command with AWS credentials in the environment")
execProfile = exec.Arg("profile", "Name of the profile").Required().String()
execSessDuration = exec.Flag("session-ttl", "Expiration time for aws session").Default("8h").OverrideDefaultFromEnvar("AWS_SESSION_TTL").Short('t').Duration()
execSessDuration = exec.Flag("session-ttl", "Expiration time for aws session").Default("1h").OverrideDefaultFromEnvar("AWS_SESSION_TTL").Short('t').Duration()
execCmd = exec.Arg("cmd", "Command to execute").Default(os.Getenv("SHELL")).String()
execCmdArgs = exec.Arg("args", "Command arguments").Strings()
rm = kingpin.Command("rm", "Removes credentials")
Expand Down

0 comments on commit ab5207d

Please sign in to comment.