Difference between revisions of "Terraform resource: datadog user"
Jump to navigation
Jump to search
(→Errors) |
|||
(6 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 | ||
== Official example == | == Official example == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | # Create a new Datadog user | + | # Source a role |
− | resource "datadog_user" "foo" { | + | data "datadog_role" "ro_role" { |
− | + | 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]] | |
− | + | ||
+ | [[409 Conflict]] | ||
== See also == | == See also == | ||
* {{tf datadog}} | * {{tf datadog}} | ||
− | |||
[[Category:Datadog]] | [[Category:Datadog]] |
Latest revision as of 13:52, 3 July 2024
Official example[edit]
# Source a role data "datadog_role" "ro_role" { 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[edit]
│ Error: error sending user invitation from
409 Conflict
See also[edit]
Advertising: