Skip to main content

Terraform

NetActuate provides an official Terraform provider that allows you to manage your infrastructure as code. You can provision virtual servers, configure networking, and manage resources using standard Terraform workflows.

Prerequisites

Getting Started

  1. Install the NetActuate Provider from the Terraform Registry.
  2. Configure authentication with your API key.
  3. Define your resources using the provider's resource types.

Quick Example

terraform {
required_providers {
netactuate = {
source = "netactuate/netactuate"
}
}
}

provider "netactuate" {
api_key = var.netactuate_api_key
}

resource "netactuate_server" "web" {
hostname = "web-01"
plan = "VR2048x2x40"
location = "ashburn"
image = "ubuntu-24.04"
ssh_keys = [var.ssh_key_id]
}

Note: Store your API key in a variable or environment variable. Do not hardcode it in your configuration files.

Reference Data

When writing Terraform configurations, you need identifiers for plans, locations, and images:

Documentation

PageDescription
NetActuate ProviderProvider installation and authentication
Terraform OptionsResource and data source reference
Using the Terraform RegistryInstalling the provider from the registry
Redundant BGP Sessions for WorkersConfiguring BGP sessions via Terraform

Note: The NetActuate Terraform provider is open source. Contributions and issue reports are welcome on GitHub.

Need Help?

If you need assistance with Terraform, visit our support page.