datadog_authn_mapping (Resource)

Provides a Datadog AuthN Mappings resource. This feature lets you automatically assign roles to users based on their SAML attributes.

Example Usage

# Source the role
data "datadog_role" "ro_role" {
  filter = "Datadog Read Only Role"
}

# Create a new AuthN mapping
resource "datadog_authn_mapping" "dev_ro_role_mapping" {
  key   = "Member-of"
  value = "Development"
  role  = data.datadog_role.ro_role.id
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# AuthN mappings can be imported using their ID, e.g.
terraform import datadog_authn_mapping.dev_ro_mapping 000000-0000-0000-0000-000000000000