diff --git a/dns/workbuddy.defence.gov.sg.ts b/dns/workbuddy.defence.gov.sg.ts new file mode 100644 index 0000000..2c68f47 --- /dev/null +++ b/dns/workbuddy.defence.gov.sg.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("workbuddy.defence.gov.sg A", { + name: "workbuddy-defence-gov-sg", + type: "A", + zoneId: zoneId, + aliases: [ + { + name: "d19b6ef8yd01ao.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + + new Record("workbuddy.defence.gov.sg AAAA", { + name: "workbuddy-defence-gov-sg", + type: "AAAA", + zoneId: zoneId, + aliases: [ + { + name: "d19b6ef8yd01ao.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + ]; + + return records; +};