As the title suggests, the blue/green deployment for ecs never finishes because the <strong>install</strong> lifecycle event never finishes and timesout.
This is the picture showing that:
<a href=" " rel="nofollow noreferrer"><img src=" " alt="enter image description here"></a>
The appspec file:
The taskdef file:
I am pushing a bare-bones wordpress docker image to ECR which triggers a pipeline but it stucks on <em>CodeDeploy</em>.
Any ideas what is happening?
How am I even supposed to debug that?
P.S. it timed-out in 60 minutes with the message:
<blockquote>
The deployment timed out while waiting for the replacement task set to
become healthy. This time out period is 60 minutes.
</blockquote>
This is the picture showing that:
<a href=" " rel="nofollow noreferrer"><img src=" " alt="enter image description here"></a>
The appspec file:
Code:
version: 0.0
Resources:
- TargetService:
Type: AWS::ECS::Service
Properties:
TaskDefinition: <TASK_DEFINITION>
LoadBalancerInfo:
ContainerName: "WordpressContainer"
ContainerPort: 80
The taskdef file:
Code:
{
"executionRoleArn": "arn:aws:iam::336636872471:role/WordpressPipelineExecutionRole",
"containerDefinitions": [
{
"name": "WordpressContainer",
"image": "<IMAGE1_NAME>",
"essential": true,
"portMappings": [
{
"hostPort": 80,
"protocol": "tcp",
"containerPort": 80
}
]
}
],
"requiresCompatibilities": [
"FARGATE"
],
"networkMode": "awsvpc",
"cpu": "256",
"memory": "512",
"family": "wordpress"
}
I am pushing a bare-bones wordpress docker image to ECR which triggers a pipeline but it stucks on <em>CodeDeploy</em>.
Any ideas what is happening?
How am I even supposed to debug that?
P.S. it timed-out in 60 minutes with the message:
<blockquote>
The deployment timed out while waiting for the replacement task set to
become healthy. This time out period is 60 minutes.
</blockquote>