2025-02-14 15:55:04 -05:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
2025-02-27 22:53:30 -05:00
|
|
|
desec = {
|
|
|
|
source = "Valodim/desec"
|
|
|
|
version = "0.5.0"
|
|
|
|
}
|
2025-02-14 15:55:04 -05:00
|
|
|
sops = {
|
2025-02-14 17:48:41 -05:00
|
|
|
source = "carlpett/sops"
|
2025-02-14 15:55:04 -05:00
|
|
|
version = "1.1.1"
|
|
|
|
}
|
2025-02-27 01:13:34 -05:00
|
|
|
dnsimple = {
|
|
|
|
source = "dnsimple/dnsimple"
|
|
|
|
version = "1.8.0"
|
|
|
|
}
|
2025-02-14 15:55:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
backend "s3" {
|
2025-02-14 17:48:41 -05:00
|
|
|
bucket = "tfstate" # Name of the S3 bucket
|
|
|
|
endpoints = {
|
|
|
|
s3 = "http://192.168.76.2:8502" # Minio endpoint
|
2025-02-27 01:13:34 -05:00
|
|
|
#s3 = "http://alicehuston.duckdns.org" # Minio endpoint
|
2025-02-14 17:48:41 -05:00
|
|
|
}
|
|
|
|
key = "dns-management/desec-io.tfstate" # Name of the tfstate file
|
|
|
|
workspace_key_prefix = "tfstate"
|
|
|
|
|
2025-02-14 15:55:04 -05:00
|
|
|
|
2025-02-14 17:48:41 -05:00
|
|
|
profile = "minio" # aws profile
|
|
|
|
region = "us-east-1" # Region validation will be skipped
|
|
|
|
skip_credentials_validation = true # Skip AWS related checks and validations
|
|
|
|
skip_requesting_account_id = true
|
|
|
|
skip_metadata_api_check = true
|
|
|
|
skip_region_validation = true
|
|
|
|
skip_s3_checksum = true
|
|
|
|
use_path_style = true # Enable path-style S3 URLs (https://<HOST>/<BUCKET> https://developer.hashicorp.com/terraform/language/settings/backends/s3#use_path_style
|
2025-02-14 15:55:04 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-14 17:48:41 -05:00
|
|
|
provider "sops" {}
|
2025-02-14 15:55:04 -05:00
|
|
|
|
2025-02-27 22:53:30 -05:00
|
|
|
provider "desec" {
|
|
|
|
api_token = data.sops_file.secrets.data["desec.api"]
|
|
|
|
}
|
|
|
|
|
2025-02-27 01:13:34 -05:00
|
|
|
provider "dnsimple" {
|
|
|
|
account = data.sops_file.secrets.data["dnsimple.account"]
|
|
|
|
token = data.sops_file.secrets.data["dnsimple.token"]
|
2025-02-14 15:55:04 -05:00
|
|
|
}
|