From 3cb63db987ae11fda61d0b070b4fb74492e54890 Mon Sep 17 00:00:00 2001 From: preethamr Date: Thu, 18 Jul 2024 15:08:42 -0700 Subject: [PATCH] fix: disable internal router from bidding --- ops/mainnet/prod/core/main.tf | 114 +++++++++++++++++----------------- 1 file changed, 57 insertions(+), 57 deletions(-) diff --git a/ops/mainnet/prod/core/main.tf b/ops/mainnet/prod/core/main.tf index 1a0d2523a3..6a6df05540 100755 --- a/ops/mainnet/prod/core/main.tf +++ b/ops/mainnet/prod/core/main.tf @@ -23,63 +23,63 @@ data "aws_route53_zone" "primary" { } -module "router_subscriber" { - source = "../../../modules/service" - stage = var.stage - environment = var.environment - domain = var.domain - region = var.region - dd_api_key = var.dd_api_key - zone_id = data.aws_route53_zone.primary.zone_id - execution_role_arn = data.aws_iam_role.ecr_admin_role.arn - cluster_id = module.ecs.ecs_cluster_id - vpc_id = module.network.vpc_id - lb_subnets = module.network.public_subnets - internal_lb = false - docker_image = var.full_image_name_router_subscriber - container_family = "router-subscriber" - health_check_path = "/ping" - container_port = 8080 - loadbalancer_port = 80 - cpu = 512 - memory = 1024 - instance_count = 3 - timeout = 180 - ingress_cdir_blocks = ["0.0.0.0/0"] - ingress_ipv6_cdir_blocks = [] - service_security_groups = flatten([module.network.allow_all_sg, module.network.ecs_task_sg]) - cert_arn = var.certificate_arn - container_env_vars = local.router_env_vars -} - -module "router_publisher" { - source = "../../../modules/service" - stage = var.stage - environment = var.environment - domain = var.domain - region = var.region - dd_api_key = var.dd_api_key - zone_id = data.aws_route53_zone.primary.zone_id - execution_role_arn = data.aws_iam_role.ecr_admin_role.arn - cluster_id = module.ecs.ecs_cluster_id - vpc_id = module.network.vpc_id - lb_subnets = module.network.public_subnets - internal_lb = false - docker_image = var.full_image_name_router_publisher - container_family = "router-publisher" - health_check_path = "/ping" - container_port = 8080 - loadbalancer_port = 80 - cpu = 1024 - memory = 2048 - instance_count = 1 - timeout = 180 - ingress_cdir_blocks = ["0.0.0.0/0"] - ingress_ipv6_cdir_blocks = [] - service_security_groups = flatten([module.network.allow_all_sg, module.network.ecs_task_sg]) - cert_arn = var.certificate_arn - container_env_vars = local.router_publisher_env_vars -} +# module "router_subscriber" { +# source = "../../../modules/service" +# stage = var.stage +# environment = var.environment +# domain = var.domain +# region = var.region +# dd_api_key = var.dd_api_key +# zone_id = data.aws_route53_zone.primary.zone_id +# execution_role_arn = data.aws_iam_role.ecr_admin_role.arn +# cluster_id = module.ecs.ecs_cluster_id +# vpc_id = module.network.vpc_id +# lb_subnets = module.network.public_subnets +# internal_lb = false +# docker_image = var.full_image_name_router_subscriber +# container_family = "router-subscriber" +# health_check_path = "/ping" +# container_port = 8080 +# loadbalancer_port = 80 +# cpu = 512 +# memory = 1024 +# instance_count = 3 +# timeout = 180 +# ingress_cdir_blocks = ["0.0.0.0/0"] +# ingress_ipv6_cdir_blocks = [] +# service_security_groups = flatten([module.network.allow_all_sg, module.network.ecs_task_sg]) +# cert_arn = var.certificate_arn +# container_env_vars = local.router_env_vars +# } + +# module "router_publisher" { +# source = "../../../modules/service" +# stage = var.stage +# environment = var.environment +# domain = var.domain +# region = var.region +# dd_api_key = var.dd_api_key +# zone_id = data.aws_route53_zone.primary.zone_id +# execution_role_arn = data.aws_iam_role.ecr_admin_role.arn +# cluster_id = module.ecs.ecs_cluster_id +# vpc_id = module.network.vpc_id +# lb_subnets = module.network.public_subnets +# internal_lb = false +# docker_image = var.full_image_name_router_publisher +# container_family = "router-publisher" +# health_check_path = "/ping" +# container_port = 8080 +# loadbalancer_port = 80 +# cpu = 1024 +# memory = 2048 +# instance_count = 1 +# timeout = 180 +# ingress_cdir_blocks = ["0.0.0.0/0"] +# ingress_ipv6_cdir_blocks = [] +# service_security_groups = flatten([module.network.allow_all_sg, module.network.ecs_task_sg]) +# cert_arn = var.certificate_arn +# container_env_vars = local.router_publisher_env_vars +# } module "router_executor" { source = "../../../modules/service"