ftl-local-for-api-cloud-modules

Status: IN

`ftl.local` is used for API/cloud modules (equivalent to Ansible's `connection: local`).

Source: entries/2026/05/11/readme.md

Example

# From ftl2-servercraft/scripts/neoforge.py — Linode API runs locally
server = await ftl.local.community.general.linode_v4(
    label=config.name,
    type=config.linode_type,
    region=config.linode_region,
    image=config.linode_image,
    authorized_keys=[ssh_pubkey],
    state="present",
)

# From neoforge.py — Slack notification runs locally
await ftl.local.community.general.slack(
    channel=config.slack_channel,
    msg=f"{config.name}: Server ready at {config.get_ip()}",
)

JSON