Skip to main content

NetActuate Provider

The NetActuate Terraform provider allows you to manage NetActuate infrastructure resources using Terraform or OpenTofu.

Installation

Add the provider to your Terraform configuration:

terraform {
required_providers {
netactuate = {
source = "netactuate/netactuate"
version = "~> 1.0"
}
}
}

Run terraform init to download and install the provider.

Authentication

The provider requires a NetActuate API key. You can generate one in the NetActuate portal under Account -> API Keys. For details on API key setup, see API Access.

Environment Variable

Set the NETACTUATE_API_KEY environment variable:

export NETACTUATE_API_KEY="your-api-key-here"

Then configure the provider without specifying the key:

provider "netactuate" {}

Inline Configuration

Alternatively, pass the key directly (not recommended for version-controlled files):

provider "netactuate" {
api_key = var.netactuate_api_key
}

Define the variable in a variables.tf file:

variable "netactuate_api_key" {
type = string
sensitive = true
}

Note: Never commit API keys to version control. Use environment variables, Terraform variables with .tfvars files (excluded from version control), or a secrets manager.

Provider Arguments

ArgumentDescriptionRequiredDefault
api_keyNetActuate API keyYes (or use env var)NETACTUATE_API_KEY env var
api_urlAPI base URLNohttps://api.netactuate.com

Verification

After configuring the provider, run the following to verify the setup:

terraform init
terraform plan

If authentication is successful, terraform plan will complete without authentication errors.

Need Help?

If you need assistance with the NetActuate provider, visit our support page.