Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flaconi/terraform-cloudflare-records

Create DNS records in specified Cloudflare Hosted Zone
https://github.com/flaconi/terraform-cloudflare-records

cloudflare terraform terraform-module

Last synced: about 5 hours ago
JSON representation

Create DNS records in specified Cloudflare Hosted Zone

Awesome Lists containing this project

README

        

# terraform-cloudflare-records

Terraform module to create set of DNS records in Cloudflare Hosted Zone.

[![lint](https://github.com/flaconi/terraform-cloudflare-records/workflows/lint/badge.svg)](https://github.com/flaconi/terraform-cloudflare-records/actions?query=workflow%3Alint)
[![test](https://github.com/flaconi/terraform-cloudflare-records/workflows/test/badge.svg)](https://github.com/flaconi/terraform-cloudflare-records/actions?query=workflow%3Atest)
[![Tag](https://img.shields.io/github/tag/flaconi/terraform-cloudflare-records.svg)](https://github.com/flaconi/terraform-cloudflare-records/releases)
[![Terraform](https://img.shields.io/badge/Terraform--registry-cloudflare--records-brightgreen.svg)](https://registry.terraform.io/modules/flaconi/records/cloudflare/)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

## Providers

| Name | Version |
|------|---------|
| [cloudflare](#provider\_cloudflare) | ~> 4.41 |

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | ~> 1.3 |
| [cloudflare](#requirement\_cloudflare) | ~> 4.41 |

## Required Inputs

The following input variables are required:

### [api\_token](#input\_api\_token)

Description: The Cloudflare API token.

Type: `string`

### [domain](#input\_domain)

Description: Cloudflare domain name to create

Type: `string`

### [records](#input\_records)

Description: List of names to create

Type:

```hcl
list(object({
name = string
value = optional(string)
type = string
ttl = optional(number, 1)
proxied = optional(bool, false)
priority = optional(number)
data = optional(object({
flags = number
tag = string
value = string
}))
}))
```

## Optional Inputs

The following input variables are optional (have default values):

### [allow\_overwrite](#input\_allow\_overwrite)

Description: Allow override existing records

Type: `bool`

Default: `false`

## Outputs

| Name | Description |
|------|-------------|
| [records](#output\_records) | Cloudflare Zone DNS Records |
| [zone\_id](#output\_zone\_id) | Cloudflare Zone ID |

## License

**[MIT License](LICENSE)**

Copyright (c) 2021 **[Flaconi GmbH](https://github.com/flaconi)**