Skip to content

Commit 78f3ba5

Browse files
fix: Update variable name (#72)
* Update variables.tf * Update main.tf * Update pr_test.go
1 parent 7e3191d commit 78f3ba5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

solutions/banking/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module "secrets_manager_secret_ibm_iam" {
4343
secret_description = "IBM IAM Api key"
4444
secret_type = "arbitrary" #checkov:skip=CKV_SECRET_6
4545
secret_payload_password = var.ibmcloud_api_key
46-
endpoint_type = var.secrets_endpoint_type
46+
endpoint_type = var.secrets_manager_endpoint_type
4747
}
4848

4949
# secrets manager secrets - IBM signing key
@@ -60,7 +60,7 @@ module "secrets_manager_secret_signing_key" {
6060
secret_description = "IBM Signing GPG key"
6161
secret_type = "arbitrary" #checkov:skip=CKV_SECRET_6
6262
secret_payload_password = var.signing_key
63-
endpoint_type = var.secrets_endpoint_type
63+
endpoint_type = var.secrets_manager_endpoint_type
6464
}
6565

6666
# secrets manager secrets - WATSONX ADMIN API KEY
@@ -77,7 +77,7 @@ module "secrets_manager_secret_watsonx_admin_api_key" {
7777
secret_description = "WatsonX Admin API Key"
7878
secret_type = "arbitrary" #checkov:skip=CKV_SECRET_6
7979
secret_payload_password = var.watsonx_admin_api_key
80-
endpoint_type = var.secrets_endpoint_type
80+
endpoint_type = var.secrets_manager_endpoint_type
8181
}
8282

8383

solutions/banking/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ variable "create_secrets" {
107107
default = true
108108
}
109109

110-
variable "secrets_endpoint_type" {
110+
variable "secrets_manager_endpoint_type" {
111111
type = string
112112
description = "The endpoint type to communicate with the provided secrets manager instance. Possible values are `public` or `private`"
113113
default = "private"

tests/pr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func TestRunBankingSolutions(t *testing.T) {
8282
"secrets_manager_region": region,
8383
"signing_key": terraform.Output(t, existingTerraformOptions, "signing_key"),
8484
"trigger_ci_pipeline_run": false,
85-
"secrets_endpoint_type": "public",
85+
"secrets_manager_endpoint_type": "public",
8686
},
8787
})
8888

0 commit comments

Comments
 (0)