* feat: add principle to role resource * docs: add principle usage to role resource
1.0 KiB
1.0 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| watchtower | Watchtower: role_resource | docs-watchtower-role-resource | Role resource for the Watchtower Terraform provider. |
role_resource
The role resource allows you to configure a Watchtower role.
Example Usage
Basic usage:
resource "watchtower_role" "example" {
name = "My role"
description = "My first role!"
}
Usage with a user resource:
resource "watchtower_user" "foo" {
name = "User 1"
}
resource "watchtower_user" "bar" {
name = "User 2"
}
resource "watchtower_role" "example" {
name = "My role"
description = "My first role!"
users [watchtower_user.foo.id, watchtower_user.bar.id]
}
Argument Reference
The following arguments are optional:
name- The role name. Defaults to the resource name.description- The role description.users- A list of user resource ID's to add as principles on the role.groups- A list of group resource ID's to add as principles on the role.