Skip to content

Terraform module for creating AWS SES validation for a domain with Cloudflare DNS

License

Notifications You must be signed in to change notification settings

vojtechmares/terraform-cloudflare-aws-ses-verification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Module Cloudflare AWS SES Verification

This is a small module that wraps required Cloudflare and AWS resources for verifying a domain for SES.

DO NOT FORGET: When adding a new second level domain, you must ask AWS support to disable SES sandbox before being able to send mail to other domains.

Example usage

module "verification" {
  source = "vojtechmares/aws-ses-verification/cloudflare"
  version = "0.1.0"

  domain = "example.com"
  zone_id = "<your Cloudflare zone ID>"
}

Requirements

Name Version
terraform >=1.1.0
aws >=4.9.0
cloudflare >=3.12.1

Providers

Name Version
aws >=4.9.0
cloudflare >=3.12.1

Modules

No modules.

Resources

Name Type
aws_ses_domain_dkim.this resource
aws_ses_domain_identity.this resource
aws_ses_domain_identity_verification.this resource
cloudflare_record.dkim resource
cloudflare_record.domain_verification resource
cloudflare_record.spf resource

Inputs

Name Description Type Default Required
domain FQDN for the domain you want to create the SES verification for. string n/a yes
zone_id Cloudflare zone ID string n/a yes

Outputs

No outputs.

About

Terraform module for creating AWS SES validation for a domain with Cloudflare DNS

Topics

Resources

License

Stars

Watchers

Forks

Languages