Skip to content

Commit

Permalink
Rework ALB rules
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Oct 17, 2023
1 parent ec205fe commit f2200a0
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion spire/templates/apps/feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,25 @@ Resources:
- feeder.*
- Field: path-pattern
Values:
- /api/v1/*
- /api/*
ListenerArn: !Ref AlbHttpsListenerArn
Priority: !Join ["", [!Ref AlbListenerRulePriorityPrefix, "07"]]
Temp3ListenerRule:
Type: AWS::ElasticLoadBalancingV2::ListenerRule
Condition: IsStaging
Properties:
Actions:
- TargetGroupArn: !Ref WebTargetGroup2
Type: forward
Conditions:
- Field: host-header
Values:
- feeder.*
- Field: path-pattern
Values:
- /api
ListenerArn: !Ref AlbHttpsListenerArn
Priority: !Join ["", [!Ref AlbListenerRulePriorityPrefix, "08"]]
Temp2ListenerRule:
Type: AWS::ElasticLoadBalancingV2::ListenerRule
Condition: IsStaging
Expand Down

0 comments on commit f2200a0

Please sign in to comment.