Created
September 4, 2025 15:15
-
-
Save haydenk/b0973b7fe2bc92041ad87583c46e243e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: DNS Host Management | |
| Parameters: | |
| PrimaryDomainName: | |
| Type: String | |
| Resources: | |
| PrimaryDomain: | |
| Type: 'AWS::Route53::HostedZone' | |
| Properties: | |
| Name: !Ref PrimaryDomainName | |
| PrimaryDomainMx: | |
| Type: 'AWS::Route53::RecordSetGroup' | |
| Properties: | |
| HostedZoneId: !GetAtt PrimaryDomain.Id | |
| Comment: 'Creating records for mail server' | |
| RecordSets: | |
| - Name: !Ref PrimaryDomainName | |
| Type: MX | |
| TTL: 300 | |
| ResourceRecords: | |
| - '10 in1-smtp.messagingengine.com' | |
| - '20 in2-smtp.messagingengine.com' | |
| - Name: !Sub "fm1._domainkey.${PrimaryDomainName}" | |
| Type: CNAME | |
| TTL: 300 | |
| ResourceRecords: | |
| - 'fm1.domain.com.dkim.fmhosted.com' | |
| - Name: !Sub "fm2._domainkey.${PrimaryDomainName}" | |
| Type: CNAME | |
| TTL: 300 | |
| ResourceRecords: | |
| - 'fm2.domain.com.dkim.fmhosted.com' | |
| - Name: !Sub "fm3._domainkey.${PrimaryDomainName}" | |
| Type: CNAME | |
| TTL: 300 | |
| ResourceRecords: | |
| - 'fm3.domain.com.dkim.fmhosted.com' | |
| - Name: !Ref PrimaryDomainName | |
| Type: TXT | |
| TTL: 300 | |
| ResourceRecords: | |
| - '"v=spf1 include:spf.messagingengine.com ~all"' | |
| Outputs: | |
| PrimaryDomainNameservers: | |
| Value: !GetAtt PrimaryDomain.NameServers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment