Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog

Loading…

Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Docs
  • Documentation Hub
  • Technical Knowledge Library
    Runbooks & 187 Blueprints
  • Choose a Product
    VMs, Containers & Cloud
  • First Linux Server
    SSH, Firewall & Apps
  • Windows Server 2025
    BYOL & Remote Desktop
  • Remote Access
  • Troubleshooting
  • FAQ
  • All Product Guides
    29 Step-by-Step Guides
  • Cloud & SaaS Catalog
    112 Cloud & SaaS Offerings
  • Azure Cloud Storage
    Hot/Cool/Archive & WORM
  • Resource Manager & RBAC
    Groups, Tags & Locks
  • Multi-Model Cloud DB
    JSONB, SQL & pgvector
  • Cloud Identity & ZTNA
    OIDC, SCIM & PIM
  • Key Vault & KMS
    Secrets & Envelope Keys
  • Cloud SIEM, SOAR & DLP
    Posture & Threat Response
  • API Gateway & Cloud DNS
    Edge WAF & DNS Zones
  • Serverless, Workflows & IoT
    Functions, Queues & DAGs
  • SaaS, Governance & Vault
    Budgets & Off-Host GRS
  • Linux Systems & Kernel
    SSH, UFW, sysctl & OOM
  • Self-Hosted Apps & Stacks
    Caddy, Nextcloud & Auth
  • Build Web Apps with AI
  • Next.js and React
  • TypeScript and Node.js
  • npm and Tooling
  • Data and APIs
  • Deploy and Operate
  • Tutorials
  • Infrastructure
  • Automation & Regions
  • API Overview
  • API v1 Reference
    Endpoints & 23 Scopes
  • MCP Server
    129 AI Agent Tools
  • Swagger / OpenAPI 3.1
  • API Playground
  • Versioning & Sunset
  • API Token Security
    Authentication & Tokens
  • Instances API
    Compute Resources
  • Networking API
    Networks & Ports
  • Storage API Availability
    Volumes & Backups
  • Webhooks & Events
    Event Notifications
  • Rate Limits & Best Practices
    Throttling & Retries
  • sau CLI Reference
    34 Commands (v0.2)
  • Browser Web CLI
  • SDKs
  • Infrastructure as Code
    Terraform & Ansible
  • Code Examples
  • CLI & SDK Guides
  • Security Guides
  • Security at a Glance
  • Zero Trust Architecture
  • Live Trust Center
  • Compliance
Need help?

Loading documentation...

Documentation/cli tools

Terraform Provider

Import, manage, drift-detect, and destroy existing servers with Terraform via the community restapi module; create new servers in the dashboard.

Advanced
10 min
Updated 2026-07-10

Deploy Ready-to-Run Infrastructure in Seconds

Linux VMs from $6/mo · Pooled Virtual Datacenters from $12/mo · Use code WELCOME20 for 20% off your first order.

Browse ServersView Pricing

Manage your existing Servers Are Up fleet as code. Today this works through a Terraform module at integrations/terraform/ that wraps the community Mastercard/restapi provider and talks to the REST API v1. You can import, manage, drift-detect, and destroy existing instances, and read the catalog (plans, regions, images) as Terraform data.

What Terraform does — and does not — do today. The module manages servers that already exist. It does not create new servers, so terraform apply will not stand up a brand-new instance. Buy the server in the dashboard or at checkout, then import it into Terraform state. The native Go provider is Coming soon; source exists in packages/terraform-provider/, but no provider is published to the Terraform Registry.

1. Configure the provider

The module uses the community REST-API provider under the hood. Authenticate with a personal access token — scope instances:read to read and plan, instances:write to manage or destroy. Create one under API keys.

terraform {
  required_providers {
    restapi = {
      source  = "Mastercard/restapi"
      version = "~> 1.20"
    }
  }
}

provider "restapi" {
  uri                  = "https://serversareup.com/api/v1"
  write_returns_object = true

  headers = {
    Authorization  = "Bearer ${var.sau_api_token}"
    "Content-Type" = "application/json"
  }
}

variable "sau_api_token" {
  type      = string
  sensitive = true # export TF_VAR_sau_api_token=sau_...
}

Best practice: keep your token in an environment variable or secrets manager (TF_VAR_sau_api_token) — never commit it.

2. Initialise the module

export TF_VAR_sau_api_token="sau_xxxxxxxxxxxxxxxxxxxx"
cd integrations/terraform
terraform init

3. Import an existing server

Grab the instance id from the dashboard or the API (GET /api/v1/instances), then bring it under management:

terraform import restapi_object.web ins_abc123

4. Detect drift and plan changes

terraform plan

Terraform reconciles your configuration against the live state of your fleet and reports what has drifted. Nothing changes until you run terraform apply — and apply manages existing resources; it does not provision new ones.

5. Destroy existing infrastructure

terraform destroy

Read the catalog as data

Reference real plan, region, and image ids by reading the catalog through the same provider:

# Products with exact public status
data "restapi_object" "plans" {
  path         = "/products"
  search_key   = "type"
  search_value = "vps"
}

See integrations/terraform/README.md for the exact resource addresses, variables, and worked examples that ship with the module.

Native provider (Coming soon)

A native provider built on terraform-plugin-framework lives at packages/terraform-provider/, but it is Coming soon and is not on the Terraform Registry. It remains outside the supported public path until both the provider and exact create/apply lifecycle are Available.

Next steps

  • Infrastructure as Code overview
  • REST API v1
  • sau CLI

Related Articles

Go SDK

Read more

CLI Installation

Read more

Cloud-Init Scripts

Read more

Frequently Asked Questions

What does the Terraform Provider documentation guide cover?
Import, manage, drift-detect, and destroy existing servers with Terraform via the community restapi module; create new servers in the dashboard. It is rated advanced difficulty (10 min) and applies to Servers Are Up infrastructure and workflows.
Can I manage or automate these steps through the Servers Are Up dashboard, REST API v1, or MCP server?
Yes. Every Servers Are Up server includes browser-based SSH, WebRDP, and VNC console access in the dashboard, plus programmatic control via the REST API v1 (/api/v1) and hosted Model Context Protocol server (/api/mcp/v1) using a scoped Personal Access Token.

Need hands-on help with Terraform Provider?

Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.

Was this article helpful?

On this page

1. Configure the provider2. Initialise the module3. Import an existing server4. Detect drift and plan changes5. Destroy existing infrastructureRead the catalog as dataNative provider (Coming soon)Next steps
Need Live Commands?

Open Aria in Wide Engineering Mode for distro-specific commands, compose tweaks, and isolated environment troubleshooting.

Knowledge Library