@@ -185,3 +185,65 @@ output "sapinvoices_prod_promote_workflow" {
185185 )
186186 description = " Full contents of the prod-promote.yml for the alma-sapinvoices repo"
187187}
188+
189+
190+ # ###############################################################################
191+ # # bursar transfer app
192+ module "ecr_bursar" {
193+ source = " ./modules/ecr"
194+ repo_name = " alma-bursartransfer"
195+ login_policy_arn = aws_iam_policy. login . arn
196+ oidc_arn = data. aws_ssm_parameter . oidc_arn . value
197+ environment = var. environment
198+ tfoutput_ssm_path = var. tfoutput_ssm_path
199+ tags = {
200+ app-repo = " alma-bursartransfer"
201+ }
202+ }
203+
204+ # Outputs in dev
205+ output "bursar_dev_build_workflow" {
206+ value = var. environment == " prod" || var. environment == " stage" ? null : templatefile (" ${ path . module } /files/dev-build.tpl" , {
207+ region = var.aws_region
208+ role = module.ecr_bursar.gha_role
209+ ecr = module.ecr_bursar.repository_name
210+ function = " "
211+ }
212+ )
213+ description = " Full contents of the dev-build.yml for the alma-bursartransfer repo"
214+ }
215+ output "bursar_makefile" {
216+ value = var. environment == " prod" || var. environment == " stage" ? null : templatefile (" ${ path . module } /files/makefile.tpl" , {
217+ ecr_name = module.ecr_bursar.repository_name
218+ ecr_url = module.ecr_bursar.repository_url
219+ function = " "
220+ }
221+ )
222+ description = " Full contents of the Makefile for the alma-bursartransfer repo (allows devs to push to Dev account only)"
223+ }
224+
225+ # Outputs in stage
226+ output "bursar_stage_build_workflow" {
227+ value = var. environment == " prod" || var. environment == " dev" ? null : templatefile (" ${ path . module } /files/stage-build.tpl" , {
228+ region = var.aws_region
229+ role = module.ecr_bursar.gha_role
230+ ecr = module.ecr_bursar.repository_name
231+ function = " "
232+ }
233+ )
234+ description = " Full contents of the stage-build.yml for the alma-bursartransfer repo"
235+ }
236+
237+ # Outputs after promotion to prod
238+ output "bursar_prod_promote_workflow" {
239+ value = var. environment == " stage" || var. environment == " dev" ? null : templatefile (" ${ path . module } /files/prod-promote.tpl" , {
240+ region = var.aws_region
241+ role_stage = " ${ module . ecr_bursar . repo_name } -gha-stage"
242+ role_prod = " ${ module . ecr_bursar . repo_name } -gha-prod"
243+ ecr_stage = " ${ module . ecr_bursar . repo_name } -stage"
244+ ecr_prod = " ${ module . ecr_bursar . repo_name } -prod"
245+ function = " "
246+ }
247+ )
248+ description = " Full contents of the prod-promote.yml for the alma-bursartransfer repo"
249+ }
0 commit comments