From 1a44b427a7c7b07bc17640afd6197308e9b95ce5 Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Mon, 10 Aug 2015 15:46:22 -0500 Subject: [PATCH] state/remote/s3: match with upstream changes --- state/remote/s3.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/state/remote/s3.go b/state/remote/s3.go index 4d2b57592..c2d897dd0 100644 --- a/state/remote/s3.go +++ b/state/remote/s3.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/credentials" + "github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds" "github.com/aws/aws-sdk-go/service/s3" ) @@ -55,7 +56,7 @@ func s3Factory(conf map[string]string) (Client, error) { }}, &credentials.EnvProvider{}, &credentials.SharedCredentialsProvider{Filename: "", Profile: ""}, - &credentials.EC2RoleProvider{}, + &ec2rolecreds.EC2RoleProvider{}, }) // Make sure we got some sort of working credentials.