2024-09-28 19:15:56 +02:00
|
|
|
|
|
|
|
|
terraform {
|
|
|
|
|
required_version = "~>1.8"
|
|
|
|
|
required_providers {
|
|
|
|
|
scaleway = {
|
|
|
|
|
source = "scaleway/scaleway"
|
|
|
|
|
version = "~>2.13"
|
|
|
|
|
}
|
2025-03-15 22:51:05 +01:00
|
|
|
# Contabo provider is not working for now, so we can't use it
|
|
|
|
|
# contabo = {
|
|
|
|
|
# source = "contabo/contabo"
|
|
|
|
|
# version = "0.1.26"
|
|
|
|
|
# }
|
2024-10-05 18:11:41 +02:00
|
|
|
cloudns = {
|
|
|
|
|
source = "ClouDNS/cloudns"
|
2024-10-05 18:15:43 +02:00
|
|
|
version = "~>1.0"
|
2024-10-05 18:11:41 +02:00
|
|
|
}
|
2024-09-28 19:15:56 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-05 18:11:41 +02:00
|
|
|
provider "cloudns" {
|
|
|
|
|
auth_id = var.cloudns_auth_id
|
|
|
|
|
password = var.cloudns_password
|
|
|
|
|
}
|
2024-09-28 19:15:56 +02:00
|
|
|
|
|
|
|
|
provider "scaleway" {
|
|
|
|
|
zone = "fr-par-2"
|
|
|
|
|
region = "fr-par"
|
|
|
|
|
access_key = var.scaleway_access_key
|
|
|
|
|
secret_key = var.scaleway_secret_key
|
|
|
|
|
organization_id = var.scaleway_organization_id
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Configure your Contabo API credentials
|
2025-03-15 22:51:05 +01:00
|
|
|
# provider "contabo" {
|
|
|
|
|
# oauth2_client_id = var.contabo_client_id
|
|
|
|
|
# oauth2_client_secret = var.contabo_client_secret
|
|
|
|
|
# oauth2_user = var.contabo_api_user
|
|
|
|
|
# oauth2_pass = var.contabo_api_password
|
|
|
|
|
# }
|