Skip to content
Snippets Groups Projects
Commit c60578c5 authored by MIchael Nguyen's avatar MIchael Nguyen
Browse files

updating ecs.

parent 6e8d0c0b
No related branches found
No related tags found
1 merge request!6Trusted ibm
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment