|
2 | 2 | ### Timdex related ECR's |
3 | 3 | ### |
4 | 4 |
|
5 | | -## mario |
6 | | -# the mario ECR |
7 | | -module "ecr_mario" { |
8 | | - source = "./modules/ecr" |
9 | | - repo_name = "mario" |
10 | | - login_policy_arn = aws_iam_policy.login.arn |
11 | | - oidc_arn = data.aws_ssm_parameter.oidc_arn.value |
12 | | - environment = var.environment |
13 | | - tfoutput_ssm_path = var.tfoutput_ssm_path |
14 | | - tags = { |
15 | | - app-repo = "timdex-infrastructure-mario" |
16 | | - } |
17 | | -} |
18 | | - |
19 | | -# Outputs in dev |
20 | | -output "mario_dev_build_workflow" { |
21 | | - value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/dev-build.tpl", { |
22 | | - region = var.aws_region |
23 | | - role = module.ecr_mario.gha_role |
24 | | - ecr = module.ecr_mario.repository_name |
25 | | - function = "" |
26 | | - } |
27 | | - ) |
28 | | - description = "Full contents of the dev-build.yml for the mario repo" |
29 | | -} |
30 | | -output "mario_makefile" { |
31 | | - value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/makefile.tpl", { |
32 | | - ecr_name = module.ecr_mario.repository_name |
33 | | - ecr_url = module.ecr_mario.repository_url |
34 | | - function = "" |
35 | | - } |
36 | | - ) |
37 | | - description = "Full contents of the Makefile for the mario repo (allows devs to push to Dev account only)" |
38 | | -} |
39 | | - |
40 | | -# Outputs in stage |
41 | | -output "mario_stage_build_workflow" { |
42 | | - value = var.environment == "prod" || var.environment == "dev" ? null : templatefile("${path.module}/files/stage-build.tpl", { |
43 | | - region = var.aws_region |
44 | | - role = module.ecr_mario.gha_role |
45 | | - ecr = module.ecr_mario.repository_name |
46 | | - function = "" |
47 | | - } |
48 | | - ) |
49 | | - description = "Full contents of the stage-build.yml for the mario repo" |
50 | | -} |
51 | | - |
52 | | -# Outputs after promotion to prod |
53 | | -output "mario_prod_promote_workflow" { |
54 | | - value = var.environment == "stage" || var.environment == "dev" ? null : templatefile("${path.module}/files/prod-promote.tpl", { |
55 | | - region = var.aws_region |
56 | | - role_stage = "${module.ecr_mario.repo_name}-gha-stage" |
57 | | - role_prod = "${module.ecr_mario.repo_name}-gha-prod" |
58 | | - ecr_stage = "${module.ecr_mario.repo_name}-stage" |
59 | | - ecr_prod = "${module.ecr_mario.repo_name}-prod" |
60 | | - function = "" |
61 | | - } |
62 | | - ) |
63 | | - description = "Full contents of the prod-promote.yml for the mario repo" |
64 | | -} |
65 | | - |
66 | 5 | ## oaiharvester |
67 | 6 | # oaiharvester ECR repo |
68 | 7 | module "ecr_oaiharvester" { |
|
0 commit comments