Difference between revisions of "Terraform resource: datadog user"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<code>[[datadog_user]]</code>
 
* https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/user
 
* https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/user
<code>[[datadog_user]]</code>
 
  
 
== Official example ==
 
== Official example ==
<pre>
 
# Source a role
 
data "datadog_role" "ro_role" {
 
  filter = "Datadog Read Only Role"
 
}
 
  
# Create a new Datadog user
+
# Source a role
resource "datadog_user" "foo" {
+
data "datadog_role" "ro_role" {
  email = "[email protected]"
+
  filter = "[[Datadog Read Only Role]]"
 +
}
 +
 +
# Create a new Datadog user
 +
resource "datadog_user" "foo" {
 +
  email = "[email protected]"  
 +
 +
  roles = [data.datadog_role.ro_role.id]
 +
}
 +
 
 +
== Errors ==
 +
[[│ Error: error sending user invitation from]]
  
  roles = [data.datadog_role.ro_role.id]
+
[[409 Conflict]]
}
 
</pre>
 
  
 
== See also ==
 
== See also ==

Latest revision as of 13:52, 3 July 2024

Advertising: