nutritious-battery-42762
11/15/2019, 4:48 PMconst appService = new awsx.ecs.FargateService("app-svc2", {
cluster,
taskDefinitionArgs: {
containers: {
php: {
image: img,
cpu: 102 /*10% of 1024*/,
memory: 50 /*MB*/,
essential: true
},
nginx: {
image: nginx,
cpu: 102 /*10% of 1024*/,
memory: 50 /*MB*/,
portMappings: [web],
essential: true,
},
}
},
desiredCount: 2
});
white-balloon-205
11/15/2019, 4:53 PMdependsOn
option in the container specification.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#container_definition_dependsonnutritious-battery-42762
11/15/2019, 4:55 PMfuture-barista-68134
11/18/2019, 5:17 PMbig-piano-35669
11/18/2019, 8:58 PMwhite-balloon-205
11/18/2019, 10:18 PMit doesnt seem to be available on awsx.ecs.FargateServiceYes - it looks like this is just missing from the
Container
interface in awsx
. If you pass it in there (and cast to <any>
) I believe it will work. We'll make sure to get it added.
Re: dependsOn
naming confusion - there are two different things - the Pulumi dependsOn
feature and the ECS dependsOn
task definition parameter. The later is what is desired/needed here.