Skip to content

Commit

Permalink
Merge pull request #8879 from ministryofjustice/jml-repo-add
Browse files Browse the repository at this point in the history
🔧 Add push/pull principals
  • Loading branch information
Gary-H9 authored Jan 9, 2025
2 parents a5fd470 + 1783aae commit e7698ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraform/environments/core-shared-services/ecr_repos.tf
Original file line number Diff line number Diff line change
Expand Up @@ -752,17 +752,20 @@ module "data_platform_jml_ecr_repo" {
push_principals = [
"arn:aws:iam::${local.environment_management.account_ids["data-platform-development"]}:role/modernisation-platform-oidc-cicd",
"arn:aws:iam::${local.environment_management.account_ids["data-platform-apps-and-tools-development"]}:role/modernisation-platform-oidc-cicd",
"arn:aws:iam::${local.environment_management.account_ids["analytical-platform-data-production"]}:role/modernisation-platform-oidc-cicd",
local.environment_management.account_ids["data-platform-apps-and-tools-production"],
]

pull_principals = [
"arn:aws:iam::${local.environment_management.account_ids["data-platform-development"]}:role/modernisation-platform-oidc-cicd",
"arn:aws:iam::${local.environment_management.account_ids["data-platform-apps-and-tools-development"]}:role/modernisation-platform-oidc-cicd",
"arn:aws:iam::${local.environment_management.account_ids["analytical-platform-data-production"]}:role/modernisation-platform-oidc-cicd",
local.environment_management.account_ids["data-platform-apps-and-tools-production"],
]

enable_retrieval_policy_for_lambdas = [
"arn:aws:lambda:eu-west-2:${local.environment_management.account_ids["data-platform-apps-and-tools-production"]}:function:data_platform_jml_extract*",
"arn:aws:iam::${local.environment_management.account_ids["analytical-platform-data-production"]}:function:data_platform_jml_extract*"
]

# Tags
Expand Down

0 comments on commit e7698ee

Please sign in to comment.