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