Skip to content

Handle sigint to stop gracefully and save the current state. #32658

@speller

Description

@speller

Terraform Version

Any

Use Cases

If something goes wrong and the TF process is going to be killed with sigint or similar, perform a graceful stop and save the current state. Otherwise, TF just dies leaving users with a lot of manual work on cleaning up the infrastructure. Particularly, I had lost the whole state when I had to kill a hanged provisioner.

Attempted Solutions

No existing solutions

Proposal

No response

References

#24276

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions