This commit is contained in:
Mike McFetridge
2026-07-20 09:23:17 -04:00
parent c1315882da
commit 72272e4006
3179 changed files with 562960 additions and 14 deletions
+13
View File
@@ -0,0 +1,13 @@
# Cloudflare Credentials
# ---
# Credential Variables needed for Cloudflare
# Cloudflare Config
variable "cloudflare_email" {
description = "The email address for your Cloudflare account"
type = string
}
variable "cloudflare_api_key" {
description = "The API key for your Cloudflare account"
type = string
}
+12
View File
@@ -0,0 +1,12 @@
# Cloudflare DNS
# ---
# Templates to manage DNS Records on Cloudflare
# A Record
resource "cloudflare_record" "your-dns-record-name" {
zone_id = "your-zone-id"
name = "your-public-dns-value"
value = "your-public-ip-address"
type = "A"
proxied = false # set to true, to hide public IP
}
+19
View File
@@ -0,0 +1,19 @@
# Cloudflare Provider
# ---
# Initial Provider Configuration for Cloudflare
terraform {
required_version = ">= 0.13.0"
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4.0"
}
}
}
provider "cloudflare" {
email = var.cloudflare_email
api_key = var.cloudflare_api_key
}