Skip to content

Instantly share code, notes, and snippets.

@nathanpeck
Created February 7, 2018 16:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanpeck/45aa0da18afdc292f4faaf40777db54e to your computer and use it in GitHub Desktop.
Save nathanpeck/45aa0da18afdc292f4faaf40777db54e to your computer and use it in GitHub Desktop.
TargetGroup:
Type: AWS::ElasticLoadBalancingV2::TargetGroup
Properties:
HealthCheckIntervalSeconds: 6
HealthCheckPath: /
HealthCheckProtocol: HTTP
HealthCheckTimeoutSeconds: 5
HealthyThresholdCount: 2
TargetType: ip
Name: !Ref 'ServiceName'
Port: 80
Protocol: HTTP
UnhealthyThresholdCount: 2
TargetGroupAttributes:
- Key: stickiness.enabled
Value: true
- Key: deregistration_delay.timeout_seconds
Value: 30
VpcId:
Fn::ImportValue:
!Join [':', [!Ref 'EnvironmentName', 'VPCId']]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment