AWS ECS Leader Teams (django migrate)

We are currently deploying our Django app on AWS Elastic Beanstalk. There, we perform django db migrations using container commands, where we assure that we only run migrations in one instance using the leader_only constraint.

We plan to move our deployment to AWS EC2 container service . However, we cannot find a way to force migration to run on only one container when deploying a new image.

Can I customize leader_only commands in AWS EC2 Container Service?

+6
source share
1 answer

, . ECS ( , , ).

: 1) . , . ( , ) 2) CI.

, , , .

0

Source: https://habr.com/ru/post/1629191/


All Articles