-
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 #205 from isomerpages/staging
Create onestoppayroll.gov.sg.ts
- Loading branch information
Showing
2 changed files
with
36 additions
and
2 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
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("onestoppayroll.gov.sg A", { | ||
name: "onestoppayroll-gov-sg", | ||
type: "A", | ||
zoneId: zoneId, | ||
aliases: [ | ||
{ | ||
name: "d25behx5zluwox.cloudfront.net", | ||
zoneId: CLOUDFRONT_HOSTED_ZONE_ID, | ||
evaluateTargetHealth: false, | ||
}, | ||
], | ||
}), | ||
|
||
new Record("onestoppayroll.gov.sg AAAA", { | ||
name: "onestoppayroll-gov-sg", | ||
type: "AAAA", | ||
zoneId: zoneId, | ||
aliases: [ | ||
{ | ||
name: "d25behx5zluwox.cloudfront.net", | ||
zoneId: CLOUDFRONT_HOSTED_ZONE_ID, | ||
evaluateTargetHealth: false, | ||
}, | ||
], | ||
}), | ||
]; | ||
|
||
return records; | ||
}; |