update working

This commit is contained in:
Ric Harvey 2024-04-15 18:19:11 +01:00
parent 0a5338f20f
commit 7e525170a1
Signed by: ric
GPG key ID: CD63CE502B962F16

View file

@ -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