* updating examples to use new grants_strings syntax * Make docs Co-authored-by: Louis Ruch <louisruch@gmail.com>
29 lines
828 B
Terraform
29 lines
828 B
Terraform
resource "boundary_scope" "org" {
|
|
name = "organization_one"
|
|
description = "My first scope!"
|
|
scope_id = "global"
|
|
auto_create_admin_role = true
|
|
auto_create_default_role = true
|
|
}
|
|
|
|
resource "boundary_scope" "project" {
|
|
name = "project_one"
|
|
description = "My first scope!"
|
|
scope_id = boundary_scope.org.id
|
|
auto_create_admin_role = true
|
|
}
|
|
|
|
resource "boundary_user" "readonly" {
|
|
name = "readonly"
|
|
description = "A readonly user"
|
|
scope_id = boundary_scope.org.id
|
|
}
|
|
|
|
resource "boundary_role" "readonly" {
|
|
name = "readonly"
|
|
description = "A readonly role"
|
|
principal_ids = [boundary_user.readonly.id]
|
|
grant_strings = ["id=*;type=*;actions=read"]
|
|
scope_id = boundary_scope.project.id
|
|
}
|