Skip to content

Commit

Permalink
fix: invalid aws region
Browse files Browse the repository at this point in the history
  • Loading branch information
jbleduigou committed Oct 23, 2023
1 parent 793bc3c commit f9e6563
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion providers/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ func FetchResources(ctx context.Context, client providers.ProviderClient, region
}

for _, region := range listOfSupportedRegions {
client.AWSClient.Region = region
c := client.AWSClient.Copy()
c.Region = region
client = providers.ProviderClient{
AWSClient: &c,
Name: client.Name,
}
for _, fetchResources := range listOfSupportedServices() {
wp.SubmitTask(func() {
resources, err := fetchResources(ctx, client)
Expand Down

0 comments on commit f9e6563

Please sign in to comment.