ancient-memory-38025
10/30/2019, 4:03 PMconst tvxClusterS = aws.ecs.Cluster.get(`${identifier}-clustera`, stackCluster.getOutput(config.require("clusterName")))
const tvxVpcIdS = awsx.ec2.Vpc.fromExistingIds(`${identifier}-networka`, {
vpcId: stackCluster.getOutput(config.require("vpcId"))
})
// const tvxVpcIdS = aws.ec2.Vpc.get(`${identifier}-networka`, stackCluster.getOutput(config.require("vpcId")))
const tvxCluster = new awsx.ecs.Cluster(`${identifier}-clusterb`, {
cluster: tvxClusterS,
vpc: tvxVpcIdS
})
const ecsService = new awsx.ecs.EC2Service(`${identifier}-svc`, {
cluster: tvxCluster,
taskDefinitionArgs: {
containers: {
app: {
image: awsx.ecs.Image.fromPath(`${identifier}-img`, "./app"),
portMappings: [{
containerPort: 3000,
hostPort: 80,
protocol: "tcp"
}]
}
},
},
desiredCount: 2
})
const app = new Service(`${identifier}-svc-instance`, ecsService)
gentle-diamond-70147
10/30/2019, 4:36 PMconst tvxCluster = new awsx.ecs.Cluster(`${identifier}-clusterb`, {
cluster: tvxClusterS,
vpc: tvxVpcIdS
})
ancient-memory-38025
10/30/2019, 5:00 PMnew awsx.ecs.EC2Service
to create a service in that cluster?ancient-memory-38025
10/30/2019, 5:02 PM