diff --git a/dns/singaporetrauma.com.ts b/dns/singaporetrauma.com.ts new file mode 100644 index 0000000..3d302b8 --- /dev/null +++ b/dns/singaporetrauma.com.ts @@ -0,0 +1,34 @@ +import { Record } from "@pulumi/aws/route53"; +import { CLOUDFRONT_HOSTED_ZONE_ID } from "../constants"; + +export const createRecords = (zoneId: string): Record[] => { + const records = [ + new Record("singaporetrauma.com A", { + name: "singaporetrauma-com", + type: "A", + zoneId: zoneId, + aliases: [ + { + name: "d3ryyn6ycqsj7s.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + + new Record("singaporetrauma.com AAAA", { + name: "singaporetrauma-com", + type: "AAAA", + zoneId: zoneId, + aliases: [ + { + name: "d3ryyn6ycqsj7s.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + ]; + + return records; +};