Skip to content

Commit

Permalink
feat: added new output secret_id which will output the private cert…
Browse files Browse the repository at this point in the history
… secrets manager secret unique ID (not to be confused with the `id` output which will output the private certif secrets manager secret resource ID) (#222)

Co-authored-by: shemau <[email protected]>
  • Loading branch information
vbontempi and shemau authored Jun 24, 2024
1 parent c63be9f commit 7436250
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_id"></a> [id](#output\_id) | Private certificates secrets manager secret resource ID |
| <a name="output_secret_crn"></a> [secret\_crn](#output\_secret\_crn) | Private certificates secrets manager secret CRN |
| <a name="output_secret_id"></a> [secret\_id](#output\_secret\_id) | Private certificates secrets manager secret ID |
| <a name="output_secret_id"></a> [secret\_id](#output\_secret\_id) | Private certificates secrets manager secret unique ID |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

<!-- Leave this section as is so that your module has a link to local development environment set up steps for contributors to follow -->
Expand Down
9 changes: 7 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
# Outputs
##############################################################################

output "secret_id" {
description = "Private certificates secrets manager secret ID"
output "id" {
description = "Private certificates secrets manager secret resource ID"
value = ibm_sm_private_certificate.secrets_manager_private_certificate.id
}

output "secret_id" {
description = "Private certificates secrets manager secret unique ID"
value = ibm_sm_private_certificate.secrets_manager_private_certificate.secret_id
}

output "secret_crn" {
description = "Private certificates secrets manager secret CRN"
value = ibm_sm_private_certificate.secrets_manager_private_certificate.crn
Expand Down

0 comments on commit 7436250

Please sign in to comment.