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