Skip to content

Commit

Permalink
Merge pull request #44 from NHSDigital/CCM-5521
Browse files Browse the repository at this point in the history
CCM-5521 support amplify named env branch targeting
  • Loading branch information
aidenvaines-bjss authored Sep 3, 2024
2 parents e67af61 + 9d08d0f commit 15ccdca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
6 changes: 6 additions & 0 deletions infrastructure/terraform/components/iam/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 15ccdca

Please sign in to comment.