From f91480534ddd95b81e4ca3c6526e31bc7d3ce69b Mon Sep 17 00:00:00 2001 From: Carlos Castro Date: Fri, 22 Nov 2024 16:46:08 +0000 Subject: [PATCH] allow branch name to be configured; --- terraform/api.tf | 2 +- terraform/variables.tf | 5 +++++ terraform/website.tf | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/terraform/api.tf b/terraform/api.tf index 2cb8b8b..bde99bc 100644 --- a/terraform/api.tf +++ b/terraform/api.tf @@ -699,7 +699,7 @@ resource "aws_codepipeline" "leafsteroids_api" { action { category = "Source" configuration = { - "BranchName" = "feature/dockerize" + "BranchName" = var.branch_name "ConnectionArn" = var.connection_arn "DetectChanges" = "false" "FullRepositoryId" = "mongodb-developer/leafsteroids" diff --git a/terraform/variables.tf b/terraform/variables.tf index 40fe155..ffae909 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -63,3 +63,8 @@ variable "game_client_port" { description = "The port of the game client" default = 80 } + +variable "branch_name" { + description = "The name of the branch" +} + diff --git a/terraform/website.tf b/terraform/website.tf index a77a771..d06f4d0 100644 --- a/terraform/website.tf +++ b/terraform/website.tf @@ -731,7 +731,7 @@ resource "aws_codepipeline" "leafsteroids_website" { action { category = "Source" configuration = { - "BranchName" = "feature/dockerize" + "BranchName" = var.branch_name "ConnectionArn" = var.connection_arn "DetectChanges" = "false" "FullRepositoryId" = "mongodb-developer/leafsteroids"