Skip to content

Commit

Permalink
feat: create new oonith ecs_cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox committed Mar 19, 2024
1 parent 6ed0b9d commit 2beb61e
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion tf/environments/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,26 @@ module "ooniapi_cluster" {
)
}

module "oonith_cluster" {
source = "../../modules/ecs_cluster"

name = "oonith-ecs-cluster"
key_name = module.adm_iam_roles.oonidevops_key_name
vpc_id = modules.network.vpc_id
subnet_ids = module.network.vpc_subnet[*].id

asg_min = 2
asg_max = 6
asg_desired = 2

instance_type = "t2.small"

tags = merge(
local.tags,
{ Name = "ooni-tier0-th-ecs-cluster" }
)
}

#### OONI Tier0

#### OONI Run service
Expand Down Expand Up @@ -378,7 +398,8 @@ module "ooniapi_ooniauth" {
{ Name = "ooni-tier0-ooniauth" }
)
}
### OONI Tier0 API Frontend

#### OONI Tier0 API Frontend

module "ooniapi_frontend" {
source = "../../modules/ooniapi_frontend"
Expand All @@ -402,3 +423,14 @@ module "ooniapi_frontend" {
{ Name = "ooni-tier0-api-frontend" }
)
}

#### OONI oohelperd service

module "oonith_oohelperd_deployer" {
source = "../../modules/oonith_service_deployer"
}

module "oonith_oohelperd" {
source = "../../modules/oonith_service"
}

0 comments on commit 2beb61e

Please sign in to comment.