From 2e177c139dd4e03979bba342f7c7a24979feca26 Mon Sep 17 00:00:00 2001 From: Isomer Admin <60170571+isomeradmin@users.noreply.github.com> Date: Fri, 20 Dec 2024 09:02:12 +0800 Subject: [PATCH] Create ecg.nanyangjc.moe.edu.sg.ts --- dns/ecg.nanyangjc.moe.edu.sg.ts | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dns/ecg.nanyangjc.moe.edu.sg.ts diff --git a/dns/ecg.nanyangjc.moe.edu.sg.ts b/dns/ecg.nanyangjc.moe.edu.sg.ts new file mode 100644 index 0000000..91e1ecc --- /dev/null +++ b/dns/ecg.nanyangjc.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("ecg.nanyangjc.moe.edu.sg A", { + name: "ecg-nanyangjc-moe-edu-sg", + type: "A", + zoneId: zoneId, + aliases: [ + { + name: "d2rlto6jd2yarb.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + + new Record("ecg.nanyangjc.moe.edu.sg AAAA", { + name: "ecg-nanyangjc-moe-edu-sg", + type: "AAAA", + zoneId: zoneId, + aliases: [ + { + name: "d2rlto6jd2yarb.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + ]; + + return records; +};