gkdevops /
terraform-code
This repository contains code to learn terraform automation through HCL
45/100 healthLoading repository data…
jabercrombia / repository
This repository contains Terraform infrastructure for managing Cloudflare DNS records that route a domain to a Vercel-hosted application. It centralizes DNS configuration as code to ensure consistent, version-controlled deployments with no manual Cloudflare changes.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This document defines a production-safe setup for managing DNS with Terraform and Cloudflare while deploying a frontend on Vercel.
Architecture flow:
Terraform
↓
Cloudflare DNS
↓
Vercel Hosting
↓
Next.js App
Only use these record types:
resource "cloudflare_record" "root" {
zone_id = var.zone_id
name = "@"
type = "CNAME"
content = "cname.vercel-dns.com"
proxied = true
}
resource "cloudflare_record" "www" {
zone_id = var.zone_id
name = "www"
type = "CNAME"
content = "cname.vercel-dns.com"
proxied = true
}
resource "cloudflare_record" "blog_a_1" {
zone_id = var.zone_id
name = "blog"
type = "A"
content = "162.159.153.4"
proxied = false
}
resource "cloudflare_record" "blog_a_2" {
zone_id = var.zone_id
name = "blog"
type = "A"
content = "162.159.152.4"
proxied = false
}
terraform plan
terraform apply
NEVER skip plan in production.
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4.0"
}
}
}
www as primary domainSelected from shared topics, language and repository description—not editorial ratings.
gkdevops /
This repository contains code to learn terraform automation through HCL
45/100 healthinderpal2406 /
This repository contains practice examples from books on Terraform written by James Turnbull, Yevgeniy Brikman. Also this repository contains practice examples from Udemy course on Terraform.
40/100 healthinderpal2406 /
This repository contains configuration files for a basic VPC module, which can be imported into other terraform configuration files.
dig jabercrombia.com
dig www.jabercrombia.com
dig blog.jabercrombia.com
Expected: CNAME resolution via Cloudflare edge for root/www; A record resolution for blog
curl -I https://jabercrombia.com
Expected:
Cause: incorrect SSL mode in Cloudflare
Fix:
Cause: A records still exist
Fix:
Cause: manual Cloudflare changes
Fix:
terraform state list
terraform apply -refresh-only
When correctly configured:
This setup ensures:
End of guide.
deshpandead-spring2021 /
This repository contains terraform code for setting up infrastructure configurations. Terraform is a code tool from HahiCorp. It is a tool for building, changing and managing infrastructure in a safe, repeatable way. Developers and Infrastructure teams can use Terraform to mange environments with a configuration language called the HashiCorp Configuration Language (HCL) for human readable, automated deployments.
27/100 health