Skip to content

Commit

Permalink
Merge pull request #69 from isomerpages/staging
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj authored Dec 15, 2023
2 parents b1063c3 + 7e612b4 commit 3bb0938
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
34 changes: 34 additions & 0 deletions dns/hci.edu.sg.ts
Original file line number Diff line number Diff line change
@@ -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("hci.edu.sg A", {
name: "hci-edu-sg",
type: "A",
zoneId: zoneId,
aliases: [
{
name: "d1my63no1r1s2a.cloudfront.net",
zoneId: CLOUDFRONT_HOSTED_ZONE_ID,
evaluateTargetHealth: false,
},
],
}),

new Record("hci.edu.sg AAAA", {
name: "hci-edu-sg",
type: "AAAA",
zoneId: zoneId,
aliases: [
{
name: "d1my63no1r1s2a.cloudfront.net",
zoneId: CLOUDFRONT_HOSTED_ZONE_ID,
evaluateTargetHealth: false,
},
],
}),
];

return records;
};
34 changes: 34 additions & 0 deletions dns/sgwomenintech.sg.ts
Original file line number Diff line number Diff line change
@@ -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("sgwomenintech.sg A", {
name: "sgwomenintech-sg",
type: "A",
zoneId: zoneId,
aliases: [
{
name: "dxk58lybofc5i.cloudfront.net",
zoneId: CLOUDFRONT_HOSTED_ZONE_ID,
evaluateTargetHealth: false,
},
],
}),

new Record("sgwomenintech.sg AAAA", {
name: "sgwomenintech-sg",
type: "AAAA",
zoneId: zoneId,
aliases: [
{
name: "dxk58lybofc5i.cloudfront.net",
zoneId: CLOUDFRONT_HOSTED_ZONE_ID,
evaluateTargetHealth: false,
},
],
}),
];

return records;
};

0 comments on commit 3bb0938

Please sign in to comment.