https://pulumi.com logo
#general
Title
# general
h

hundreds-musician-51496

10/25/2018, 5:04 PM
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

quick-action-34599

10/25/2018, 5:54 PM
I had this problem this week. Had to add this option
dependsOn: [loadBalancer] }
Specifically I added it to the listener rules
h

hundreds-musician-51496

10/25/2018, 6:07 PM
You added that to
ecs.Service
?
oh nm i see - listener rules 🙂
3 Views