Loading…
Loading documentation...
Infrastructure as Code
Two tracks are shipping today. The Ansible dynamic inventory turns your live servers into a standard Ansible inventory, and a Terraform module imports, manages, drift-detects, and destroys existing instances while reading the live catalog.
terraform apply will not stand one up. Create only through a product on sale in the public store. Servers you already have can be imported and managed as code.Everything below authenticates with a personal access token (sau_…). Use scope instances:read for the Ansible inventory, and instances:write to let Terraform manage or destroy servers.
GET /api/v1/ansible/inventory returns your live instances in the standard Ansible dynamic-inventory shape, grouped by type_*, os_*, status_*, region_*, tag_*, and unreachable. It is a read of existing infrastructure — it never provisions.
Export your token
export SAU_API_TOKEN="sau_xxxxxxxxxxxxxxxxxxxx"Download the ready-to-use inventory script
Ships at /integrations/ansible/serversareup_inventory.py alongside a README, ansible.cfg, and an example playbook.
curl -fsSL https://serversareup.com/integrations/ansible/serversareup_inventory.py \
-o serversareup_inventory.py
chmod +x serversareup_inventory.pyList the inventory
ansible-inventory -i serversareup_inventory.py --listPing every reachable host
ansible all -i serversareup_inventory.py -m pingOr call the endpoint directly
curl -H "Authorization: Bearer $SAU_API_TOKEN" \
https://serversareup.com/api/v1/ansible/inventoryThe module at integrations/terraform/ wraps the community Mastercard/restapi provider and talks to the REST API v1. Use it to import, manage, drift-detect, and destroy servers you already have, and to read the catalog (plans, regions, images) as Terraform data. It does not create new instances — terraform apply will not provision one while the deploy API is pre-GA.
Initialise against the module
export TF_VAR_sau_api_token="sau_xxxxxxxxxxxxxxxxxxxx"
cd integrations/terraform
terraform initImport an existing server
# Bring an existing server under management (id from the dashboard or GET /api/v1/instances)
terraform import restapi_object.web ins_abc123Detect drift
terraform plan # reconcile config against your live fleet (drift detection)Destroy existing infrastructure
terraform destroy # tear down an existing serverSee integrations/terraform/README.md for the exact resource addresses and variables. A native Go provider (terraform-plugin-framework) lives at packages/terraform-provider/ as a Coming-soon source bundle — it is not published to the Terraform Registry and is not an Available product yet. The full reference is in the Terraform Provider guide.