Azion Terraform Provider v1.x (API v3)
Legacy documentation for Azion Terraform Provider v1.x, compatible with Azion API v3. For new projects, use Terraform Provider v2.0 with API v4.
Terraform is an infrastructure as code tool that makes it possible to manage your infrastructure efficiently through code. The files created to manage your infrastructure can be reused, versioned, and shared, helping you to have a consistent workflow to provision and manage all of your infrastructure throughout its lifecycle.
How the Azion Terraform Provider works
Terraform works based on providers. A provider is in charge of managing the lifecycle of a particular resource type. They are implemented as plugins, which are separate executable code files that may be loaded into Terraform at runtime.
Azion Terraform Provider is an open source project, registered in Terraform Registry that communicates with the Azion APIs, so you can manage your infrastructure hosted on the Azion platform, locally, as code.
Process

Terraform Core: it communicates with the Azion Terraform Provider.
Note: you must have Terraform Core installed in your environment. See how to install it.
Azion Terraform Provider: built in Go, it communicates with the Azion APIs.
First steps
In your .tf file, you must set the Azion Terraform Provider as the provider and set its version as well, such as:
With the provider configured, it is recommended to configure a personal token:
Note: if the personal token is not provided as presented above, a prompt will ask you to inform it when you try to run any Terraform command.
After these steps, you are ready to get started managing your infrastructure using the Azion Terraform Provider.
Here is how your .tf should look like at this point:
Implementation
Migration to v2.0
To migrate your Terraform configurations to v2.0 (API v4), see the Terraform Provider Migration Guide.