diff --git a/infrastructure/terraform/components/iam/module_amplify_branch.tf b/infrastructure/terraform/components/iam/module_amplify_branch.tf index 7b936a8..9488a29 100644 --- a/infrastructure/terraform/components/iam/module_amplify_branch.tf +++ b/infrastructure/terraform/components/iam/module_amplify_branch.tf @@ -10,7 +10,7 @@ module "amplify_branch" { group = var.group description = "Amplify branch for main" amplify_app_id = aws_amplify_app.main.id - branch = "main" + branch = var.branch_name stage = "PRODUCTION" enable_auto_build = true environment_variables = { diff --git a/infrastructure/terraform/components/iam/variables.tf b/infrastructure/terraform/components/iam/variables.tf index 151c008..f3b16d0 100644 --- a/infrastructure/terraform/components/iam/variables.tf +++ b/infrastructure/terraform/components/iam/variables.tf @@ -92,3 +92,9 @@ variable "enable_amplify_basic_auth" { description = "Enable a basic set of credentials in the form of a dynamicly generated username and password for the amplify app branches. Not intended for production use" default = false } + +variable "branch_name" { + type = string + description = "The branch name to deploy" + default = "main" +}