Hello, while using the module I came across this error.
│ status code: 400, request id: 403d97a0-b257-42c4-af1b-d15345c53cad
│
│ with module.ecs_fargate.module.ecs-fargate-service.module.ecs-alb.aws_lb_listener.lb_https_listeners["default"],
│ on .terraform/modules/ecs_fargate.ecs-fargate-service.ecs-alb/main.tf line 239, in resource "aws_lb_listener" "lb_https_listeners":
│ 239: resource "aws_lb_listener" "lb_https_listeners" {
│
╷
│ Error: error creating ECS service (Nexus-nexus-service): InvalidParameterException: The target group with targetGroupArn arn:aws:elasticloadbalancing:us-west-2:941851596731:targetgroup/Nexus-nexus-https-8081/d896c8243b7088aa does not have an associated load balancer.
│
│ with module.ecs_fargate.module.ecs-fargate-service.aws_ecs_service.service,
│ on .terraform/modules/ecs_fargate.ecs-fargate-service/main.tf line 63, in resource "aws_ecs_service" "service":
│ 63: resource "aws_ecs_service" "service" {
I used both 2.0.0 and 2.0.1 and no luck.
Does anyone have an idea on how to solve this?
I tried the following approaches and I was unsuccessful.
- Overriding the terraform module to add an arn with a certificate.
- Do a fresh repo install and try the module by itself.
- Set an unrequired variable ->
[configure_loadbalancer_ssl](https://registry.terraform.io/modules/cn-terraform/nexus/aws/2.0.1#input_configure_loadbalancer_ssl) and only use the domain name for the certificate I previously imported.
Thank you!
Hello, while using the module I came across this error.
I used both
2.0.0and2.0.1and no luck.Does anyone have an idea on how to solve this?
I tried the following approaches and I was unsuccessful.
[configure_loadbalancer_ssl](https://registry.terraform.io/modules/cn-terraform/nexus/aws/2.0.1#input_configure_loadbalancer_ssl)and only use the domain name for the certificate I previously imported.Thank you!