From 74f8326ba8f6100c4a01652b56fd8efb065f3758 Mon Sep 17 00:00:00 2001 From: Hsu Zhong Jun <27919917+dcshzj@users.noreply.github.com> Date: Tue, 22 Oct 2024 22:18:05 +0800 Subject: [PATCH] Create togetherforbetter.gov.sg.ts --- dns/togetherforbetter.gov.sg.ts | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dns/togetherforbetter.gov.sg.ts diff --git a/dns/togetherforbetter.gov.sg.ts b/dns/togetherforbetter.gov.sg.ts new file mode 100644 index 0000000..9db8287 --- /dev/null +++ b/dns/togetherforbetter.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("togetherforbetter.gov.sg A", { + name: "togetherforbetter-gov-sg", + type: "A", + zoneId: zoneId, + aliases: [ + { + name: "dcv9yntkvh5kk.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + + new Record("togetherforbetter.gov.sg AAAA", { + name: "togetherforbetter-gov-sg", + type: "AAAA", + zoneId: zoneId, + aliases: [ + { + name: "dcv9yntkvh5kk.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + ]; + + return records; +};