From 9c65ef50f41e8fc5e827e415769384da101b7a97 Mon Sep 17 00:00:00 2001 From: Ganeshrockz Date: Thu, 8 Feb 2024 15:57:52 +0530 Subject: [PATCH] Fix Tproxy related inputs for examples --- examples/api-gateway/gateway.tf | 1 + examples/cluster-peering/gateway/gateway.tf | 1 + examples/mesh-gateways/gateway/gateway.tf | 3 ++- examples/service-sameness/gateway/gateway.tf | 5 +++-- examples/terminating-gateway/gateway.tf | 1 + 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/api-gateway/gateway.tf b/examples/api-gateway/gateway.tf index 8bfa9062..45365706 100644 --- a/examples/api-gateway/gateway.tf +++ b/examples/api-gateway/gateway.tf @@ -28,6 +28,7 @@ module "api_gateway" { acls = true lb_create_security_group = false + enable_transparent_proxy = false custom_load_balancer_config = [{ container_name = "consul-dataplane" diff --git a/examples/cluster-peering/gateway/gateway.tf b/examples/cluster-peering/gateway/gateway.tf index 51449bc0..977f7137 100644 --- a/examples/cluster-peering/gateway/gateway.tf +++ b/examples/cluster-peering/gateway/gateway.tf @@ -24,6 +24,7 @@ module "mesh_gateway" { tls = true consul_ca_cert_arn = var.ca_cert_arn additional_task_role_policies = var.additional_task_role_policies + enable_transparent_proxy = false acls = true diff --git a/examples/mesh-gateways/gateway/gateway.tf b/examples/mesh-gateways/gateway/gateway.tf index 44c978b9..c560a733 100644 --- a/examples/mesh-gateways/gateway/gateway.tf +++ b/examples/mesh-gateways/gateway/gateway.tf @@ -32,5 +32,6 @@ module "mesh_gateway" { lb_subnets = var.public_subnets lb_vpc_id = var.vpc.vpc_id - consul_ecs_image = var.consul_ecs_image + enable_transparent_proxy = false + consul_ecs_image = var.consul_ecs_image } diff --git a/examples/service-sameness/gateway/gateway.tf b/examples/service-sameness/gateway/gateway.tf index 99590cd1..4acf926c 100644 --- a/examples/service-sameness/gateway/gateway.tf +++ b/examples/service-sameness/gateway/gateway.tf @@ -31,8 +31,9 @@ module "mesh_gateway" { lb_subnets = var.public_subnets lb_vpc_id = var.vpc.vpc_id - consul_ecs_image = var.consul_ecs_image - consul_partition = var.consul_partition + enable_transparent_proxy = false + consul_ecs_image = var.consul_ecs_image + consul_partition = var.consul_partition } # We must wait for the mesh gateway belonging to become healthy before diff --git a/examples/terminating-gateway/gateway.tf b/examples/terminating-gateway/gateway.tf index ce77364d..f9f53596 100644 --- a/examples/terminating-gateway/gateway.tf +++ b/examples/terminating-gateway/gateway.tf @@ -22,6 +22,7 @@ module "terminating_gateway" { consul_server_hosts = module.dc1.dev_consul_server.server_dns kind = "terminating-gateway" tls = true + enable_transparent_proxy = false consul_ca_cert_arn = module.dc1.dev_consul_server.ca_cert_arn additional_task_role_policies = [aws_iam_policy.execute_command.arn]