You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
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:
Define a docker-compose service for an applicaiton such as Minecraft that uses a .lock file to prevent multiple instances of the minecraft server running.
Ensure that update_config.order = stop-first is set.
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 and x-aws-max_percent BUT the document does claim that deploy.update_config is generally supported, which is clearly not correct here.
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.
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
The text was updated successfully, but these errors were encountered: