Terraform replaces manual steps in the Gcore Customer Portal with version-controlled configuration files. Describe the desired infrastructure once, and Terraform creates, updates, or deletes Cloud and CDN resources automatically through the Gcore API.Documentation Index
Fetch the complete documentation index at: https://gcore.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
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:| v2 | v0 | |
|---|---|---|
| Authentication | api_key | permanent_api_token |
| Terraform CLI | >= 1.11 | >= 0.13.0 |
| API coverage | Tracks Gcore API automatically | Manual updates |
| Recommended for | New projects | Existing projects |
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.