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

deployment_name should be used in the aws_service_discovery_private_dns_namespace resource #42

Open
dmattia opened this issue Feb 28, 2024 · 1 comment

Comments

@dmattia
Copy link

dmattia commented Feb 28, 2024

The resource here:

https://github.com/tryretool/terraform-retool-modules/blob/main/modules/aws_ecs/main.tf#L390C11-L395

needs to be unique within an AWS account, so it is difficult to deploy two of this module as is.

@rchad86
Copy link

rchad86 commented Jun 12, 2024

confirmed. also running into this issue. the overlap prevents the second instance's containers from passing health checks.

@dmattia, i'm assuming you could just fork the module for now and update this chunk:

resource "aws_service_discovery_private_dns_namespace" "retoolsvc" {
  count       = var.workflows_enabled ? 1 : 0
  name        = "retoolsvc"
  description = "Service Discovery namespace for Retool deployment"
  vpc         = var.vpc_id
}

to something like this:

resource "aws_service_discovery_private_dns_namespace" "retoolsvc" {
  count       = var.workflows_enabled ? 1 : 0
  name        = "${var.deployment_name}-retoolsvc"
  description = "Service Discovery namespace for Retool deployment"
  vpc         = var.vpc_id
}

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

2 participants