Skip to content

Commit

Permalink
Add workaround for serviceID for reosurcekey
Browse files Browse the repository at this point in the history
  • Loading branch information
hkantare committed Feb 21, 2020
1 parent e6a14ce commit 43faa83
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions website/docs/r/resource_key.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,35 @@ resource "ibm_resource_key" "resourceKey" {
}
}
```
**Note** The current `ibm_resource_key` resource doesn't have support for service_id argument but the service_id can be passesd as one of the parameter.

## Example Usage with serviceID

```hcl
data "ibm_resource_instance" "resource_instance" {
name = "myobjectsotrage"
}
resource "ibm_iam_service_id" "serviceID" {
name = "test"
description = "New ServiceID"
}
resource "ibm_resource_key" "resourceKey" {
name = "myobjectkey"
role = "Viewer"
resource_instance_id = "${data.ibm_resource_instance.resource_instance.id}"
parameters = {
"serviceid_crn" = "${ibm_iam_service_id.serviceID.crn}"
}
//User can increase timeouts
timeouts {
create = "15m"
delete = "15m"
}
}
```

## Timeouts

Expand Down

0 comments on commit 43faa83

Please sign in to comment.