Skip to content

Commit dd86e22

Browse files
committed
Update DSS-related Outputs
Why these changes are being introduced: There are new shared workflows in the shared .github repository for handling the Fargate/Lambda deployment pipeline. How this addresses that need: * Update the DSS-related output in dev to use the updated template for the dev-build caller workflow * Update the DSS-related output in dev to use the update template for the Makefile * Update the DSS-related output in stage to use the updated template for the stage-build caller workflow * Update the DSS-related output in prod to use the updated template for the prod-promote caller workflow Side effects of this change: None.
1 parent 2c551c6 commit dd86e22

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

dss.tf

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,42 +21,46 @@ module "ecr_dss" {
2121
## For dss application repo and ECR repository
2222
# Outputs in dev
2323
output "dss_fargate_dev_build_workflow" {
24-
value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/fargate-dev-build.tpl", {
24+
value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/dev-build.tpl", {
2525
region = var.aws_region
2626
role = module.ecr_dss.gha_role
2727
ecr = module.ecr_dss.repository_name
28+
function = ""
2829
}
2930
)
3031
description = "Full contents of the dev-build.yml for the dss repo"
3132
}
3233
output "dss_fargate_makefile" {
33-
value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/fargate-makefile.tpl", {
34+
value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/makefile.tpl", {
3435
ecr_name = module.ecr_dss.repository_name
3536
ecr_url = module.ecr_dss.repository_url
37+
function = ""
3638
}
3739
)
3840
description = "Full contents of the Makefile for the dss repo (allows devs to push to Dev account only)"
3941
}
4042

4143
# Outputs in stage
4244
output "dss_fargate_stage_build_workflow" {
43-
value = var.environment == "prod" || var.environment == "dev" ? null : templatefile("${path.module}/files/fargate-stage-build.tpl", {
45+
value = var.environment == "prod" || var.environment == "dev" ? null : templatefile("${path.module}/files/stage-build.tpl", {
4446
region = var.aws_region
4547
role = module.ecr_dss.gha_role
4648
ecr = module.ecr_dss.repository_name
49+
function = ""
4750
}
4851
)
4952
description = "Full contents of the stage-build.yml for the dss repo"
5053
}
5154

5255
# Outputs after promotion to prod
5356
output "dss_fargate_prod_promote_workflow" {
54-
value = var.environment == "stage" || var.environment == "dev" ? null : templatefile("${path.module}/files/fargate-prod-promote.tpl", {
57+
value = var.environment == "stage" || var.environment == "dev" ? null : templatefile("${path.module}/files/prod-promote.tpl", {
5558
region = var.aws_region
5659
role_stage = "${module.ecr_dss.repo_name}-gha-stage"
5760
role_prod = "${module.ecr_dss.repo_name}-gha-prod"
5861
ecr_stage = "${module.ecr_dss.repo_name}-stage"
5962
ecr_prod = "${module.ecr_dss.repo_name}-prod"
63+
function = ""
6064
}
6165
)
6266
description = "Full contents of the prod-promote.yml for the dss repo"

0 commit comments

Comments
 (0)