Skip to content

Commit

Permalink
DP-1056 Add missing ECR configs (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
webit4me authored Jan 13, 2025
1 parent 1fb3905 commit d980285
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
21 changes: 13 additions & 8 deletions terragrunt/modules/orchestrator/ecr/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ locals {

read_principals = [for name, id in var.account_ids : "arn:aws:iam::${id}:root"]

tools_repositories = ["grafana", "codebuild", "pgadmin", "healthcheck"]

repositories = concat(
[
for name, config in var.service_configs :
config.name
],
local.tools_repositories)

service_repositories = [
for name, config in var.service_configs :
config.name
]

tools_repositories = concat([
for name, config in var.tools_configs :
config.name
], ["codebuild"] )

repositories = concat(local.service_repositories, local.tools_repositories)


}
14 changes: 13 additions & 1 deletion terragrunt/modules/orchestrator/ecr/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,19 @@ variable "product" {
}

variable "service_configs" {
description = "Map of services to their ports"
description = "Map of services and their attributes"
type = map(object({
cpu = number
memory = number
name = string
port = number
port_host = number
}))
}


variable "tools_configs" {
description = "Map of tools and their attributes"
type = map(object({
cpu = number
memory = number
Expand Down

0 comments on commit d980285

Please sign in to comment.