Difference between revisions of "Terraform resource: datadog user"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
 
== 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]]"
 
+
}
  roles = [data.datadog_role.ro_role.id]
+
}
+
# Create a new Datadog user
</pre>
+
resource "datadog_user" "foo" {
 +
  email = "[email protected]"  
 +
 +
  roles = [data.datadog_role.ro_role.id]
 +
}
  
 
== See also ==
 
== See also ==

Revision as of 08:38, 28 June 2024

Advertising: