File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
app/models/backend/ecs/v2 Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -183,11 +183,13 @@ def build_classic_elb
183
183
end
184
184
185
185
def build_alb_listener
186
- add_resource ( "AWS::ElasticLoadBalancingV2::ListenerRule" , "LBListenerRuleHTTP" ) do |j |
187
- j . Actions [ { "TargetGroupArn" => ref ( "LBTargetGroup1" ) , "Type" => "forward" } ]
188
- j . Conditions ( listener . rule_conditions . map { |c | { "Field" => c [ "type" ] , "Values" => [ c [ "value" ] ] } } )
189
- j . ListenerArn listener . endpoint . http_listener_id
190
- j . Priority listener . rule_priority
186
+ if !service &.heritage &.review?
187
+ add_resource ( "AWS::ElasticLoadBalancingV2::ListenerRule" , "LBListenerRuleHTTP" ) do |j |
188
+ j . Actions [ { "TargetGroupArn" => ref ( "LBTargetGroup1" ) , "Type" => "forward" } ]
189
+ j . Conditions ( listener . rule_conditions . map { |c | { "Field" => c [ "type" ] , "Values" => [ c [ "value" ] ] } } )
190
+ j . ListenerArn listener . endpoint . http_listener_id
191
+ j . Priority listener . rule_priority
192
+ end
191
193
end
192
194
193
195
if listener . endpoint . https_listener_id . present?
You can’t perform that action at this time.
0 commit comments