diff --git a/provider/indexer-aws/CloudFormation/Automated/ecs.yml b/provider/indexer-aws/CloudFormation/Automated/ecs.yml index 865237874caddc2fe11749cea1c23d0430a892ba..fe05eb4de44eb283257823f43924beb5a839be91 100644 --- a/provider/indexer-aws/CloudFormation/Automated/ecs.yml +++ b/provider/indexer-aws/CloudFormation/Automated/ecs.yml @@ -444,7 +444,7 @@ Resources: Type: AWS::ElasticLoadBalancingV2::TargetGroup DependsOn: ECSALB Properties: - HealthCheckIntervalSeconds: 600 + HealthCheckIntervalSeconds: 300 HealthCheckPath: /api/indexer/v2/liveness_check HealthCheckProtocol: HTTP HealthCheckTimeoutSeconds: 5 @@ -496,7 +496,8 @@ Resources: DependsOn: ALBListener Properties: Cluster: !Ref 'ApplicationECSCluster' - DesiredCount: '1' + DesiredCount: 1, + HealthCheckGracePeriodSeconds: 6000, LoadBalancers: - ContainerName: !Ref 'ApplicationName' ContainerPort: '80' @@ -504,6 +505,18 @@ Resources: Role: !Ref 'ECSServiceRole' TaskDefinition: !Ref 'TaskDefinition' + QueueService: + Type: AWS::ECS::Service + Properties: + Cluster: !Ref 'ApplicationECSCluster' + DesiredCount: 1, + LoadBalancers: + - ContainerName: !Ref 'QueueApplicationName' + ContainerPort: '80' + TargetGroupArn: !Ref 'ECSTargetGroup' + Role: !Ref 'ECSServiceRole' + TaskDefinition: !Ref 'QueueTaskDefinition' + ECSServiceRole: Type: AWS::IAM::Role Properties: