Skip to content

Commit

Permalink
feat: bring router bidding back online
Browse files Browse the repository at this point in the history
  • Loading branch information
LayneHaber committed Dec 5, 2024
1 parent e0b6ae5 commit c65c161
Showing 1 changed file with 57 additions and 58 deletions.
115 changes: 57 additions & 58 deletions ops/mainnet/prod/core/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c65c161

Please sign in to comment.