From e7ef9e2a132c46ff62fbaa79d697492d34a0c3c2 Mon Sep 17 00:00:00 2001 From: Hsu Zhong Jun <27919917+dcshzj@users.noreply.github.com> Date: Thu, 15 Aug 2024 17:35:24 +0800 Subject: [PATCH] Create isomer-next-vapt.isomer.gov.sg.ts --- dns/isomer-next-vapt.isomer.gov.sg.ts | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dns/isomer-next-vapt.isomer.gov.sg.ts diff --git a/dns/isomer-next-vapt.isomer.gov.sg.ts b/dns/isomer-next-vapt.isomer.gov.sg.ts new file mode 100644 index 0000000..917c765 --- /dev/null +++ b/dns/isomer-next-vapt.isomer.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("isomer-next-vapt.isomer.gov.sg A", { + name: "isomer-next-vapt-isomer-gov-sg", + type: "A", + zoneId: zoneId, + aliases: [ + { + name: "da8amxe7wsdmh.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + + new Record("isomer-next-vapt.isomer.gov.sg AAAA", { + name: "isomer-next-vapt-isomer-gov-sg", + type: "AAAA", + zoneId: zoneId, + aliases: [ + { + name: "da8amxe7wsdmh.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + ]; + + return records; +};