Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 777 Bytes

usage.md

File metadata and controls

52 lines (42 loc) · 777 Bytes

Domain (Cloudflare)

Cloudflare Setup for a new SaaS Startup

Includes:

  • Cloudflare Zone
  • Cloudflare SSL Encryption
  • Cloudflare for Teams
  • Gmail MX Records
  • AWS SES

Usage

locals {
  subdomains = [
    {
      name    = "@"
      value   = "longtld.elb.us-west-2.amazonaws.com"
      type    = "CNAME"
      proxied = true
    },
    {
      name    = "app"
      value   = "longtlkd.elb.us-west-2.amazonaws.com"
      type    = "CNAME"
      proxied = true
    }
  ]
}

module "parking" {
  source = "github.com/opszero/terraform-cloudflare-domain"
  domain = "example.com"
  records = local.subdomains
}

Deployment

terraform init
terraform plan
terraform apply -auto-approve

Teardown

terraform destroy -auto-approve