From 65cd12f581a31d10828e2eddc334672f0c7f25c2 Mon Sep 17 00:00:00 2001 From: Isomer Admin <60170571+isomeradmin@users.noreply.github.com> Date: Thu, 1 Aug 2024 09:13:02 +0800 Subject: [PATCH] Create eponline.mom.gov.sg.ts --- dns/eponline.mom.gov.sg.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dns/eponline.mom.gov.sg.ts diff --git a/dns/eponline.mom.gov.sg.ts b/dns/eponline.mom.gov.sg.ts new file mode 100644 index 0000000..57272d0 --- /dev/null +++ b/dns/eponline.mom.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("eponline.mom.gov.sg A", { + name: "eponline-mom-gov-sg", + type: "A", + zoneId: zoneId, + aliases: [ + { + name: "d3jvun56jcyu3k.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + + new Record("eponline.mom.gov.sg AAAA", { + name: "eponline-mom-gov-sg", + type: "AAAA", + zoneId: zoneId, + aliases: [ + { + name: "d3jvun56jcyu3k.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + ]; + + return records; +};