terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.0"
    }
    cloudflare = {
      source  = "cloudflare/cloudflare"
      version = "~> 4.0"
    }
  }
  required_version = ">= 1.0"
}

provider "aws" {
  region = "eu-central-1" # Frankfurt
}

provider "cloudflare" {
  api_token = var.cloudflare_api_token != "" ? var.cloudflare_api_token : "dummy" # Dummy token if not provided
}

# Frontend hosted on CloudFront + S3 (see cloudfront-frontend.tf)
# CI/CD handled by Gitea Actions (see .gitea/workflows/deploy.yml)