feat: add provider config

Added config for CloudFlare provider, as well as remote state on
CloudFlare R2 instead of AWS S3.

Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
Lander Van den Bulcke 2025-01-10 17:03:57 +01:00
parent 7a80aeb4d1
commit 6efd720ace
Signed by: lander
GPG key ID: 0142722B4B0C536F
4 changed files with 53 additions and 2 deletions

24
providers.tf Normal file
View file

@ -0,0 +1,24 @@
terraform {
backend "s3" {
bucket = "tf-state"
key = "tf-cloudflare/terraform.tfstate"
region = "auto"
skip_credentials_validation = true
skip_metadata_api_check = true
skip_region_validation = true
skip_requesting_account_id = true
skip_s3_checksum = true
use_path_style = true
endpoints = {
s3 = "https://daf6ae2391d4d68ecf3c5af2f1540f5c.r2.cloudflarestorage.com"
}
}
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "5.0.0-rc1"
}
}
}
provider "cloudflare" {}