Giter VIP home page Giter VIP logo

robbyoconnor / terraform-cloudflare-fastmail-mx Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 10 KB

A Terraform Module to add the MX, DMARC, DKIM, and SPF records for use with Fastmail.com

Home Page: https://registry.terraform.io/modules/robbyoconnor/fastmail-mx/cloudflare/latest

License: Mozilla Public License 2.0

HCL 100.00%
fastmail terraform cloudflare-dns cloudflare terraform-modules terraform-module

terraform-cloudflare-fastmail-mx's Introduction

Terraform Module to set-up the MX Records for fastmail

This was developed primarily for myself, but I am releasing it in the hopes it helps someone else. This works only with Cloudflare DNS.

This will create the DNS records necessary to set up your domain name with fastmail. This configures SPF, DKIM, and DMARC properly as well.

This can be found on the Terraform Registry.

Example usage

terraform {
  required_providers {
    cloudflare = {
      source  = "cloudflare/cloudflare"
      version = "~> 3.0"
    }
  }
}

provider "cloudflare" {
  api_token = var.cf_api_token
}

module "fastmail" {
  source          = "robbyoconnor/fastmail-mx/cloudflare"
  version         = "1.0.0"
  cf_zone_id      = var.cf_zone_id
  cf_api_token    = var.cf_api_token
  domain_name = "example.com"
}

Requirements

Name Version
cloudflare ~> 3.0

Providers

Name Version
cloudflare ~> 3.0

Modules

No modules.

Resources

Name Type
cloudflare_record.dkim resource
cloudflare_record.dmarc resource
cloudflare_record.mx resource
cloudflare_record.spf resource

Inputs

Name Description Type Default Required
cf_api_token This is the API token. You can obtain it at https://dash.cloudflare.com/profile/api-tokens string n/a yes
cf_zone_id The ID of the cloudflare zone string n/a yes
dmarc DMARC specification (optional) string "" no
domain_name The apex domain name (e.g., example.com) string n/a yes
sub_domain The sub-domain for the MX records, if applicable (optional) string "@" no
ttl TTL for the DNS records (optional) number 300 no

Outputs

No outputs.

terraform-cloudflare-fastmail-mx's People

Contributors

robbyoconnor avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sandipb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.