Skip to content

Commit

Permalink
feat(terraform): add internal and selfserve ECS clusters (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLicense authored Apr 19, 2024
1 parent 5f13859 commit 11a2617
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
27 changes: 26 additions & 1 deletion infra/terraform/environments/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,31 @@ module "service" {
data.aws_security_group.this["API"].id
]
}

"internal" = {
cpu = 1024
memory = 4096

image = "${data.aws_ecr_repository.this["internal"].repository_url}:${var.internal_image_tag}"

subnet_ids = data.aws_subnets.this["IUWEB"].ids

security_group_ids = [
data.aws_security_group.this["IUWEB"].id
]
}

"selfserve" = {
cpu = 1024
memory = 4096

image = "${data.aws_ecr_repository.this["selfserve"].repository_url}:${var.selfserve_image_tag}"

subnet_ids = data.aws_subnets.this["SSWEB"].ids

security_group_ids = [
data.aws_security_group.this["SSWEB"].id
]
}
}
}

12 changes: 12 additions & 0 deletions infra/terraform/environments/dev/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,15 @@ variable "api_image_tag" {
description = "The tag of the API image to deploy"
default = "latest"
}

variable "selfserve_image_tag" {
type = string
description = "The tag of the selfserve image to deploy"
default = "latest"
}

variable "internal_image_tag" {
type = string
description = "The tag of the internal image to deploy"
default = "latest"
}

0 comments on commit 11a2617

Please sign in to comment.