Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add the below code on lifecycle to avoid to delete resources #83

Open
eugsim1 opened this issue Jan 18, 2024 · 1 comment
Open

add the below code on lifecycle to avoid to delete resources #83

eugsim1 opened this issue Jan 18, 2024 · 1 comment

Comments

@eugsim1
Copy link
Member

eugsim1 commented Jan 18, 2024

lifecycle {
ignore_changes = [defined_tags, freeform_tags ]
}

add this code to generated resources to let us not to scan and correct the generated code when we need to update tags
with the current setting resources are DESTROYED and REBUILDED when there a tag change

@xs2suruchi
Copy link
Member

Tag changes dont cause resources to be re-built. But they are updated in place. Resource rebuild can happen because of other changes like metadata for instances etc.
However you can put tag changes in ignore list so it doesnt remove the tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants