Skip to content

Commit

Permalink
Merge pull request #6 from tcarrondo/improve-documentation
Browse files Browse the repository at this point in the history
add documentation
  • Loading branch information
tcarrondo authored Apr 7, 2019
2 parents 91f2d07 + d3e6fe2 commit a3c003a
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
# cloudflare-zone
Setup a zone in Cloudflare
A Terraform module to create a domain in Cloudflare and add DNS the simpleway.

## Usage
```hcl
module "domain_com" {
source = "github.com/tcarrondo/cloudflare-zone"
domain = "domain.com"
ipv4 = ["1.2.3.4"]
ipv6 = ["2607:f0d0:1002:51::4"]
records = [
{
name = "mail"
value = "1.2.3.4"
type = "A"
},
{
name = "${module.domain_com.domain}"
value = "main.${module.domain_com.domain}"
type = "MX"
priority = "10"
proxied = false
},
]
}
```

0 comments on commit a3c003a

Please sign in to comment.