From c65c161e42f5447d1a56eff6870ada6f4c8955d0 Mon Sep 17 00:00:00 2001 From: Layne Haber Date: Thu, 5 Dec 2024 15:48:00 -0700 Subject: [PATCH] feat: bring router bidding back online --- ops/mainnet/prod/core/main.tf | 115 +++++++++++++++++----------------- 1 file changed, 57 insertions(+), 58 deletions(-) diff --git a/ops/mainnet/prod/core/main.tf b/ops/mainnet/prod/core/main.tf index dd3eb64ccf..f47fc3d12d 100755 --- a/ops/mainnet/prod/core/main.tf +++ b/ops/mainnet/prod/core/main.tf @@ -22,64 +22,63 @@ data "aws_route53_zone" "primary" { zone_id = "Z03634792TWUEHHQ5L0YX" } -# Disable DAO router from bidding -# 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"