How to use the cloudform.Route53 function in cloudform

To help you get started, we’ve selected a few cloudform examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github matthewkeil / nomad-devops / dist / aws / route53 / ServerRecordSet.js View on Github external
"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");
github matthewkeil / nomad-devops / dist / aws / route53 / ClientRecordSet.js View on Github external
"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");