From 267cbd7185f3c688e26fde6a14684d4616d678d5 Mon Sep 17 00:00:00 2001 From: MohammadChavosh Date: Wed, 16 Oct 2024 12:41:39 -0700 Subject: [PATCH] Setting LAYERZERO_CDK_DEPLOY_REGION env variable (#5) --- cdk/gasolina/constants/envVariables/index.ts | 1 + cdk/gasolina/lib/gasolinaApi.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/cdk/gasolina/constants/envVariables/index.ts b/cdk/gasolina/constants/envVariables/index.ts index 0d68dc3..8d1fb74 100644 --- a/cdk/gasolina/constants/envVariables/index.ts +++ b/cdk/gasolina/constants/envVariables/index.ts @@ -11,4 +11,5 @@ export const ENV_VAR_NAMES = { LZ_KMS_CLOUD_TYPE: 'KMS_CLOUD_TYPE', LZ_KMS_IDS: 'LAYERZERO_KMS_IDS', LZ_EXTRA_CONTEXT_REQUEST_URL: 'EXTRA_CONTEXT_REQUEST_URL', + LZ_CDK_DEPLOY_REGION: 'LAYERZERO_CDK_DEPLOY_REGION', } diff --git a/cdk/gasolina/lib/gasolinaApi.ts b/cdk/gasolina/lib/gasolinaApi.ts index 0baf2f6..9b60db7 100644 --- a/cdk/gasolina/lib/gasolinaApi.ts +++ b/cdk/gasolina/lib/gasolinaApi.ts @@ -125,6 +125,7 @@ export const createGasolinaService = (props: CreateGasolinaServiceProps) => { environment: { NPM_TOKEN: 'foobar', [ENV_VAR_NAMES.LZ_ENV]: props.environment, + [ENV_VAR_NAMES.LZ_CDK_DEPLOY_REGION]: props.stack.region, SIGNER_TYPE: props.signerType, SERVER_PORT: '8081', [ENV_VAR_NAMES.LZ_SUPPORTED_ULNS]: JSON.stringify(['V2']),