« Back to Index

Terraform: ignore_changes

View original Gist on GitHub

Tags: #terraform #tf

ignore_changes.md

The ignore_changes feature is intended to be used when a resource is created with references to data that may change in the future, but should not affect said resource after its creation. – Documentation

The pattern is: I want to ensure that this service has a dictionary called “foo” with a key “bar” with an intial value of “baz”, but after that I will managed the key/values externally.

This means you can’t go back and add, edit or delete the data added as part of the HCL. That data will forever exist. New data will be expected to be ‘managed’ (i.e. added, edited, deleted) outside of Terraform.