Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Route53, Fn } from "cloudform";
import { config } from "../../config";
import { pascalCaseDomainName } from "../../lib";
export const ClientRecordSet = new Route53.RecordSet({
Name: Fn.Join(".", [Fn.Ref("SubDomain"), config.ROOT_DOMAIN]),
Type: "A",
HostedZoneId: Fn.ImportValue(`${pascalCaseDomainName(config.ROOT_DOMAIN)}HostedZone`),
AliasTarget: {
DNSName: Fn.GetAtt("ClientDistribution", "DomainName"),
HostedZoneId: "Z2FDTNDATAQYW2"
}
}).dependsOn("ClientDistribution");
import { Route53, Fn } from "cloudform";
import { config } from "../../config";
import { pascalCaseDomainName } from "../../lib";
export const ServerRecordSet = new Route53.RecordSet({
Name: Fn.Join(".", [Fn.Ref("SubDomain"), config.ROOT_DOMAIN]),
Type: "A",
HostedZoneId: Fn.ImportValue(`${pascalCaseDomainName(config.ROOT_DOMAIN)}HostedZone`),
AliasTarget: {
DNSName: Fn.GetAtt("DomainName", "DistributionDomainName"),
HostedZoneId: Fn.GetAtt("DomainName", "DistributionHostedZoneId")
}
}).dependsOn("DomainName");