From 1af03e6a940ccfa9a58c0612003f5ec57058145e Mon Sep 17 00:00:00 2001 From: Eric Shyong Date: Tue, 28 Apr 2015 11:25:48 -0700 Subject: [PATCH] Adds security token check to SharedAuth. This adds support for reading security tokens in the shared credentials file. --- aws/aws.go | 1 + 1 file changed, 1 insertion(+) diff --git a/aws/aws.go b/aws/aws.go index cfc42c03..553c7860 100644 --- a/aws/aws.go +++ b/aws/aws.go @@ -377,6 +377,7 @@ func SharedAuth() (auth Auth, err error) { auth.AccessKey = profile["aws_access_key_id"] auth.SecretKey = profile["aws_secret_access_key"] + auth.Token = profile["aws_security_token"] if auth.AccessKey == "" { err = errors.New("AWS_ACCESS_KEY_ID not found in environment in credentials file")