CloudFormation DependsOn and ECS minimumHealthyPercent
The goal is to have a chain of ECS services,
ServiceB depends on
I configure the dependency using CloudFormation's
ServiceA is configured to have
When I deploy the stack, when does CloudFormation consider the dependency of
ServiceA to be fulfilled and starts deploying
One reading is that since
ServiceA is finished as soon as it is created. Another possibility is that since
1 the service is fully deployed only when one task has reached the
RUNNING state. Which reading is correct (if any)?
Based upon my experience working with AWS CloudFormation, I would expect AWS CloudFormation to follow the order specified by
DependsOn between the AWS CloudFormation resources defined in your template. Properties within a given resource type shouldn't have an impact on the creation order.
I hope this helps,
Hi Chris, thanks for your reply. However, I still don't understand when CloudFormation would consider the requirement of the
DependsOnparameter to be fulfilled. For instance, there was a discussion in the AWS Developers Forum (https://forums.aws.amazon.com/thread.jspa?messageID=537003) where it was stated that an instance "should" be considered successfully created when it reached the running state. So even if CloudFormation ignores the specific parameters, it would still be interesting to know when the second service will be started.
Hi Chris. Did you have a time to look at this? When does CloudFormation consider an ECS service to be completed, i.e. when will CloudFormation start creating an object which has a DependsOn attribute on the ECS service?
ECS Blue-Green with CodePipelineAccepted Answerasked 2 years ago
Should ECS/EC2 ASGProvider Capacity Provider be able to scale-up from zero, 0->1Accepted Answerasked 5 months ago
Managing a stack with CloudFormation - how will new ECS ARN affect me?asked 3 years ago
how to automatically deploy a code to ecs in AWS pipelineasked 5 months ago
Upgrade ecs-agent on Windows 2016 ECS Optimized AMasked 2 years ago
CloudFormation DependsOn and ECS minimumHealthyPercentasked 4 months ago
Are there any best practices for sending logs from ECS on EC2, ECS on Fargate and other AWS services such as API GW, load balancers (and more AWS services) to Splunk?asked 2 months ago
EKS Fargate: restrict access to service to only certain podsasked 2 months ago
CodePipeline ECS Rolling Updates for multiple servicesasked 3 months ago
Chef & Puppet vs. ECS / EKSAccepted Answerasked 2 years ago