diff --git a/dns/redcapsupport.gri.nhg.com.sg.ts b/dns/redcapsupport.gri.nhg.com.sg.ts new file mode 100644 index 0000000..8420749 --- /dev/null +++ b/dns/redcapsupport.gri.nhg.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("redcapsupport.gri.nhg.com.sg A", { + name: "redcapsupport-gri-nhg-com-sg", + type: "A", + zoneId: zoneId, + aliases: [ + { + name: "d36lcpgb6rkuac.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + + new Record("redcapsupport.gri.nhg.com.sg AAAA", { + name: "redcapsupport-gri-nhg-com-sg", + type: "AAAA", + zoneId: zoneId, + aliases: [ + { + name: "d36lcpgb6rkuac.cloudfront.net", + zoneId: CLOUDFRONT_HOSTED_ZONE_ID, + evaluateTargetHealth: false, + }, + ], + }), + ]; + + return records; +};