Skip to content

Commit 8b4acde

Browse files
committed
Update almahook-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 almahook-related output in dev to use the updated template for the dev-build caller workflow * Update the almahook-related output in dev to use the update template for the Makefile * Update the almahook-related output in stage to use the updated template for the stage-build caller workflow * Update the almahook-related output in prod to use the updated template for the prod-promote caller workflow Side effects of this change: None.
1 parent dd86e22 commit 8b4acde

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

almahook_ecr.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module "ecr_alma_webhook_lambdas" {
2222
## For alma-webhook-lambdas application repo and ECR repository
2323
# Outputs in dev
2424
output "alma_webhook_lambdas_dev_build_workflow" {
25-
value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/lambda-dev-build.tpl", {
25+
value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/dev-build.tpl", {
2626
region = var.aws_region
2727
role = module.ecr_alma_webhook_lambdas.gha_role
2828
ecr = module.ecr_alma_webhook_lambdas.repository_name
@@ -32,7 +32,7 @@ output "alma_webhook_lambdas_dev_build_workflow" {
3232
description = "Full contents of the dev-build.yml for the alma-webhook-lambdas repo"
3333
}
3434
output "alma_webhook_lambdas_makefile" {
35-
value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/lambda-makefile.tpl", {
35+
value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/makefile.tpl", {
3636
ecr_name = module.ecr_alma_webhook_lambdas.repository_name
3737
ecr_url = module.ecr_alma_webhook_lambdas.repository_url
3838
function = local.ecr_alma_webhook_lambdas_function_name
@@ -43,7 +43,7 @@ output "alma_webhook_lambdas_makefile" {
4343

4444
# Outputs in stage
4545
output "alma_webhook_lambdas_stage_build_workflow" {
46-
value = var.environment == "prod" || var.environment == "dev" ? null : templatefile("${path.module}/files/lambda-stage-build.tpl", {
46+
value = var.environment == "prod" || var.environment == "dev" ? null : templatefile("${path.module}/files/stage-build.tpl", {
4747
region = var.aws_region
4848
role = module.ecr_alma_webhook_lambdas.gha_role
4949
ecr = module.ecr_alma_webhook_lambdas.repository_name
@@ -55,7 +55,7 @@ output "alma_webhook_lambdas_stage_build_workflow" {
5555

5656
# Outputs after promotion to prod
5757
output "alma_webhook_lambdas_prod_promote_workflow" {
58-
value = var.environment == "stage" || var.environment == "dev" ? null : templatefile("${path.module}/files/lambda-prod-promote.tpl", {
58+
value = var.environment == "stage" || var.environment == "dev" ? null : templatefile("${path.module}/files/prod-promote.tpl", {
5959
region = var.aws_region
6060
role_stage = "${module.ecr_alma_webhook_lambdas.repo_name}-gha-stage"
6161
role_prod = "${module.ecr_alma_webhook_lambdas.repo_name}-gha-prod"

0 commit comments

Comments
 (0)