From 705751ab14b2152808beaaccf86e985339455058 Mon Sep 17 00:00:00 2001 From: Isomer Admin <60170571+isomeradmin@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:26:22 +0800 Subject: [PATCH] Create psg.moe.edu.sg.ts --- dns/psg.moe.edu.sg.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dns/psg.moe.edu.sg.ts 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; +};