From e4d3089e3e289bb40ea3bd672cb50e48e0ac2233 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 22 Nov 2017 21:42:00 +0100 Subject: [PATCH] Fix: Initialization of s3 object needed adjustment Signed-off-by: Knut Ahlers --- storage/s3.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/s3.go b/storage/s3.go index ff105b0..2cc945f 100644 --- a/storage/s3.go +++ b/storage/s3.go @@ -8,6 +8,7 @@ import ( "github.com/Luzifer/mondash/config" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" ) @@ -19,7 +20,7 @@ type S3Storage struct { // NewS3Storage instanciates a new S3Storage func NewS3Storage(cfg *config.Config) *S3Storage { - s3connection := s3.New(&aws.Config{}) + s3connection := s3.New(session.Must(session.NewSession())) return &S3Storage{ s3connection: s3connection, cfg: cfg,