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