Open ghost opened 4 years ago
Hey @oonisim 👋 Thank you for taking the time to file this issue. Given that there's been a number of AWS Provider releases since you initially filed it, can you confirm whether you're still experiencing this behavior?
Wow finally I seem to have some luck :) @justinretzolk I have the same issue. I was facing issue that my application was not working after deployment as a ECS service (ELB unable to access, gives 504 Gateway Error). After lot of struggle over last 2 days, finally realized it is due to "awsvpc" mode. If I manually create service using ECS task definition having "host" networking , it works. But Terraform tells there is a conflict -
error creating svc-zip-dev service: error waiting for ECS service (svc-zip-dev) creation: InvalidParameterException: The provided target group arn:aws:elasticloadbalancing:eu-east-1:729524366783:targetgroup/tg-mytask-dev/1b7859bb0235e281 has target type ip, which is incompatible with the bridge network mode specified in the task definition.
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
This issue was originally opened by @oonisim as hashicorp/terraform#24266. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
Expected Behavior
No error, because according to ECS Service - Creating a Network Load Balancer - Configure Routing, we should be able to select both IP and Instance ID.
If there is an AWS documentation which has the information that ELB target type IP is incompatible with the default Docker network mode "bridge", kindly provide the reference.
Actual Behavior
Steps to Reproduce
Additional Context
ECS type is EC2, not Fargate.
All (NLB, service, task, docker container) works if target_type = "instance" is specified.
References