From d032e091d5ccaf3b7ffac4f4fff0f2fbd8855114 Mon Sep 17 00:00:00 2001 From: oliviassss Date: Tue, 29 Oct 2024 14:23:28 -0700 Subject: [PATCH] update the region of shield api --- pkg/aws/provider/default_aws_clients_provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/aws/provider/default_aws_clients_provider.go b/pkg/aws/provider/default_aws_clients_provider.go index 5a1f50dda..b43bc2993 100644 --- a/pkg/aws/provider/default_aws_clients_provider.go +++ b/pkg/aws/provider/default_aws_clients_provider.go @@ -57,7 +57,7 @@ func NewDefaultAWSClientsProvider(cfg aws.Config, endpointsResolver *endpoints.R o.BaseEndpoint = wafregionalCustomEndpoint }) sheildClient := shield.NewFromConfig(cfg, func(o *shield.Options) { - o.Region = "us-east-1" + o.Region = cfg.Region o.BaseEndpoint = shieldCustomEndpoint }) rgtClient := resourcegroupstaggingapi.NewFromConfig(cfg, func(o *resourcegroupstaggingapi.Options) {