Amazon ECS Deep Dive, CI-CD cloudformation error

When I run the cloudformation cf.yaml for CI-CD creation from Git repo, it is giving error as 

he target group with targetGroupArn arn:aws:elasticloadbalancing:us-east-1:043570476821:targetgroup/ci-cd-Targe-1BFIKJ39052IK/0de53753c128d0ad does not have an associated load balancer. (Service: AmazonECS; Status Code: 400; Error Code: InvalidParameterException; Request ID: b20fa138-f101-11e8-a245-0fbeb346f51a)

but I see that LB and TG are completed in previous step

17:30:18 UTC-0500 CREATE_COMPLETE AWS::ElasticLoadBalancingV2::TargetGroup TargetGroup

17:30:18 UTC-0500 CREATE_IN_PROGRESS AWS::ElasticLoadBalancingV2::TargetGroup TargetGroup Resource creation Initiated

17:30:17 UTC-0500 CREATE_IN_PROGRESS AWS::ElasticLoadBalancingV2::TargetGroup TargetGroup

17:30:14 UTC-0500 CREATE_COMPLETE AWS::ElasticLoadBalancingV2::LoadBalancer LoadBalancer 

  • post-author-pic
    Mark R

    Hi there! On which resource are you getting the failure? I just created a new stack from this same template and it's working fine. I supplied these parameters (all default, except the Github token, of course):

    Please let me know so I can help you further.


Looking For Team Training?

Learn More