records-tls

gendall/records-tls/cloudflare

Terraform Module HCL CLOUDFLARE

A Terraform module to create DNS records and TLS certificates

Install
module "records-tls" {
source = "gendall/records-tls/cloudflare"
version = "0.1.1"
}
plain text: /constructs/tfmod-gendall-records-tls-cloudflare/install.txt
⭐ Source on GitHub 📦 Registry page
README

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 ``hcl 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.

Inputs (3)
NameTypeDescriptionDefault
zonestringThe main domain that DNS records will be provided within. required
recordsmapA map of DNS name=addresses pairs, where name is a string and addresses is a tup required
proxiedboolTrue if the DNS record gets Cloudflare's origin protection.false
Outputs (2)
tls_key
tls_cert
Resources (5)
acme_certificateacme_registrationcloudflare_recordrandom_idtls_private_key
Topics & Tags
terraform
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.1
Cloud CLOUDFLARE
★ Stars0
Forks3
Total downloads1.3k
Inputs3
Outputs2
Resources5
Namespacegendall
Updated