Skip to content

Commit 8d70178

Browse files
committed
Bumped to tagged AWS version and updated to use new changed method signature
1 parent 0274f03 commit 8d70178

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

glide.lock

+7-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

glide.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package: github.com/zencoder/go-remote-config
22
import:
33
- package: github.com/aws/aws-sdk-go
4-
version: f28e73d4791500a90d49190e0a01b769748cc2a8
4+
version: v1.0.9
55
subpackages:
66
- aws
77
- internal/endpoints

s3_signing.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88

99
"github.com/aws/aws-sdk-go/aws"
1010
"github.com/aws/aws-sdk-go/service/s3"
11+
"github.com/aws/aws-sdk-go/aws/session"
1112
)
1213

1314
var (
@@ -40,11 +41,12 @@ func generateSignedS3URL(region AWSRegion, bucket string, key string, expiry uin
4041
}
4142

4243
// We want to use the default credentials chain so that it will attempt Env & Instance role creds
43-
svc := s3.New(&aws.Config{
44+
sess := session.New(&aws.Config{
4445
Region: aws.String(string(region)),
4546
Endpoint: aws.String(endpoint),
4647
S3ForcePathStyle: aws.Bool(s3ForcePathStyle),
4748
})
49+
svc := s3.New(sess)
4850

4951
req, _ := svc.GetObjectRequest(&s3.GetObjectInput{
5052
Bucket: &bucket,

0 commit comments

Comments
 (0)