Skip to main content
The OnetSolutions provider lets you describe your infrastructure in configuration files and create, change or remove it with terraform apply. The same configuration works with Terraform and OpenTofu: both install the provider from their own registry.
Prerequisites
  • An OnetSolutions account
  • An API key
  • Terraform 1.5 or later, or OpenTofu 1.6 or later

Get started

1

Create an API key

Create an API key in the console. It acts with your rights, in every organization and project you can reach.
2

Export it

Keep the key out of your configuration files by passing it in an environment variable:
3

Declare the provider

4

Apply

When your account has several organizations or projects, set organization_id and project_id on the provider, or on each resource.

What you can manage

Actions also restart an instance, reinstall it from an image or restore one of its backups, straight from your configuration. Every resource has its page, with examples, in the provider documentation.
Creating an instance, a web hosting or a domain places an order, billed like an order from the console. The plan tells you before anything is ordered or cancelled.

Bring existing resources under management

Everything you created in the console can be imported, with an import block or terraform import. Each resource page gives its import ID:

Get help

For your account, billing or the API, open a ticket from the console. To report a bug or suggest a feature for the provider, open an issue on its repository.