records-tls
gendall/records-tls/cloudflare
A Terraform module to create DNS records and TLS certificates
Install
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)
| Name | Type | Description | Default |
|---|---|---|---|
| zone | string | The main domain that DNS records will be provided within. | required |
| records | map | A map of DNS name=addresses pairs, where name is a string and addresses is a tup | required |
| proxied | bool | True if the DNS record gets Cloudflare's origin protection. | false |
Outputs (2)
tls_keytls_certResources (5)
Topics & Tags
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,