From 64ebc45cc53e5f5212e8f1650c726bc3467abf5c Mon Sep 17 00:00:00 2001 From: Felix Bechstein Date: Thu, 7 Dec 2017 15:14:50 +0100 Subject: [PATCH] make sure only AWS_PROFILE is set in environment after swamping --- swamp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swamp.go b/swamp.go index ade3237..e4b7a2e 100644 --- a/swamp.go +++ b/swamp.go @@ -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() {