From 0e767711ef2cce4d815933f499e79156ec306a54 Mon Sep 17 00:00:00 2001 From: nsxshota Date: Tue, 21 Nov 2023 16:34:41 +0900 Subject: [PATCH] add portMapping name option --- deploy/scripts/cdk/lib/construct/frontend.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/scripts/cdk/lib/construct/frontend.ts b/deploy/scripts/cdk/lib/construct/frontend.ts index 451438cc5..e5aec96b6 100644 --- a/deploy/scripts/cdk/lib/construct/frontend.ts +++ b/deploy/scripts/cdk/lib/construct/frontend.ts @@ -43,7 +43,7 @@ export class FrontEndCluster extends Construct { taskRole: props.frontendTaskRole, } ); - + const frontendServiceName = 'frontend' frontendTaskDefinition.addContainer('frontendContainer', { image: ecs.ContainerImage.fromEcrRepository(props.ecrFrontEndRepository, "latest"), containerName:'langflow-front-container', @@ -58,13 +58,13 @@ export class FrontEndCluster extends Construct { }), portMappings: [ { + name:frontendServiceName, containerPort: containerPort, protocol: ecs.Protocol.TCP, appProtocol:ecs.AppProtocol.http, }, ], }); - const frontendServiceName = 'frontend' const frontendService = new ecs.FargateService( this, 'FrontendService',