4 ms·
> Terraform will never delete something you don't tell it to. Not necessarily. With some providers (e.g. Azure), Terraform will fail to recognize automated beh
by anonydsfsfs 5y ago
> Terraform will never delete something you don't tell it to.
Not necessarily. With some providers (e.g. Azure), Terraform will fail to recognize automated behind-the-scenes changes and try to revert them, causing serious breakage. This is why the "ignore_changes" meta-argument exists. See https://itnext.io/how-and-when-to-ignore-lifecycle-changes-in-terraform-ed5bfb46e7ae https://itnext.io/how-and-when-to-ignore-lifecycle-changes-i...
- throwaway290232 5y agoAlso why the create_before_destroy argument exists. Often you have to apply one or the other to a resource, or it simply falls into an infinite loop of creating and deleting the same resource.