From 5ee3670ad575f07ae295b07d4134e7161dd90481 Mon Sep 17 00:00:00 2001 From: liwenwu-amazon Date: Mon, 27 Mar 2023 15:27:30 -0700 Subject: [PATCH] Allow controller to run against regions in addition to us-west-2 (#170) --- pkg/aws/services/vpclattice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/aws/services/vpclattice.go b/pkg/aws/services/vpclattice.go index f35826ef..b40c4bfa 100644 --- a/pkg/aws/services/vpclattice.go +++ b/pkg/aws/services/vpclattice.go @@ -38,7 +38,7 @@ func NewDefaultLattice(sess *session.Session, region string) *defaultLattice { endpoint = BetaProdEndpoint } - latticeSess = vpclattice.New(sess, aws.NewConfig().WithRegion("us-west-2").WithEndpoint(endpoint)) + latticeSess = vpclattice.New(sess, aws.NewConfig().WithRegion(region).WithEndpoint(endpoint)) glog.V(2).Infoln("Lattice Service EndPoint:", endpoint)