@swampadmin/hetzner-cloud
v2026.01.10.0
Manage Hetzner Cloud infrastructure including servers, networks, firewalls, and load balancers.
Features
- Server lifecycle — create, resize, rebuild, snapshot
- Network management — VPCs, subnets, routing
- Firewall rules — stateful rules with label selectors
- Load balancers — HTTP/TCP with health checks
Repository
https://github.com/swamp-club/hetzner-cloud
Install
$ swamp extension pull @swampadmin/hetzner-cloudRelease Notes
New
- Load balancer model with HTTP/TCP support, health checks, and target management
- Server
snapshotmethod for backup workflows - File outputs on server model for audit log export
Fixed
- Network subnet creation now validates CIDR ranges
@swampadmin/hetzner-cloud/serversv1.0.0servers.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| api_token | string | Hetzner Cloud API token |
| region | string | Data center region (e.g. fsn1, nbg1, hel1) |
| dry_run? | boolean | Preview changes without applying |
createcreate operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource display name |
| labels? | record | Key-value labels for resource tagging |
deletedelete operation
| Argument | Type | Description |
|---|---|---|
| id | string | Resource identifier |
| force? | boolean | Skip confirmation and delete immediately |
rebuildrebuild operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
resizeresize operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
snapshotsnapshot operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
Resources
servers.state(persistent)— Managed resource state
servers.lock(ephemeral)— Concurrency lock
Files
servers.log(text/plain)— Operation audit log
servers.json(application/json)— Structured output
@swampadmin/hetzner-cloud/networksv1.0.0networks.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| api_token | string | Hetzner Cloud API token |
| region | string | Data center region (e.g. fsn1, nbg1, hel1) |
| dry_run? | boolean | Preview changes without applying |
createcreate operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource display name |
| labels? | record | Key-value labels for resource tagging |
deletedelete operation
| Argument | Type | Description |
|---|---|---|
| id | string | Resource identifier |
| force? | boolean | Skip confirmation and delete immediately |
add_subnetadd subnet operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
@swampadmin/hetzner-cloud/firewallsv1.0.0firewalls.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| api_token | string | Hetzner Cloud API token |
| region | string | Data center region (e.g. fsn1, nbg1, hel1) |
| dry_run? | boolean | Preview changes without applying |
createcreate operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource display name |
| labels? | record | Key-value labels for resource tagging |
deletedelete operation
| Argument | Type | Description |
|---|---|---|
| id | string | Resource identifier |
| force? | boolean | Skip confirmation and delete immediately |
apply_rulesapply rules operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
@swampadmin/hetzner-cloud/load-balancersv1.0.0load-balancers.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| api_token | string | Hetzner Cloud API token |
| region | string | Data center region (e.g. fsn1, nbg1, hel1) |
| dry_run? | boolean | Preview changes without applying |
createcreate operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource display name |
| labels? | record | Key-value labels for resource tagging |
deletedelete operation
| Argument | Type | Description |
|---|---|---|
| id | string | Resource identifier |
| force? | boolean | Skip confirmation and delete immediately |
add_targetadd target operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
remove_targetremove target operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
Resources
load-balancers.state(persistent)— Managed resource state
load-balancers.lock(ephemeral)— Concurrency lock
2025.09.01.0249.0 KBDec 30, 2025
Add network and firewall models
linux-x86_64linux-aarch64
cloudinfrastructurehetzner
2025.06.15.086.0 KBOct 11, 2025
Initial release with server management
linux-x86_64linux-aarch64
cloudinfrastructurehetzner