Skip to content

Commit 5fc285f

Browse files
authored
New private ECR for launch-executor container (#32)
1 parent bdba93d commit 5fc285f

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

main.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,3 +368,19 @@ module "private_ecr_github_actions_upload_credentials_launch_system" {
368368
github_repository_name = "launch-system"
369369
}
370370

371+
module "launch_executor" {
372+
source = "./private-ecr-repo"
373+
374+
repository_name = "launch-executor"
375+
allowed_to_pull_identities = ["arn:aws:iam::992382665735:role/launch20251017122840582600000005"] # TODO: update when ECS created
376+
}
377+
378+
module "private_ecr_github_actions_upload_credentials_launch_executor" {
379+
source = "./private-ecr-upload-credentials"
380+
381+
iam_user_name = "github_actions_upload_user_launch_executor"
382+
ecr_repository_name = module.launch_executor.repository_name
383+
github_organisation = local.github_organisation
384+
github_repository_name = "launch-system" # it is in the same repo as launch-system, this is not a typo
385+
}
386+

outputs.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,13 @@ output "private_ecr_github_actions_upload_credentials_obi_launch_system_secret_a
137137
value = module.private_ecr_github_actions_upload_credentials_launch_system.privateecr_upload_secret_access_key
138138
sensitive = true
139139
}
140+
141+
output "private_ecr_github_actions_upload_credentials_obi_launch_executor_access_key_id" {
142+
value = module.private_ecr_github_actions_upload_credentials_launch_executor.privateecr_upload_access_key_id
143+
sensitive = true
144+
}
145+
146+
output "private_ecr_github_actions_upload_credentials_obi_launch_executor_secret_access_key" {
147+
value = module.private_ecr_github_actions_upload_credentials_launch_executor.privateecr_upload_secret_access_key
148+
sensitive = true
149+
}

0 commit comments

Comments
 (0)