File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
infrastructure/terraform/components/app Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
99resource "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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments