Skip to content

gendall/terraform-cloudflare-records-tls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare Records TLS

A Terraform module that will create multiple DNS A records and also create a TLS certificate that is valid for all records.

The module uses Cloudflare to create the DNS records and ACME with Let's Encrypt to generate the TLS certificate.

Usage

provider "cloudflare" {
  version = "~> 1.17"
}

provider "acme" {
  version = "~> 1.4"
  server_url = "https://acme-v02.api.letsencrypt.org/directory"
}

provider "random" {
  version = "~> 2.2"
}

provider "tls" {
  version = "~> 2.1"
}

module "dns" {
  source  = "gendall/records-tls/cloudflare"
  zone    = "gendall.io"
  records = {
    "graph" = "1.2.3.4"
  }
}

Deployment

This role will be automatically built and deployed to Terraform Registry when a Semver tag is pushed to the repo.

About

Terraform module to create DNS records and TLS certificates

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages