Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A certificate must be specified for HTTPS listeners - Nexus Module Terraform #42

Open
sogalanbat opened this issue Aug 18, 2022 · 0 comments

Comments

@sogalanbat
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant