I wonder if there is a race condition between crea...
# general
h
I wonder if there is a race condition between creating an aws.ecs.Service and creating a targetGroup/loadBalancer pair? I'm getting
Copy code
aws:ecs:Service (ashewor-dashboard-server):
    error: Plan apply failed: InvalidParameterException: The target group with targetGroupArn arn:aws:elasticloadbalancing:us-west-2:948428744612:targetgroup/d5edc351-9ae5dfc/e8cbb3f112d1b253 does not have an associated load balancer.
(and when I run again it works).
q
I had this problem this week. Had to add this option
dependsOn: [loadBalancer] }
Specifically I added it to the listener rules
h
You added that to
ecs.Service
?
oh nm i see - listener rules 🙂