Domains
Provides a Route53 Domain.
Example
By using a route53 domain as a dependency to an hostedZone, the nameservers returns by the hosted zone will be used to update the route53 domain's nameserver.
const domainName = "mydomain.com";
exports.createResources = () => [
{
type: "HostedZone",
group: "Route53",
name: `${domainName}.`,
dependencies: () => ({
domain: domainName,
}),
},
{
type: "Domain",
group: "Route53Domains",
name: domainName,
readOnly: true,
},
];