Skip to content

Commit

Permalink
chore: add back name to ignore_changes rule
Browse files Browse the repository at this point in the history
  • Loading branch information
gberenice committed Mar 5, 2024
1 parent 8857106 commit 44bd5f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ resource "datadog_user" "users" {
name = each.value.name
roles = [for role in each.value.roles : local.roles[role]]
send_user_invitation = each.value.send_user_invitation

# Avoids unnecessary resource recreation/drift when users alter their names.
# Such changes are non-critical and can be safely ignored by Terraform.
lifecycle {
ignore_changes = [name]
}
}

0 comments on commit 44bd5f6

Please sign in to comment.