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