Gcore provider
A provider is a plugin that translates Terraform configuration into API calls — it defines the resource types available for use, such as Virtual Machines, networks, and DNS zones. Two major versions of the Gcore provider are published; the right one depends on whether the project is new or existing:
Specify the version in the configuration to avoid unintended upgrades — v0 and v2 use different, incompatible configuration formats.
Provider configuration
Install Terraform first, then add the provider block tomain.tf:
- Provider v2
- Provider v0
Provider v2 uses
api_key for authentication and is auto-generated from the Gcore OpenAPI specification.YOUR_API_KEY with a permanent API token. For existing v0 projects, follow the migration guide to move to v2.