nullstone-io / nullstone

Nullstone is a customizable developer platform launched on your cloud accounts.
https://nullstone.io
MIT License
39 stars 1 forks source link

Add support for 'main_container_name' output #11

Closed BSick7 closed 3 years ago

BSick7 commented 3 years ago

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>