diff --git a/2-simple-example/iac/ecs.tf b/2-simple-example/iac/ecs.tf index c6fbd94..0853f85 100644 --- a/2-simple-example/iac/ecs.tf +++ b/2-simple-example/iac/ecs.tf @@ -47,7 +47,6 @@ module "ecs_service" { valkey = { cpu = 512 memory = 1024 - essential = true image = "valkey/valkey:7.2.4-rc1-alpine" port_mappings = [ { @@ -62,7 +61,6 @@ module "ecs_service" { (local.container_name) = { cpu = 512 memory = 1024 - essential = true image = "richarvey/chat-app:latest" port_mappings = [ { @@ -76,28 +74,14 @@ module "ecs_service" { environment = [ { name = "REDIS_ENDPOINT" - value = "valkey" + value = "127.0.0.1" }, ] - enable_cloudwatch_logging = false - memory_reservation = 100 } } - service_connect_configuration = { - namespace = aws_service_discovery_http_namespace.this.arn - service = { - client_alias = { - port = local.container_port - dns_name = local.container_name - } - port_name = local.container_name - discovery_name = local.container_name - } - } - load_balancer = { service = { target_group_arn = module.alb.target_groups["ex_ecs"].arn