Skip to content

Commit

Permalink
Add Metrics redirect in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Oct 16, 2023
1 parent 284287f commit ef89962
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions spire/templates/apps/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Parameters:

Conditions:
IsProduction: !Equals [!Ref EnvironmentType, Production]
IsStaging: !Equals [!Ref EnvironmentType, Staging]

Resources:
HostHeaderListenerRule:
Expand All @@ -46,22 +45,8 @@ Resources:
- metrics.dovetail.*
ListenerArn: !Ref AlbHttpsListenerArn
Priority: !Join ["", [!Ref AlbListenerRulePriorityPrefix, "00"]]
AltHostHeaderListenerRule:
Type: AWS::ElasticLoadBalancingV2::ListenerRule
Condition: IsProduction
Properties:
Actions:
- TargetGroupArn: !Ref TargetGroup
Type: forward
Conditions:
- Field: host-header
Values:
- metrics.*
ListenerArn: !Ref AlbHttpsListenerArn
Priority: !Join ["", [!Ref AlbListenerRulePriorityPrefix, "01"]]
RedirectHostHeaderListenerRule:
Type: AWS::ElasticLoadBalancingV2::ListenerRule
Condition: IsStaging
Properties:
Actions:
- RedirectConfig:
Expand Down

0 comments on commit ef89962

Please sign in to comment.