update working
This commit is contained in:
parent
0a5338f20f
commit
7e525170a1
1 changed files with 1 additions and 17 deletions
|
@ -47,7 +47,6 @@ module "ecs_service" {
|
||||||
valkey = {
|
valkey = {
|
||||||
cpu = 512
|
cpu = 512
|
||||||
memory = 1024
|
memory = 1024
|
||||||
essential = true
|
|
||||||
image = "valkey/valkey:7.2.4-rc1-alpine"
|
image = "valkey/valkey:7.2.4-rc1-alpine"
|
||||||
port_mappings = [
|
port_mappings = [
|
||||||
{
|
{
|
||||||
|
@ -62,7 +61,6 @@ module "ecs_service" {
|
||||||
(local.container_name) = {
|
(local.container_name) = {
|
||||||
cpu = 512
|
cpu = 512
|
||||||
memory = 1024
|
memory = 1024
|
||||||
essential = true
|
|
||||||
image = "richarvey/chat-app:latest"
|
image = "richarvey/chat-app:latest"
|
||||||
port_mappings = [
|
port_mappings = [
|
||||||
{
|
{
|
||||||
|
@ -76,28 +74,14 @@ module "ecs_service" {
|
||||||
environment = [
|
environment = [
|
||||||
{
|
{
|
||||||
name = "REDIS_ENDPOINT"
|
name = "REDIS_ENDPOINT"
|
||||||
value = "valkey"
|
value = "127.0.0.1"
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
enable_cloudwatch_logging = false
|
|
||||||
|
|
||||||
memory_reservation = 100
|
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 = {
|
load_balancer = {
|
||||||
service = {
|
service = {
|
||||||
target_group_arn = module.alb.target_groups["ex_ecs"].arn
|
target_group_arn = module.alb.target_groups["ex_ecs"].arn
|
||||||
|
|
Loading…
Reference in a new issue