Terraform module to manage the following Cloudflare resources:
- cloudflare_zone
Copy and paste the following code snippet to your Terraform configuration,
specify the required variables and run the command terraform init.
module "cloudflare_account" {
source = "gitlab.com/terraform-child-modules-48151/terraform-cloudflare-account/local"
version = "1.0.0"
name = "dhoppeIT"
type = "standard"
}
module "cloudflare_zone" {
source = "gitlab.com/terraform-child-modules-48151/terraform-cloudflare-zone/local"
version = "1.0.0"
account = {
id = module.cloudflare_account.id
}
name = "dhoppe.dev"
}| Name | Version |
|---|---|
| terraform | >= 1.0 |
| cloudflare | ~> 5.0 |
| Name | Version |
|---|---|
| cloudflare | ~> 5.0 |
No modules.
| Name | Type |
|---|---|
| cloudflare_zone.this | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| account | The account id | object( { id = string } ) |
n/a | yes |
| name | The domain name | string |
n/a | yes |
| type | The zone type | string |
null |
no |
| Name | Description |
|---|---|
| activated_on | The last time proof of ownership was detected and the zone was made active |
| created_on | When the zone was created |
| development_mode | The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain |
| id | Identifier |
| meta | Metadata about the zone |
| modified_on | When the zone was last modified |
| name_servers | The name servers Cloudflare assigns to a zone |
| original_dnshost | DNS host at the time of switching to Cloudflare |
| original_name_servers | Original name servers before moving to Cloudflare |
| original_registrar | Registrar for the domain at the time of switching to Cloudflare |
| owner | The owner of the zone |
| paused | Indicates whether the zone is only using Cloudflare DNS services |
| status | The zone status on Cloudflare |
Created and maintained by Dennis Hoppe.
Apache 2 licensed. See LICENSE for full details.