I am using IBM Cloud Object Storage (COS) to store files on IBM Cloud. I have used Terraform to provision the service and to create the storage bucket. How can I create credentials including the HMAC portion using Terraform?
This is how to create the resource key (credentials):
# service access key for COS
resource "ibm_resource_key" "MyCos" {
name = "my-accKey-cos"
role = "Writer"
resource_instance_id = ibm_resource_instance.cos.id
}