@@ -185,6 +185,7 @@ output "timdex_lambdas_prod_promote_workflow" {
185185 description = " Full contents of the prod-promote.yml for the timdex-pipeline-lambdas repo"
186186}
187187
188+
188189# # timdex-index-manager
189190# timdex-index-manager ECR repository
190191module "ecr_timdex_tim" {
@@ -242,3 +243,62 @@ output "tim_prod_promote_workflow" {
242243 )
243244 description = " Full contents of the prod-promote.yml for the timdex-index-manager repo"
244245}
246+
247+
248+ # # browsertrix-harvester
249+ # browsertrix-harvester ECR repository
250+ module "ecr_timdex_broswertrix" {
251+ source = " ./modules/ecr"
252+ repo_name = " browsertrix-harvester"
253+ login_policy_arn = aws_iam_policy. login . arn
254+ oidc_arn = data. aws_ssm_parameter . oidc_arn . value
255+ environment = var. environment
256+ tfoutput_ssm_path = var. tfoutput_ssm_path
257+ tags = {
258+ app-repo = " timdex-infrastructure-browsertrix"
259+ }
260+ }
261+ # Outputs in dev
262+ output "broswertrix_dev_build_workflow" {
263+ value = var. environment == " prod" || var. environment == " stage" ? null : templatefile (" ${ path . module } /files/dev-build.tpl" , {
264+ region = var.aws_region
265+ role = module.ecr_timdex_broswertrix.gha_role
266+ ecr = module.ecr_timdex_broswertrix.repository_name
267+ function = " "
268+ }
269+ )
270+ description = " Full contents of the dev-build.yml for the browsertrix-harvester repo"
271+ }
272+ output "broswertrix_makefile" {
273+ value = var. environment == " prod" || var. environment == " stage" ? null : templatefile (" ${ path . module } /files/makefile.tpl" , {
274+ ecr_name = module.ecr_timdex_broswertrix.repository_name
275+ ecr_url = module.ecr_timdex_broswertrix.repository_url
276+ function = " "
277+ }
278+ )
279+ description = " Full contents of the Makefile for the browsertrix-harvester repo (allows devs to push to Dev account only)"
280+ }
281+ # Outputs in stage
282+ output "broswertrix_stage_build_workflow" {
283+ value = var. environment == " prod" || var. environment == " dev" ? null : templatefile (" ${ path . module } /files/stage-build.tpl" , {
284+ region = var.aws_region
285+ role = module.ecr_timdex_broswertrix.gha_role
286+ ecr = module.ecr_timdex_broswertrix.repository_name
287+ function = " "
288+ }
289+ )
290+ description = " Full contents of the stage-build.yml for the browsertrix-harvester repo"
291+ }
292+ # Outputs after promotion to prod
293+ output "broswertrix_prod_promote_workflow" {
294+ value = var. environment == " stage" || var. environment == " dev" ? null : templatefile (" ${ path . module } /files/prod-promote.tpl" , {
295+ region = var.aws_region
296+ role_stage = " ${ module . ecr_timdex_broswertrix . repo_name } -gha-stage"
297+ role_prod = " ${ module . ecr_timdex_broswertrix . repo_name } -gha-prod"
298+ ecr_stage = " ${ module . ecr_timdex_broswertrix . repo_name } -stage"
299+ ecr_prod = " ${ module . ecr_timdex_broswertrix . repo_name } -prod"
300+ function = " "
301+ }
302+ )
303+ description = " Full contents of the prod-promote.yml for the browsertrix-harvester repo"
304+ }
0 commit comments