Skip to content

Commit f225f4b

Browse files
authored
fix: fixed bug which was causing private endpoint not to be used (#87)
1 parent 9d42bf1 commit f225f4b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ resource "ibm_sm_private_certificate" "secrets_manager_private_certificate" {
1818
format = var.return_format
1919
private_key_format = var.private_key_format
2020
exclude_cn_from_sans = var.exclude_cn_from_sans
21+
endpoint_type = var.service_endpoints
2122

2223
rotation {
2324
auto_rotate = var.cert_rotation.auto_rotate

module-metadata.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@
292292
"type": "string",
293293
"description": "Service endpoint type to communicate with the provided secrets manager instance. Possible values are `public` or `private`",
294294
"default": "public",
295+
"source": [
296+
"ibm_sm_private_certificate.secrets_manager_private_certificate.endpoint_type"
297+
],
295298
"pos": {
296299
"filename": "variables.tf",
297300
"line": 253
@@ -343,6 +346,7 @@
343346
"csr": "cert_csr",
344347
"custom_metadata": "cert_custom_metadata",
345348
"description": "cert_description",
349+
"endpoint_type": "service_endpoints",
346350
"exclude_cn_from_sans": "exclude_cn_from_sans",
347351
"format": "return_format",
348352
"instance_id": "secrets_manager_guid",

0 commit comments

Comments
 (0)