Skip to content

Commit ed1f23d

Browse files
committed
Remove Mario ECR
# Subject Removes mario ECR # Why these changes are being introduced: Mario is no longer needed, it has been replaced by TIM # How this addresses that need: Removes the Mario ECR and its related outputs # Side effects of this change: # Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/IN-630
1 parent a4d1746 commit ed1f23d

File tree

1 file changed

+0
-61
lines changed

1 file changed

+0
-61
lines changed

timdex_ecrs.tf

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -2,67 +2,6 @@
22
### Timdex related ECR's
33
###
44

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-
665
## oaiharvester
676
# oaiharvester ECR repo
687
module "ecr_oaiharvester" {

0 commit comments

Comments
 (0)