refined-analyst-8898
04/17/2023, 5:15 PMlifecycle
directive isn't legal for a module. Is there another way? The issue is that I have lost the ability to manage with TF by installing Rancher because it has placed annotations out-of-band, thereby creating configuration drift. I am not yet using the Rancher provider in this case, but am exploring using TF and Rancher in the same environment as a prerequisite step. The issue I'm facing applies to Kubernetes resources such as Namespaces.
lifecycle {
ignore_changes = [
metadata[0].annotations
]
}