Skip to content

Incremental backend persistence during Terraform operations #20718

@alexng-canuck

Description

@alexng-canuck

Current Terraform Version

terraform v0.11.7

Use-cases

In the course of using remote backends (such as HTTP), Terraform may crash or otherwise be forced to exit in the middle of an "apply" or "destroy" operation.

Currently, backend Puts are generally invoked only once at the end of such operations. This can lead to dangling of any resources that were created before an unexpected Terraform exit occurred.

Is it possible to have incremental backend Put (or persistence) of remote state to guard against such cases?

The timing of the Put calls might be analogous to the WriteState calls that occur when using a local backend that writes to a file.

Attempted Solutions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions