Provides a Datadog role resource. This can be used to create and manage Datadog roles.
# Source the permissions
data "datadog_permissions" "bar" {}
# Create a new Datadog role
resource "datadog_role" "foo" {
name = "foo"
permission {
id = data.datadog_permissions.bar.permissions.monitors_downtime
}
permission {
id = data.datadog_permissions.bar.permissions.monitors_write
}
}
name
(String) Name of the role.permission
(Block Set) Set of objects containing the permission ID and the name of the permissions granted to this role. (see below for nested schema)validate
(Boolean) If set to false
, skip the validation call done during plan.id
(String) The ID of this resource.user_count
(Number) Number of users that have this role.permission
Required:
id
(String) ID of the permission to assign.Read-Only:
name
(String) Name of the permission.Import is supported using the following syntax:
# Roles can be imported using their ID, e.g.
terraform import datadog_role.example_role 000000-0000-0000-0000-000000000000