Provides a Datadog TeamMembership resource. This can be used to create and manage Datadog team_membership.
resource "datadog_team" "foo" {
description = "Example team"
handle = "example-team-updated"
name = "Example Team-updated"
}
resource "datadog_user" "foo" {
email = "new@example.com"
}
# Create new team_membership resource
resource "datadog_team_membership" "foo" {
team_id = datadog_team.foo.id
user_id = datadog_user.foo.id
role = "admin"
}
team_id
(String) ID of the team the team membership is associated with.user_id
(String) The ID of the user.role
(String) The user's role within the team. Valid values are admin
.id
(String) The ID of this resource.Import is supported using the following syntax:
# This resource is imported using team_id and user_id seperated by `:`.
terraform import datadog_team_membership.foo "${team_id}:${user_id}"