From b29b046f1ebd7f85cbe0d932bc95b487183180b3 Mon Sep 17 00:00:00 2001 From: George Taylor Date: Fri, 24 May 2024 16:59:45 +0100 Subject: [PATCH] create nextcloud ECR repo --- .../core-shared-services/ecr_repos.tf | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/terraform/environments/core-shared-services/ecr_repos.tf b/terraform/environments/core-shared-services/ecr_repos.tf index 68b40571f..b2e6bc989 100644 --- a/terraform/environments/core-shared-services/ecr_repos.tf +++ b/terraform/environments/core-shared-services/ecr_repos.tf @@ -1137,3 +1137,28 @@ module "observability_platform_grafana_api_key_rotator_ecr_repo" { tags_common = local.tags } + +# ECR repo holding the hmpps jitbit application container image +module "delius_nextcloud_ecr_repo" { + source = "../../modules/app-ecr-repo" + + app_name = "delius-nextcloud" + + push_principals = [ + "arn:aws:iam::${local.environment_management.account_ids["delius-nextcloud-development"]}:role/modernisation-platform-oidc-cicd", + "arn:aws:iam::${local.environment_management.account_ids["delius-nextcloud-test"]}:role/modernisation-platform-oidc-cicd", + "arn:aws:iam::${local.environment_management.account_ids["delius-nextcloud-preproduction"]}:role/modernisation-platform-oidc-cicd", + "arn:aws:iam::${local.environment_management.account_ids["delius-nextcloud-production"]}:role/modernisation-platform-oidc-cicd", + "arn:aws:iam::${local.environment_management.account_ids["delius-nextcloud-development"]}:role/modernisation-platform-oidc-cicd", + ] + + pull_principals = [ + local.environment_management.account_ids["delius-nextcloud-development"], + local.environment_management.account_ids["delius-nextcloud-test"], + local.environment_management.account_ids["delius-nextcloud-preproduction"], + local.environment_management.account_ids["delius-nextcloud-production"] + ] + + # Tags + tags_common = local.tags +}