Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/flaconi/terraform-cloudflare-records
- Owner: Flaconi
- License: mit
- Created: 2021-11-25T17:38:45.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-12T08:31:21.000Z (3 months ago)
- Last Synced: 2024-08-12T09:39:37.234Z (3 months ago)
- Topics: cloudflare, terraform, terraform-module
- Language: Makefile
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
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`
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)**