Open chrisbecke opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it had not recent activity during the stale period.
Description
When deploying a docker compose service to ECS with a stop-first update policy the deployment will fail if the generated cloudformation template yaml is used.
Steps to reproduce the issue:
docker compose --context ecs-context convert > cloudformation.yaml
aws cloudformation create-stack --template-body file://cloudformation.yaml
aws cloudformation update-stack --template-body file://cloudformation.yaml
Describe the results you received:
The following warnings are emitted indicating that the update_config section was not, in fact, supported, as claimed
In addition, the generated cloudformation yaml contains the following under the Service:
The deployment, triggered by step 6, never completes as AWS will not stop the running Task untill the Task with revision 2 starts successfully, but it cannot becase of the lock on the shared volume.
Describe the results you expected:
stop-first - the default, with 1 replica, should generate a cloudformation DeploymentConfiguration for the service that allows the service to be stopped first, and ensures 2 copies do not run:
This result can be achieved using
x-aws-min_percent
andx-aws-max_percent
BUT the document does claim thatdeploy.update_config
is generally supported, which is clearly not correct here.Output of
docker-compose --version
:Output of
docker version
:Output of
docker context show
:Output of
docker info
:Additional environment details (AWS ECS, Azure ACI, local, etc.):
AWS ECS