Skip to content

Commit 5ccc23a

Browse files
Merge pull request #241 from NHSDigital/CCM-7908_VarsFromGithubFix
CCM-7908 adding mechanism for TFVAR based secret
2 parents 020f7dc + 0a6b554 commit 5ccc23a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

infrastructure/terraform/components/app/ssm_parameter_amplify_password.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
resource "aws_ssm_parameter" "amplify_password" {
22
count = var.enable_amplify_basic_auth ? 1 : 0
33

4-
name = "/${local.csi}/amplify_password"
4+
name = "/${local.csi}/amplify_password"
5+
description = "The Basic Auth password used for the amplify app. This parameter is sourced from Github Environment variables"
6+
57
type = "String"
68
value = var.AMPLIFY_BASIC_AUTH_SECRET != "unset" ? var.AMPLIFY_BASIC_AUTH_SECRET : random_password.password[0].result
79
}

infrastructure/terraform/components/app/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ variable "enable_amplify_basic_auth" {
9595

9696
# Github Environments only handles uppercase envvars
9797
variable "AMPLIFY_BASIC_AUTH_SECRET" {
98+
# Github only does uppercase env vars
9899
type = string
99100
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"
100-
sensitive = true
101101
default = "unset"
102102
}
103103

0 commit comments

Comments
 (0)