Terraform module to create the MX, SPF, DKIM and TXT records that are required to use a custom domain for email with iCloud+ using AWS Route53.
To get started create a new workspace for your domain (replace awslab-cloud
with your domain name):
terraform worksapce new awslab-cloud
Then update the necessary variables in the tfvars
file. In this case it would awslab-cloud.tfvars.
Then apply the configuration:
terraform apply -var-file=envs/awslab-cloud.tfvars
Name | Description | Type | Default | Required |
---|---|---|---|---|
create_hosted_zone | Set to true to create a new hosted zone for the domain | bool |
false |
no |
lookup_mail_zone_id | Set to true to lookup the zone ID using the domain name, hosted zone must be in same aws account | bool |
false |
no |
mail_domain_name | Domain name that will be used for email for iCloud custom domain email | string |
n/a | yes |
mail_domain_zone_id | Set this variable to the Hosted Zone ID of the domain you are using for mail | string |
null |
no |
verifcation_domain_key | Set this to the DKIM value that is provided from iCloud.com when creating custom domain | string |
n/a | yes |
verification_spf_record | Set this to the SPF value that is provided from iCloud.com when creating custom domain | string |
"v=spf1 include:icloud.com ~all" |
no |
verification_txt_record | Set this to TXT value that is provided from iCloud.com when creating custom domain | string |
n/a | yes |