Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Wolfe authored Jan 27, 2021
2 parents e3db0e6 + 5ed1bbf commit 8916e21
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 182 deletions.
4 changes: 3 additions & 1 deletion cmd/saml2aws/commands/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ func saveCredentials(awsCreds *awsconfig.AWSCredentials, sharedCreds *awsconfig.
log.Println("")
log.Println("Your new access key pair has been stored in the AWS configuration")
log.Printf("Note that it will expire at %v", awsCreds.Expires)
log.Println("To use this credential, call the AWS CLI with the --profile option (e.g. aws --profile", sharedCreds.Profile, "ec2 describe-instances).")
if sharedCreds.Profile != "default" {
log.Println("To use this credential, call the AWS CLI with the --profile option (e.g. aws --profile", sharedCreds.Profile, "ec2 describe-instances).")
}

return nil
}
Expand Down
Loading

0 comments on commit 8916e21

Please sign in to comment.