sparse-intern-71089
01/06/2021, 6:28 PMstraight-librarian-43739
01/06/2021, 6:29 PMaws.ecs
resources rather than awsx
because this was suggested as a workaround. But I am not sure where this error comes from or even what it means.straight-librarian-43739
01/06/2021, 6:33 PMloadBalancers
block on creationstraight-librarian-43739
01/06/2021, 6:39 PMwitty-candle-66007
01/06/2021, 7:16 PMstraight-librarian-43739
01/06/2021, 7:18 PMconst service = new aws.ecs.Service(`${fqServiceName}-service`, {
cluster: ecsClusters[region].arn,
taskDefinition: saltTask.arn,
platformVersion: "1.4.0",
launchType: "FARGATE",
desiredCount: 1,
loadBalancers: [{
targetGroupArn: tg4505.targetGroup.arn,
containerName: config.saltMasterConfig.serviceName,
containerPort: 4505
}, {
targetGroupArn: tg4506.targetGroup.arn,
containerName: config.saltMasterConfig.serviceName,
containerPort: 4506
}],
networkConfiguration: {
subnets: subnetsPromise.then((subnets: any[]) => subnets.map((s: any) => s.id)),
securityGroups: [saltSg.id],
assignPublicIp: false,
},
serviceRegistries: {
registryArn: sdService.arn,
containerName: config.saltMasterConfig.serviceName,
},
}, {provider: provider}
)
straight-librarian-43739
01/06/2021, 7:19 PMawsx
providerstraight-librarian-43739
01/06/2021, 7:19 PMconst listener4505 = nlb.createListener(`${fqServiceName}-l4505`, {
port: 4505,
protocol: "TCP",
}, {provider: provider}
)
const listener4506 = nlb.createListener(`${fqServiceName}-l4506`, {
port: 4506,
protocol: "TCP",
}, {provider: provider}
)
const tg4505 = nlb.targetGroups.find(tg => tg.targetGroup.port.apply(p => p === 4505))!
const tg4506 = nlb.targetGroups.find(tg => tg.targetGroup.port.apply(p => p === 4506))!
straight-librarian-43739
01/06/2021, 7:20 PMwitty-candle-66007
01/06/2021, 7:52 PMexport
in front of those lines and see what gets dumped out and confirm that they are different.straight-librarian-43739
01/06/2021, 7:52 PM