From c8f29fbd603f7f74cd8fb53ae8ec094899841480 Mon Sep 17 00:00:00 2001 From: Mojo Talantikite Date: Thu, 16 Jan 2025 16:50:37 -0500 Subject: [PATCH] ci-force-run add fallback --- infrastructure/cdk/src/stacks/ui.ts | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/infrastructure/cdk/src/stacks/ui.ts b/infrastructure/cdk/src/stacks/ui.ts index 30ccfe0894..08725bc812 100644 --- a/infrastructure/cdk/src/stacks/ui.ts +++ b/infrastructure/cdk/src/stacks/ui.ts @@ -198,16 +198,17 @@ export class UiStack extends cdk.Stack { ) // Get SSM Parameters - const cloudfrontDomainName = - ssm.StringParameter.valueForStringParameter( - this, - `/configuration/${props.stage}/cloudfront/domain_name` - ) - const cloudfrontCertificateArn = - ssm.StringParameter.valueForStringParameter( - this, - `/configuration/${props.stage}/cloudfront/certificate_arn` - ) + const cloudfrontDomainName = ssm.StringParameter.valueFromLookup( + this, + `/configuration/${props.stage}/cloudfront/domain_name`, + '' + ) + + const cloudfrontCertificateArn = ssm.StringParameter.valueFromLookup( + this, + `/configuration/${props.stage}/cloudfront/certificate_arn`, + '' + ) // Create custom domain condition const customDomainCondition = new cdk.CfnCondition(