Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -368,18 +368,32 @@ module "private_ecr_github_actions_upload_credentials_launch_system" {
github_repository_name = "launch-system"
}

module "launch_api" {
source = "./private-ecr-repo"

repository_name = "launch-system/api"
allowed_to_pull_identities = ["arn:aws:iam::009203151042:role/launch20251017061000092500000003"]
}

module "launch_orchestrator" {
source = "./private-ecr-repo"

repository_name = "launch-system/orchestrator"
allowed_to_pull_identities = ["arn:aws:iam::009203151042:role/launch20251017061000092500000003"]
}

module "launch_executor" {
source = "./private-ecr-repo"

repository_name = "launch-executor"
repository_name = "launch-system/default-executor"
allowed_to_pull_identities = ["arn:aws:iam::009203151042:role/launch20251017061000092500000003"]
}

module "private_ecr_github_actions_upload_credentials_launch_executor" {
source = "./private-ecr-upload-credentials"

iam_user_name = "github_actions_upload_user_launch_executor"
ecr_repository_name = module.launch_executor.repository_name
iam_user_name = "github_actions_upload_user_launch_containers"
ecr_repository_name = "launch-system*"
github_organisation = local.github_organisation
github_repository_name = "launch-system" # it is in the same repo as launch-system, this is not a typo
}
Expand Down
2 changes: 1 addition & 1 deletion private-ecr-upload-credentials/credentials.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Transition: both the 'old style' user with access key, and 'new style' github actions role with github idp

resource "aws_iam_role" "github_actions_role" {
name = "gh_ecr_push_${var.ecr_repository_name}"
name = replace("gh_ecr_push_${var.ecr_repository_name}", "*", "")

assume_role_policy = jsonencode({
Version = "2012-10-17",
Expand Down
2 changes: 1 addition & 1 deletion public-ecr-upload-credentials/credentials.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Transition: both the 'old style' user with access key, and 'new style' github actions role with github idp

resource "aws_iam_role" "github_actions_role" {
name = "gh_ecr_push_${var.ecr_repository_name}"
name = replace("gh_ecr_push_${var.ecr_repository_name}", "*", "")

assume_role_policy = jsonencode({
Version = "2012-10-17",
Expand Down
Loading