Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated the CloudFormation Stack with proper health checks #495

Merged
merged 1 commit into from
Nov 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions cloudformation/sorry-cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,16 +208,16 @@ Resources:
TargetGroupDirector:
Type: AWS::ElasticLoadBalancingV2::TargetGroup
Properties:
HealthCheckIntervalSeconds: 6
HealthCheckPath: /
HealthCheckIntervalSeconds: 15
HealthCheckPath: /ping
HealthCheckProtocol: HTTP
HealthCheckTimeoutSeconds: 5
HealthyThresholdCount: 2
TargetType: ip
Name: !Join ['-', [!Ref 'AWS::StackName', 'director-tg']]
Port: 1234
Matcher:
HttpCode: 302
HttpCode: 200
Protocol: HTTP
UnhealthyThresholdCount: 2
VpcId: !Ref VPC
Expand All @@ -226,16 +226,16 @@ Resources:
TargetGroupAPI:
Type: AWS::ElasticLoadBalancingV2::TargetGroup
Properties:
HealthCheckIntervalSeconds: 6
HealthCheckPath: /
HealthCheckIntervalSeconds: 15
HealthCheckPath: /.well-known/apollo/server-health
HealthCheckProtocol: HTTP
HealthCheckTimeoutSeconds: 5
HealthyThresholdCount: 2
TargetType: ip
Name: !Join ['-', [!Ref 'AWS::StackName', 'api-tg']]
Port: 4000
Matcher:
HttpCode: 400
HttpCode: 200
Protocol: HTTP
UnhealthyThresholdCount: 2
VpcId: !Ref VPC
Expand All @@ -244,7 +244,7 @@ Resources:
TargetGroupDashboard:
Type: AWS::ElasticLoadBalancingV2::TargetGroup
Properties:
HealthCheckIntervalSeconds: 6
HealthCheckIntervalSeconds: 15
HealthCheckPath: /
HealthCheckProtocol: HTTP
HealthCheckTimeoutSeconds: 5
Expand Down