Skip to content

Commit a9df8a9

Browse files
CCM-7908 case fixing tfvars
1 parent be6a196 commit a9df8a9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-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
@@ -3,11 +3,11 @@ resource "aws_ssm_parameter" "amplify_password" {
33

44
name = "/${local.csi}/amplify_password"
55
type = "String"
6-
value = var.amplify_basic_auth_secret != "unset" ? var.amplify_basic_auth_secret : random_password.password[0].result
6+
value = var.AMPLIFY_BASIC_AUTH_SECRET != "unset" ? var.AMPLIFY_BASIC_AUTH_SECRET : random_password.password[0].result
77
}
88

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

1212
length = 16
1313
special = true

infrastructure/terraform/components/app/variables.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ variable "enable_amplify_basic_auth" {
9393
default = true
9494
}
9595

96-
variable "amplify_basic_auth_secret" {
96+
# Github Environments only handles uppercase envvars
97+
variable "AMPLIFY_BASIC_AUTH_SECRET" {
9798
type = string
9899
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"
99100
sensitive = true

0 commit comments

Comments
 (0)