Skip to content

Commit

Permalink
fix: use default region
Browse files Browse the repository at this point in the history
  • Loading branch information
msvticket committed Jan 16, 2024
1 parent 33e8466 commit 130b16f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 130b16f

Please sign in to comment.