diff --git a/glide.lock b/glide.lock index 1d67f3e..68b85e3 100644 --- a/glide.lock +++ b/glide.lock @@ -1,8 +1,8 @@ -hash: 7662193196be72492dc5e4394da242782790e47a1160fbf0e9ec7a53ac9a7a78 -updated: 2016-01-21T15:47:09.020783102Z +hash: b818339a0813fd74dab43c41a9b509a989eec5806e13083d28d9fbf05f4c7c63 +updated: 2016-01-21T16:22:08.693964745Z imports: - name: github.com/aws/aws-sdk-go - version: f28e73d4791500a90d49190e0a01b769748cc2a8 + version: c4c1a1a2a076858fe18b2be674d833c796c45b09 subpackages: - aws - internal/endpoints @@ -12,6 +12,10 @@ imports: - internal/protocol/xml/xmlutil - internal/signer/v4 - service/s3 +- name: github.com/go-ini/ini + version: afbd495e5aaea13597b5e14fe514ddeaa4d76fc3 +- name: github.com/jmespath/go-jmespath + version: c01cf91b011868172fdcd9f41838e80c9d716264 - name: github.com/lsegal/gucumber version: 44a4d7eb3b14a88cf82b073dfb7e06277afdc549 - name: github.com/shiena/ansicolor @@ -28,7 +32,6 @@ imports: version: a98ad7ee00ec53921f08832bc06ecf7fd600e6a1 - name: golang.org/x/crypto version: 3760e016850398b85094c4c99e955b8c3dea5711 - repo: https://golang.org/x/crypto - name: golang.org/x/net version: b2ed34f6fc8d65cc6a090fb87692ea6b1162fddd - name: golang.org/x/text diff --git a/glide.yaml b/glide.yaml index 05c5814..330b66f 100644 --- a/glide.yaml +++ b/glide.yaml @@ -1,7 +1,7 @@ package: github.com/zencoder/go-remote-config import: - package: github.com/aws/aws-sdk-go - version: f28e73d4791500a90d49190e0a01b769748cc2a8 + version: v1.0.9 subpackages: - aws - internal/endpoints diff --git a/s3_signing.go b/s3_signing.go index 400455b..174aded 100644 --- a/s3_signing.go +++ b/s3_signing.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/s3" + "github.com/aws/aws-sdk-go/aws/session" ) var ( @@ -40,11 +41,12 @@ func generateSignedS3URL(region AWSRegion, bucket string, key string, expiry uin } // We want to use the default credentials chain so that it will attempt Env & Instance role creds - svc := s3.New(&aws.Config{ + sess := session.New(&aws.Config{ Region: aws.String(string(region)), Endpoint: aws.String(endpoint), S3ForcePathStyle: aws.Bool(s3ForcePathStyle), }) + svc := s3.New(sess) req, _ := svc.GetObjectRequest(&s3.GetObjectInput{ Bucket: &bucket,