From dbb00e83562253f91e0336d59d5e02cf1ecce7bd Mon Sep 17 00:00:00 2001 From: Brandon Ly Date: Fri, 15 Sep 2023 08:36:16 -0500 Subject: [PATCH] [BUGFIX]: Fix duplicate parameter deploy error (#907) --- cdk-infra/lib/constructs/api/webhook-env-construct.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cdk-infra/lib/constructs/api/webhook-env-construct.ts b/cdk-infra/lib/constructs/api/webhook-env-construct.ts index 2aefada52..eec5651ff 100644 --- a/cdk-infra/lib/constructs/api/webhook-env-construct.ts +++ b/cdk-infra/lib/constructs/api/webhook-env-construct.ts @@ -3,7 +3,7 @@ import { StringParameter } from 'aws-cdk-lib/aws-ssm'; import { Construct } from 'constructs'; import { getSsmPathPrefix } from '../../../utils/ssm'; import { getDashboardUrl } from '../../../utils/slack'; -import { getEnv } from '../../../utils/env'; +import { getEnv, getFeatureName } from '../../../utils/env'; interface WebhookEnvConstructProps { jobsQueue: IQueue; @@ -18,10 +18,11 @@ export class WebhookEnvConstruct extends Construct { const ssmPrefix = getSsmPathPrefix(); const env = getEnv(); + const featureName = getFeatureName(); // Create configurable feature flag that lives in parameter store. const monorepoPathFeature = new StringParameter(this, 'monorepoPathFeature', { - parameterName: `${ssmPrefix}/monorepo/path_feature`, + parameterName: `${ssmPrefix}/${featureName}/monorepo/path_feature`, stringValue: env === 'dotcomstg' || env === 'stg' ? 'true' : 'false', });