FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

worldworm/hcloud-selfdestruct: cli tool to self destruct a hetzner cloud server · GitHub

Repository files navigation

💣 hcloud-selfdestruct

A cli tool to self destruct a hetzner cloud server

Why

Are you using a hetzner cloud server for heavy and long-running computing power? But you don't want to have additional costs when the calculation is done?

With hcloud-selfdestruct, the server instance now self-destructs after the computation and generates no further costs.

Warning

This project is in early development and may not work as expected.

Installation

pip install hcloud-selfdestruct

Usage

longrunningcommand && hcloud-selfdestruct --api-token abcdefg &
#-- or --
sleep 1h && hcloud-selfdestruct --api-token abcdefg --server-id 12345678 --apprise-id gotify://example.com/token &

Note: Only the server is deleted. Attachments such as mounted volumes, floating IPs and more will not be removed.

Help

> hcloud-selfdestruct --help
usage: hcloud-selfdestruct [-h] --api-token API_TOKEN [--server-id SERVER_ID] [--apprise-id APPRISE_ID] [--shutdown] [--version]

cli tool to self destruct a hetzner cloud server

options:
  -h, --help            show this help message and exit

  --api-token API_TOKEN, --api API_TOKEN, --token API_TOKEN
                        hetzner cloud api token

  --server-id SERVER_ID, --server SERVER_ID, --id SERVER_ID
                        server id

  --apprise-id APPRISE_ID, --apprise APPRISE_ID, --notify APPRISE_ID
                        apprise notification string

  --shutdown            just shutdown the server and not destroy it

  --version, -v         show program's version number and exit

Find the apprise syntax here: apprise wiki

Find the server id here (enter without "#")

Not yet tested

  • complete self detection

© worldworm 2022-2024
Licensed under MIT

About

cli tool to self destruct a hetzner cloud server

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL