From b1454e599433963b7dbadcd76ba25ade1daefe9a Mon Sep 17 00:00:00 2001 From: Karam Date: Thu, 13 Feb 2025 12:05:27 -0500 Subject: [PATCH] Fix region provider initialization logic --- infra/regions.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/infra/regions.ts b/infra/regions.ts index 99591e45..43104c5c 100644 --- a/infra/regions.ts +++ b/infra/regions.ts @@ -6,10 +6,11 @@ const providers = {} as Record; for (const region of regions) { if (region === "us-east-1") { providers[region] = undefined; + } else { + providers[region] = new aws.Provider("Aws_" + region, { + region: region as any, + }); } - providers[region] = new aws.Provider("Aws_" + region, { - region: region as any, - }); } export function multiregion(