Skip to content

Commit

Permalink
attempt to order resource build order for reviewapps
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsiaw committed Aug 31, 2023
1 parent f513161 commit 370fb32
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/backend/ecs/v2/service_stack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ module Backend::Ecs::V2
class ServiceStack < CloudFormation::Stack
class Builder < CloudFormation::Builder
def build_resources
add_resource("AWS::ECS::Service", "ECSService") do |j|
deps = []
if use_alb?
deps = ['LBListenerRuleHTTP', 'LBListenerRuleHTTPS']
end

add_resource("AWS::ECS::Service", "ECSService", { depends_on: deps }) do |j|
j.Cluster district.name
j.TaskDefinition options[:task_definition]
j.DesiredCount options[:desired_count]
Expand Down

0 comments on commit 370fb32

Please sign in to comment.