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