Comments (1)
I had a similar issue last week, well in my case I was missing an aws_lb_listener_rule for the ecs services configured in the fargate cluster.
I figure out that you must define a loadbalancer listener rule so this module can associate the target group to the loadbalancer.
This is an example:
module "test-ecs-service" {
source = "umotif-public/ecs-fargate/aws"
version = "~> 6.6.0"
name_prefix = "test-ecs-service"
vpc_id = module.vpc.vpc_id
private_subnet_ids = module.vpc.private_subnets
....
....
....
}
# ALB rule for test-api - Must be defined
resource "aws_lb_listener_rule" "alb_test_api_rule" {
listener_arn = "${aws_lb_listener.listen_alb_80.arn}"
priority = 100
action {
type = "forward"
target_group_arn = module.test-ecs-service.target_group_arn[0]
}
condition {
path_pattern {
values = ["/test/*"]
}
}
}
from terraform-aws-ecs-fargate.
Related Issues (20)
- Error: InvalidParameterException: The target group with targetGroupArn XXX does not have an associated load balancer. XXX HOT 3
- Feature Request: Allow specifying static security group HOT 2
- ELB is not getting created in Terraform 0.14 and 1.0.1 HOT 1
- Error upgrading to v6.x HOT 3
- Fargate module tries to reuse existing TaskDefinition instead of using the latest task definition HOT 7
- error creating ecs-fargate-example service: InvalidParameterException: The target group with targetGroupArn arn:aws:elasticloadbalancing:us-east-1:xxxxxxxx:targetgroup/tg-fargate-example/97c07ffe67daf38f does not have an associated load balancer. HOT 2
- Success codes support HOT 2
- Support: Set a cutom task role HOT 1
- Secret support does not work with Fargate 1.4.0 HOT 1
- blue/green deployments HOT 1
- ResourceNotReady: exceeded wait attempts HOT 1
- Support multiple container ports HOT 4
- Using variables in target-group name terraform asks to use -target based plan HOT 3
- Ability to add multiple mappings (ref old issue) HOT 2
- add pre-defined target group
- Custom security groups for Service
- Add support for sidecar containers HOT 1
- Make "aws_security_group_rule" "egress_service" rule configurable HOT 2
- Misleading output ordering for `target_group_name` and `target_group_arn`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-ecs-fargate.