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