From 130b16fc704618546e2de3bedb17e82bdee69a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Svantesson?= Date: Tue, 16 Jan 2024 13:12:36 +0100 Subject: [PATCH] fix: use default region --- cmd/main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index b40ed03..237be90 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -7,7 +7,6 @@ import ( "strings" "time" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/acm" "jkassis.com/cert-secret-syncer/util" @@ -37,10 +36,7 @@ var awsAcmSvc *acm.ACM func init() { // Create ACM service client - awsSession = session.Must(session.NewSessionWithOptions(session.Options{ - Config: aws.Config{Region: aws.String("us-west-2")}, - SharedConfigState: session.SharedConfigEnable, - })) + awsSession = session.Must(session.NewSession()) awsAcmSvc = acm.New(awsSession) }