forked from toolshed/abra-hetzner
This repository has been archived on 2025-11-23 . You can view files and clone it. You cannot open issues or pull requests or push a commit.
3d3afa0a7ccf69275fb7914da4698f92d92e0576
abra-hetzner
Hetzner plugin for abra. See abra for more.
The script can be run on its own like so.
$ ./abra-hetzner my-new-vps cx11 debian-10 --ssh-keys foo@example.com
It assumes a $ABRA_DIR/vendor/jq binary installation of jq.
Hacking
You can read the Hetzner Cloud API docs (e.g. locations endpoint).
Then you can make requests and see what comes out. These values can then fed into this plugin as configurables.
$ export HETZNER_API_TOKEN=<hetzner-api-token>
$ curl -H "Authorization: Bearer $HETZNER_API_TOKEN" 'https://api.hetzner.cloud/v1/locations' | jq '.locations | .[] | .name'`
"fsn1"
"nbg1"
"hel1"
Languages
Shell
95.5%
Makefile
4.5%