Skip to content

Commit

Permalink
DocFix: #3532
Browse files Browse the repository at this point in the history
  • Loading branch information
kavya498 authored and hkantare committed Feb 11, 2022
1 parent 586729a commit 7884b71
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions website/docs/r/iam_trusted_profile_policy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,26 @@ resource "ibm_iam_trusted_profile_policy" "policy" {
}
}
```
### Trusted Profile Policy by using resource_attributes (serviceName,serviceInstance)
```terraform
resource "ibm_iam_trusted_profile" "profile_id" {
name = "test"
}
resource "ibm_iam_trusted_profile_policy" "policy" {
profile_id = ibm_iam_trusted_profile.profile_id.id
roles = ["Viewer"]
resource_attributes {
name = "serviceName"
value = "databases-for-redis"
}
resource_attributes {
name = "serviceInstance"
value = var.redis_guid
}
}
```
### Trusted Profile Policy using service_type with region

```terraform
Expand Down

0 comments on commit 7884b71

Please sign in to comment.