Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gnarea/terraform-cloudflare-gmail
Terraform module to manage DNS records for Gmail on CloudFlare
https://github.com/gnarea/terraform-cloudflare-gmail
cloudflare gmail gsuite terraform
Last synced: 24 days ago
JSON representation
Terraform module to manage DNS records for Gmail on CloudFlare
- Host: GitHub
- URL: https://github.com/gnarea/terraform-cloudflare-gmail
- Owner: gnarea
- License: mit
- Created: 2018-11-22T23:22:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-21T17:58:10.000Z (over 4 years ago)
- Last Synced: 2024-12-08T09:29:01.053Z (about 1 month ago)
- Topics: cloudflare, gmail, gsuite, terraform
- Language: HCL
- Homepage: https://registry.terraform.io/modules/gnarea/gmail/cloudflare
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-cloudflare-gmail
_terraform-cloudflare-gmail_ manages MX and SPF records for Gmail on your CloudFlare-hosted domain.
For example, the following configuration will generate the appropriate DNS records for the domain `example.com`:
```hcl
module "email" {
source = "gnarea/gmail/cloudflare"domain = "example.com"
}
```## Migrating from terraform-gmail
Migrating from [terraform-gmail](https://github.com/gnarea/terraform-gmail) is easy:
1. Change your module's source to `"gnarea/gmail/cloudflare"`, as in the example above.
1. Rename the resources for the MX records (assuming you named your module `email`):
```
terraform state mv module.email.cloudflare_record.main[0] module.email.cloudflare_record.mx[0]
terraform state mv module.email.cloudflare_record.main[1] module.email.cloudflare_record.mx[1]
terraform state mv module.email.cloudflare_record.main[2] module.email.cloudflare_record.mx[2]
terraform state mv module.email.cloudflare_record.main[3] module.email.cloudflare_record.mx[3]
terraform state mv module.email.cloudflare_record.main[4] module.email.cloudflare_record.mx[4]
```
1. Finally, `terraform apply` to create the SPF record. Nothing else must change.