Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #237 from suzuki-shunsuke/docs/add-example
Browse files Browse the repository at this point in the history
docs: add an example
  • Loading branch information
suzuki-shunsuke committed Jan 24, 2020
2 parents 41af4cc + 3e0fc25 commit 88c32e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions terraform/example/v0.12/role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ resource "graylog_role" "terraform-read" {
]
}

resource "graylog_role" "read-stream-test" {
name = "read-stream-test"
description = "read the stream 'test'"

permissions = [
"streams:read:${graylog_stream.test.id}",
]
}

5 changes: 4 additions & 1 deletion terraform/example/v0.12/user.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ resource "graylog_user" "test" {
email = "test@example.com"
full_name = "test test"
password = "password"
roles = ["Reader"]
roles = [
"Reader",
graylog_role.read-stream-test.name,
]
}

0 comments on commit 88c32e0

Please sign in to comment.