Skip to content

Commit

Permalink
Delius Core: Add elasticache for UMT (#5572)
Browse files Browse the repository at this point in the history
* umt elasticache

* Update locals_test.tf
  • Loading branch information
georgepstaylor authored Apr 4, 2024
1 parent 30b77b0 commit ec87875
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 15 deletions.
12 changes: 8 additions & 4 deletions terraform/environments/delius-core/locals_development.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,14 @@ locals {
}

user_management = {
image_tag = "5.7.6"
container_port = 8080
container_memory = 4096
container_cpu = 1024
image_tag = "5.7.6"
container_port = 8080
container_memory = 4096
container_cpu = 1024
elasticache_version = "6.0"
elasticache_node_type = "cache.t3.small"
elasticache_port = 6379
elasticache_parameter_group_name = "default.redis6.x"
}

pwm = {
Expand Down
12 changes: 8 additions & 4 deletions terraform/environments/delius-core/locals_test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,14 @@ locals {
}

user_management = {
image_tag = "5.7.6"
container_port = 8080
container_memory = 4096
container_cpu = 1024
image_tag = "5.7.6"
container_port = 8080
container_memory = 4096
container_cpu = 1024
elasticache_version = "6.0"
elasticache_node_type = "cache.t3.small"
elasticache_port = 6379
elasticache_parameter_group_name = "default.redis6.x"
}

user_management_config_test = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ module "user_management" {
container_secrets_default = {}
container_secrets_env_specific = try(var.delius_microservice_configs.user_management.container_secrets_env_specific, {})

create_elasticache = true

elasticache_parameters = {
"notify-keyspace-events" = "eA"
"cluster-enabled" = "yes"
}

container_port_config = [
{
containerPort = var.delius_microservice_configs.user_management.container_port
Expand All @@ -42,6 +35,20 @@ module "user_management" {

bastion_sg_id = module.bastion_linux.bastion_security_group

create_elasticache = true
elasticache_engine = "redis"
elasticache_engine_version = var.delius_microservice_configs.user_management.elasticache_version
elasticache_node_type = var.delius_microservice_configs.user_management.elasticache_node_type
elasticache_port = 6379
elasticache_parameter_group_name = var.delius_microservice_configs.user_management.elasticache_parameter_group_name
elasticache_subnet_group_name = "nextcloud-elasticache-subnet-group"

elasticache_parameters = {
"notify-keyspace-events" = "eA"
"cluster-enabled" = "yes"
}


microservice_lb = aws_lb.delius_core_frontend
microservice_lb_https_listener_arn = aws_lb_listener.listener_https.arn
alb_listener_rule_paths = ["/umt"]
Expand Down

0 comments on commit ec87875

Please sign in to comment.