diff --git a/CHANGELOG.md b/CHANGELOG.md index 7262ee0b8e..50d31a68d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ UPGRADE NOTES: ENHANCEMENTS: - `prevent_destroy` arguments in the `lifecycle` block for managed resources can now use references to other symbols in the same module, such as to a module's input variables. ([#3474](https://github.com/opentofu/opentofu/issues/3474), [#3507](https://github.com/opentofu/opentofu/issues/3507)) +- New `lifecycle` meta-argument `destroy` for altering resource destruction behavior. When set to `false` OpenTofu will not retain resources when they are planned for destruction. ([#3409](https://github.com/opentofu/opentofu/pull/3409)) - OpenTofu now uses the `BROWSER` environment variable when launching a web browser on Unix platforms, as long as it's set to a single command that can accept a URL to open as its first and only argument. ([#3456](https://github.com/opentofu/opentofu/issues/3456)) BUG FIXES: diff --git a/website/docs/language/resources/behavior.mdx b/website/docs/language/resources/behavior.mdx index ea0b1048c3..b752b636eb 100644 --- a/website/docs/language/resources/behavior.mdx +++ b/website/docs/language/resources/behavior.mdx @@ -172,7 +172,7 @@ block for a managed resource: requires replacement, or is explicitly destroyed using the `tofu destroy` command, OpenTofu will destroy the corresponding infrastructure object. Setting this meta-argument to `false` changes this behavior so that OpenTofu will instead - "forget" the resource, removing it from the state without destroying the actual + "forget" the resource instance, removing it from the state without destroying the actual infrastructure object. :::note