state/remote/s3: match with upstream changes

This commit is contained in:
Paul Hinze 2015-08-10 15:46:22 -05:00
parent ca993a5a5e
commit 1a44b427a7
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import (
"github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/credentials" "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" "github.com/aws/aws-sdk-go/service/s3"
) )
@ -55,7 +56,7 @@ func s3Factory(conf map[string]string) (Client, error) {
}}, }},
&credentials.EnvProvider{}, &credentials.EnvProvider{},
&credentials.SharedCredentialsProvider{Filename: "", Profile: ""}, &credentials.SharedCredentialsProvider{Filename: "", Profile: ""},
&credentials.EC2RoleProvider{}, &ec2rolecreds.EC2RoleProvider{},
}) })
// Make sure we got some sort of working credentials. // Make sure we got some sort of working credentials.