Skip to content

Commit 7741b91

Browse files
CCM-7908 case fixing tfvars
1 parent f0bd17a commit 7741b91

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

infrastructure/terraform/components/app/ssm_parameter_amplify_password.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ resource "aws_ssm_parameter" "amplify_password" {
55
description = "The Basic Auth password used for the amplify app. This parameter is sourced from Github Environment variables"
66

77
type = "String"
8-
value = var.amplify_basic_auth_secret != "unset" ? var.amplify_basic_auth_secret : random_password.password[0].result
8+
value = var.AMPLIFY_BASIC_AUTH_SECRET != "unset" ? var.AMPLIFY_BASIC_AUTH_SECRET : random_password.password[0].result
99
}
1010

1111
resource "random_password" "password" {
12-
count = var.enable_amplify_basic_auth && var.amplify_basic_auth_secret == "unset" ? 1 : 0
12+
count = var.enable_amplify_basic_auth && var.AMPLIFY_BASIC_AUTH_SECRET == "unset" ? 1 : 0
1313

1414
length = 16
1515
special = true

infrastructure/terraform/components/app/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ variable "enable_amplify_basic_auth" {
9494
}
9595

9696
# Github Environments only handles uppercase envvars
97-
variable "amplify_basic_auth_secret" {
97+
variable "AMPLIFY_BASIC_AUTH_SECRET" {
9898
type = string
9999
description = "Secret key/password to use for Amplify Basic Auth - This is entended to be read from CI variables and not commited to any codebase"
100100
default = "unset"

0 commit comments

Comments
 (0)