-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #220 from isomerpages/staging
Create scdfcare.scdf.gov.sg.ts
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("scdfcare.scdf.gov.sg A", { | ||
name: "scdfcare-scdf-gov-sg", | ||
type: "A", | ||
zoneId: zoneId, | ||
aliases: [ | ||
{ | ||
name: "d1mup1skyxomep.cloudfront.net", | ||
zoneId: CLOUDFRONT_HOSTED_ZONE_ID, | ||
evaluateTargetHealth: false, | ||
}, | ||
], | ||
}), | ||
|
||
new Record("scdfcare.scdf.gov.sg AAAA", { | ||
name: "scdfcare-scdf-gov-sg", | ||
type: "AAAA", | ||
zoneId: zoneId, | ||
aliases: [ | ||
{ | ||
name: "d1mup1skyxomep.cloudfront.net", | ||
zoneId: CLOUDFRONT_HOSTED_ZONE_ID, | ||
evaluateTargetHealth: false, | ||
}, | ||
], | ||
}), | ||
]; | ||
|
||
return records; | ||
}; |