Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ kotlin = "2.4.21"
kotlinter = "5.7.0"
kotlinx_coroutines = "1.11.0"
kotlinx_serialization = "1.12.0"
ktor = "3.6.0"
ktor = "3.6.1"
log4j2 = "2.26.1"
prometheus = "1.17.2"
serialization = "2.4.21"
Expand Down
14 changes: 13 additions & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ module "routing" {
deregistration_delay = 30
}

module "network" {
source = "git::https://github.com/javaBin/platform//terraform/modules/app-network?ref=main"

name = "cupcake-backend"
team = "cupcake"
project = "javabin"
vpc_id = module.platform.vpc_id
port = 8080
alb_ingress = true
}

module "secret_sp_user" {
source = "git::https://github.com/javaBin/platform//terraform/modules/service-secret?ref=main"

Expand Down Expand Up @@ -112,7 +123,8 @@ module "service" {
execution_role_arn = module.platform.execution_role_arn
task_role_arn = module.task_role.role_arn
subnet_ids = module.platform.private_subnet_ids
security_group_ids = [module.platform.ecs_tasks_security_group_id]
security_group_ids = [module.network.security_group_id]
service_registry_arns = [module.network.registry_arn]
region = "eu-central-1"
container_user = "1000"
readonly_root_filesystem = true
Expand Down