From 58136adb8eabfd07c0b0d9e721ca0755f03ac959 Mon Sep 17 00:00:00 2001 From: Isomer Admin <60170571+isomeradmin@users.noreply.github.com> Date: Thu, 25 Jan 2024 14:55:41 +0800 Subject: [PATCH] Create capvista.com.sg.ts --- dns/capvista.com.sg.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dns/capvista.com.sg.ts diff --git a/dns/capvista.com.sg.ts b/dns/capvista.com.sg.ts new file mode 100644 index 00000000..1b796a90 --- /dev/null +++ b/dns/capvista.com.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("capvista.com.sg A", { + name: "capvista-com-sg", + type: "A", + zoneId: zoneId, + aliases: [ + { + name: "d2e0l86rwuv63r.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + + new Record("capvista.com.sg AAAA", { + name: "capvista-com-sg", + type: "AAAA", + zoneId: zoneId, + aliases: [ + { + name: "d2e0l86rwuv63r.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + ]; + + return records; +};