Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions datadog-users.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
data "datadog_role" "admin_role" {
filter = "Datadog Admin Role"
}

data "datadog_role" "limited_read_write" {
filter = "Limited Read Write"
}

#Uncomment if you need to source other roles
#data "datadog_role" "ro_role" {
# filter = "Datadog Read Only Role"
Expand All @@ -14,6 +19,7 @@ data "datadog_role" "admin_role" {
# filter = "Datadog Standard Role"
#}


# Create new user resources
variable "dd_users" {
description = "Map of User Resources"
Expand Down Expand Up @@ -47,12 +53,12 @@ locals {
email = "rgrigar@linuxfoundation.org"
roles = [data.datadog_role.admin_role.id]
disabled = false
} #,
#"amdfaa" = {
# email = "Faa.Diallo@linuxfoundation.org"
# roles = [datadog_role.roles["custom-read-write"].id]
# disabled = false
#}
},
"amdfaa" = {
email = "Faa.Diallo@amd.com"
roles = [data.datadog_role.limited_read_write.id]
disabled = false
}
}

# Merge default users with any custom users provided via variable
Expand Down