diff --git a/README.md b/README.md
index 004073138..6e346b814 100644
--- a/README.md
+++ b/README.md
@@ -960,6 +960,7 @@ module "cluster_pattern" {
| [cos\_bucket\_data](#output\_cos\_bucket\_data) | List of data for COS buckets creaed |
| [cos\_bucket\_names](#output\_cos\_bucket\_names) | List of names for COS buckets created |
| [cos\_data](#output\_cos\_data) | List of Cloud Object Storage instance data |
+| [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. |
| [cos\_key\_names](#output\_cos\_key\_names) | List of names for created COS keys |
| [cos\_names](#output\_cos\_names) | List of Cloud Object Storage instance names |
| [f5\_hosts](#output\_f5\_hosts) | List of bastion host names |
diff --git a/outputs.tf b/outputs.tf
index 4703099b8..f4796181a 100644
--- a/outputs.tf
+++ b/outputs.tf
@@ -147,6 +147,21 @@ output "cos_key_names" {
]
}
+output "cos_key_credentials_map" {
+ 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."
+ value = {
+ for k, v in ibm_resource_key.key : k => {
+ guid : v.guid
+ id : v.id
+ crn : v.crn
+ name : v.name
+ credentials : v.credentials
+ credentials_json : v.credentials_json
+ }
+ }
+ sensitive = true
+}
+
output "cos_bucket_names" {
description = "List of names for COS buckets created"
value = [