From e5badb7079d8eb68b2eb575fc6f533eecea7ac03 Mon Sep 17 00:00:00 2001 From: Isomer Admin <60170571+isomeradmin@users.noreply.github.com> Date: Mon, 3 Jun 2024 11:08:43 +0800 Subject: [PATCH] Create publicserviceweek.gov.sg.ts --- dns/publicserviceweek.gov.sg.ts | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dns/publicserviceweek.gov.sg.ts diff --git a/dns/publicserviceweek.gov.sg.ts b/dns/publicserviceweek.gov.sg.ts new file mode 100644 index 00000000..87416656 --- /dev/null +++ b/dns/publicserviceweek.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("publicserviceweek.gov.sg A", { + name: "publicserviceweek-gov-sg", + type: "A", + zoneId: zoneId, + aliases: [ + { + name: "d1a2wwy57fq5hi.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + + new Record("publicserviceweek.gov.sg AAAA", { + name: "publicserviceweek-gov-sg", + type: "AAAA", + zoneId: zoneId, + aliases: [ + { + name: "d1a2wwy57fq5hi.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + ]; + + return records; +};