$ ./guess_the_languageDevOps
DevOps · hard · #264

Someone edits this resource's tags in the cloud console. What does the next plan do?

lifecycle {
  ignore_changes = [tags]
}
  1. Leaves the edited tags in place
  2. Reverts the tags to the config
  3. Destroys and recreates the resource
  4. Fails until the tags are restored
ignore_changes tells Terraform not to plan updates for the listed attributes, so drift in tags (and edits to tags in the config) no longer produce a diff.
Play DevOps ▸