Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobbednarz/terraform-module-cloudflare-route53
A Terraform module managing DNS record types between Cloudflare and Route53 without DNS replication.
https://github.com/jacobbednarz/terraform-module-cloudflare-route53
cloudflare dns dns-replication route53 terraform terraform-module
Last synced: 20 days ago
JSON representation
A Terraform module managing DNS record types between Cloudflare and Route53 without DNS replication.
- Host: GitHub
- URL: https://github.com/jacobbednarz/terraform-module-cloudflare-route53
- Owner: jacobbednarz
- License: mit
- Created: 2020-11-30T20:53:38.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-30T21:53:44.000Z (about 4 years ago)
- Last Synced: 2024-10-28T08:27:23.590Z (2 months ago)
- Topics: cloudflare, dns, dns-replication, route53, terraform, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/jacobbednarz/cloudflare-route53/module/latest
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This Terraform module works by unifying the interface to create and manage DNS
records. It helps increase DNS redundancy by keeping records across two
providers (Cloudflare + Route53) without any need for replication.## Example usage
Below we create two records that will be created and managed in both providers.
```hcl
variable "cloudflare_api_token" {}
variable "cloudflare_zone_id" {}
variable "zone_map" {}provider "cloudflare" {
api_token = var.cloudflare_api_token
}provider "aws" {
region = "us-east-1"
}module "example_cname" {
source = "jacobbednarz/cloudflare-route53/module"
zone_map = var.zone_mapzone_id = var.cloudflare_zone_id
name = "notreal"
value = "example.com"
type = "CNAME"
ttl = 300
proxied = false
}module "example_txt" {
source = "jacobbednarz/cloudflare-route53/module"
zone_map = var.zone_mapzone_id = var.cloudflare_zone_id
name = "_verify_something"
value = "some txt verification"
type = "TXT"
ttl = 60
}
```**Applying changes**
```
$ TF_VAR_zone_map='{"7b8373630de363bb741cfa71deadb33f"="Z081478729JWF3A63XVUY"}' \
TF_VAR_cloudflare_api_token=xxxxxx \
TF_VAR_cloudflare_zone_id=xxxxxx \
terraform apply
```