add portMapping name option
This commit is contained in:
parent
a9ebac07ac
commit
0e767711ef
1 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ export class FrontEndCluster extends Construct {
|
||||||
taskRole: props.frontendTaskRole,
|
taskRole: props.frontendTaskRole,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
const frontendServiceName = 'frontend'
|
||||||
frontendTaskDefinition.addContainer('frontendContainer', {
|
frontendTaskDefinition.addContainer('frontendContainer', {
|
||||||
image: ecs.ContainerImage.fromEcrRepository(props.ecrFrontEndRepository, "latest"),
|
image: ecs.ContainerImage.fromEcrRepository(props.ecrFrontEndRepository, "latest"),
|
||||||
containerName:'langflow-front-container',
|
containerName:'langflow-front-container',
|
||||||
|
|
@ -58,13 +58,13 @@ export class FrontEndCluster extends Construct {
|
||||||
}),
|
}),
|
||||||
portMappings: [
|
portMappings: [
|
||||||
{
|
{
|
||||||
|
name:frontendServiceName,
|
||||||
containerPort: containerPort,
|
containerPort: containerPort,
|
||||||
protocol: ecs.Protocol.TCP,
|
protocol: ecs.Protocol.TCP,
|
||||||
appProtocol:ecs.AppProtocol.http,
|
appProtocol:ecs.AppProtocol.http,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
const frontendServiceName = 'frontend'
|
|
||||||
const frontendService = new ecs.FargateService(
|
const frontendService = new ecs.FargateService(
|
||||||
this,
|
this,
|
||||||
'FrontendService',
|
'FrontendService',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue