From 41247de25408b3ea7973791310ea4c5de6ce228f Mon Sep 17 00:00:00 2001 From: Isomer Admin <60170571+isomeradmin@users.noreply.github.com> Date: Wed, 11 Sep 2024 17:24:59 +0800 Subject: [PATCH] Create iyptsypt.moe.edu.sg.ts --- dns/iyptsypt.moe.edu.sg.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dns/iyptsypt.moe.edu.sg.ts diff --git a/dns/iyptsypt.moe.edu.sg.ts b/dns/iyptsypt.moe.edu.sg.ts new file mode 100644 index 0000000..13cba0d --- /dev/null +++ b/dns/iyptsypt.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("iyptsypt.moe.edu.sg A", { + name: "iyptsypt-moe-edu-sg", + type: "A", + zoneId: zoneId, + aliases: [ + { + name: "dykcya1b7k9yw.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + + new Record("iyptsypt.moe.edu.sg AAAA", { + name: "iyptsypt-moe-edu-sg", + type: "AAAA", + zoneId: zoneId, + aliases: [ + { + name: "dykcya1b7k9yw.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + ]; + + return records; +};