From 9c054c1ac8858771fb2a32f29d47e7faec5e92c7 Mon Sep 17 00:00:00 2001 From: DevOps Rob Date: Wed, 8 Sep 2021 21:02:12 +0100 Subject: [PATCH] updating examples to use new grants_strings syntax (#132) * updating examples to use new grants_strings syntax * Make docs Co-authored-by: Louis Ruch --- docs/resources/role.md | 4 ++-- examples/resources/boundary_role/project-specific/resource.tf | 2 +- examples/resources/boundary_role/user-grants/resource.tf | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/resources/role.md b/docs/resources/role.md index 88067c68..b2e761c2 100644 --- a/docs/resources/role.md +++ b/docs/resources/role.md @@ -79,7 +79,7 @@ resource "boundary_role" "readonly" { name = "readonly" description = "A readonly role" principal_ids = [boundary_user.readonly.id] - grants = ["id=*;type=*;actions=read"] + grant_strings = ["id=*;type=*;actions=read"] scope_id = boundary_scope.org.id } ``` @@ -112,7 +112,7 @@ resource "boundary_role" "readonly" { name = "readonly" description = "A readonly role" principal_ids = [boundary_user.readonly.id] - grants = ["id=*;type=*;actions=read"] + grant_strings = ["id=*;type=*;actions=read"] scope_id = boundary_scope.project.id } ``` diff --git a/examples/resources/boundary_role/project-specific/resource.tf b/examples/resources/boundary_role/project-specific/resource.tf index e401fb58..d43781b7 100644 --- a/examples/resources/boundary_role/project-specific/resource.tf +++ b/examples/resources/boundary_role/project-specific/resource.tf @@ -23,6 +23,6 @@ resource "boundary_role" "readonly" { name = "readonly" description = "A readonly role" principal_ids = [boundary_user.readonly.id] - grants = ["id=*;type=*;actions=read"] + grant_strings = ["id=*;type=*;actions=read"] scope_id = boundary_scope.project.id } diff --git a/examples/resources/boundary_role/user-grants/resource.tf b/examples/resources/boundary_role/user-grants/resource.tf index c4efbb81..63d93293 100644 --- a/examples/resources/boundary_role/user-grants/resource.tf +++ b/examples/resources/boundary_role/user-grants/resource.tf @@ -16,6 +16,6 @@ resource "boundary_role" "readonly" { name = "readonly" description = "A readonly role" principal_ids = [boundary_user.readonly.id] - grants = ["id=*;type=*;actions=read"] + grant_strings = ["id=*;type=*;actions=read"] scope_id = boundary_scope.org.id }