ftl2-hcloud-token-via-secret-bindings

Status: IN

`HCLOUD_TOKEN` is injected into Hetzner modules via secret bindings (e.g., `{"hetzner.hcloud.*": {"api_token": "HCLOUD_TOKEN"}}`), ensuring the token is never logged or visible in scripts.

Source: entries/2026/05/11/examples-09-hetzner-README.md

Example

async with automation(
    secret_bindings={
        "hetzner.hcloud.*": {"api_token": "HCLOUD_TOKEN"},
    },
) as ftl:
    await ftl.hetzner.hcloud.server(
        name="web01", server_type="cx22", image="ubuntu-24.04",
    )

JSON