Provides a Datadog service account resource. This can be used to create and manage Datadog service accounts.
# Source a role
data "datadog_role" "ro_role" {
filter = "Datadog Read Only Role"
}
# Create a new Datadog service account
resource "datadog_service_account" "bar" {
email = "new@example.com"
name = "Service Account Bar"
roles = [data.datadog_role.ro_role.id]
}
email
(String) Email of the associated user.disabled
(Boolean) Whether the service account is disabled. Defaults to false
.name
(String) Name for the service account.roles
(Set of String) A list a role IDs to assign to the service account.id
(String) The ID of this resource.Import is supported using the following syntax:
terraform import datadog_service_account.example_sa 6f1b44c0-30b2-11eb-86bc-279f7c1ebaa4