This PR adds support for main_container_name output from fargate service.
This enables the CLI to run deploy commands when more than 1 container is running in the ECS service.
If the module does not emit main_container_name output, the user gets the following error:
service contains multiple containers; cannot deploy unless service module exports 'main_container_name'
If the main_container_name is not in the task definition, the user gets the following error:
cannot deploy service; no container definition with main_container_name = <main_container_name>
This PR adds support for
main_container_name
output from fargate service. This enables the CLI to rundeploy
commands when more than 1 container is running in the ECS service.If the module does not emit
main_container_name
output, the user gets the following error:If the
main_container_name
is not in the task definition, the user gets the following error: