Skip to content

Commit 8d4f909

Browse files
authored
feat: added new base module output for cos resource key details called cos_key_credentials_map (#1016)
1 parent 638b7ce commit 8d4f909

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,7 @@ module "cluster_pattern" {
960960
| <a name="output_cos_bucket_data"></a> [cos\_bucket\_data](#output\_cos\_bucket\_data) | List of data for COS buckets creaed |
961961
| <a name="output_cos_bucket_names"></a> [cos\_bucket\_names](#output\_cos\_bucket\_names) | List of names for COS buckets created |
962962
| <a name="output_cos_data"></a> [cos\_data](#output\_cos\_data) | List of Cloud Object Storage instance data |
963+
| <a name="output_cos_key_credentials_map"></a> [cos\_key\_credentials\_map](#output\_cos\_key\_credentials\_map) | Map of resource key credentials created for COS instances, organized by the key name supplied in the `cos.keys[]` input variable. Contains sensitive output including API keys and HMAC credentials. |
963964
| <a name="output_cos_key_names"></a> [cos\_key\_names](#output\_cos\_key\_names) | List of names for created COS keys |
964965
| <a name="output_cos_names"></a> [cos\_names](#output\_cos\_names) | List of Cloud Object Storage instance names |
965966
| <a name="output_f5_hosts"></a> [f5\_hosts](#output\_f5\_hosts) | List of bastion host names |

outputs.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,21 @@ output "cos_key_names" {
147147
]
148148
}
149149

150+
output "cos_key_credentials_map" {
151+
description = "Map of resource key credentials created for COS instances, organized by the key name supplied in the `cos.keys[]` input variable. Contains sensitive output including API keys and HMAC credentials."
152+
value = {
153+
for k, v in ibm_resource_key.key : k => {
154+
guid : v.guid
155+
id : v.id
156+
crn : v.crn
157+
name : v.name
158+
credentials : v.credentials
159+
credentials_json : v.credentials_json
160+
}
161+
}
162+
sensitive = true
163+
}
164+
150165
output "cos_bucket_names" {
151166
description = "List of names for COS buckets created"
152167
value = [

0 commit comments

Comments
 (0)