Skip to content

Commit

Permalink
CCM-6833: Add disable content varible to terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
m-salaudeen committed Oct 17, 2024
1 parent 5b8dc9d commit e0105b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 6 additions & 5 deletions infrastructure/terraform/components/app/amplify_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ resource "aws_amplify_app" "main" {
]

environment_variables = {
USER_POOL_ID = aws_cognito_user_pool.main.id
HOSTED_LOGIN_DOMAIN = local.auth_domain_name
NOTIFY_GROUP = var.group
NOTIFY_ENVIRONMENT = var.environment
NOTIFY_DOMAIN_NAME = local.root_domain_name
USER_POOL_ID = aws_cognito_user_pool.main.id
HOSTED_LOGIN_DOMAIN = local.auth_domain_name
NOTIFY_GROUP = var.group
NOTIFY_ENVIRONMENT = var.environment
NOTIFY_DOMAIN_NAME = local.root_domain_name
NEXT_PUBLIC_DISABLE_CONTENT = var.disable_content
}
}
6 changes: 6 additions & 0 deletions infrastructure/terraform/components/app/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,9 @@ variable "branch_name" {
description = "The branch name to deploy"
default = "main"
}

variable "disable_content" {
type = string
description = "Value for turning on/off feature testing"
default = "false"
}

0 comments on commit e0105b9

Please sign in to comment.