Skip to content

Commit

Permalink
[BUGFIX]: Fix duplicate parameter deploy error (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
branberry authored Sep 15, 2023
1 parent 225a7e9 commit dbb00e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cdk-infra/lib/constructs/api/webhook-env-construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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',
});

Expand Down

0 comments on commit dbb00e8

Please sign in to comment.