Unofficial terraform provider for Cleura The European Cloud public cloud. Provider currently supports Gardener based container orchestration engine.
- Cleura Account / API Token
- Terraform CLI version 1.0 and later
Provider supports the following platforms/architectures:
- Linux / AMD64
- Darwin / AMD64
- Darwin / ARM64
- Windows / AMD64
To set up the provider:
- Get Cleura API Token, either via Cleura API directly, or via Cleura CLI
cleura token get
command - Configure provider by either:
- Setting
username
,token
,host
variables in the provider configuration block. - Setting up corresponding environment variables (CLEURA_API_TOKEN, CLEURA_API_USERNAME, CLEURA_API_HOST)
- Setting
config_file
variable in the provider configuration block to a configuration file path. Checkcleura config generate-template
for configuration file template.
- Setting
- Resulting configuration should look like this:
// provider.tf
terraform {
required_providers {
cleura = {
source = "aztekas/cleura"
version = "0.0.4"
}
}
}
provider "cleura" {
/* Configuration via variables
host = "https://rest.cleura.cloud"
username = "your-username"
token = "token"
*/
/* Configuration via config file
config_file = "/home/user/.config/cleura/config"
*/
/* Leave blank if environment variables are used
*/
}
Configuration file example:
active_profile: default
profiles:
default:
username: your-username-here
token: your-token-here
api-url: https://rest.cleura.cloud
Note
Generated tokens are short-lived tokens and will require re-generation once expired.
Warning
Configuration file stores token in open text
Please check /examples
folder for more usage examples.
Basic example:
resource "cleura_shoot_cluster" "test_cluster" {
project = "project-id"
region = "sto2"
name = "test-cluster"
kubernetes_version = "1.29.4"
provider_details = {
worker_groups = [
{
worker_group_name = "wr001"
machine_type = "b.2c4gb"
min_nodes = 2
max_nodes = 3
image_version = "1443.2.0"
}
]
}
}
- Check latest cli version: https://github.com/aztekas/cleura-client-go/releases
- Cleura API Go Client (https://github.com/aztekas/cleura-client-go)
Please refer to a local development setup docs