Skip to content

Commit

Permalink
make sure only AWS_PROFILE is set in environment after swamping
Browse files Browse the repository at this point in the history
  • Loading branch information
felixb committed Dec 7, 2017
1 parent 9f1ffe1 commit 64ebc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func writeProfileToFile(export, profile string) {
}
defer file.Close()

fmt.Fprintf(file, "export AWS_PROFILE=%s\n", profile)
fmt.Fprintf(file, "export AWS_PROFILE=%s\nunset AWS_ACCESS_KEY_ID\nunset AWS_SECRET_ACCESS_KEY\n", profile)
}

func main() {
Expand Down

0 comments on commit 64ebc45

Please sign in to comment.