Skip to main content

Hosted Zone

Provides a Route53 Hosted Zone.

Add one or more records with the Route53 Record resource.

Examples#

Simple HostedZone#

Create a HostedZone with a Route53Domain as a dependency to update automatically the DNS servers.

const domainName = "your.domain.name.com";
const domain = await provider.useRoute53Domain({
name: domainName,
});
const hostedZoneName = `${domainName}.`;
const hostedZone = await provider.makeHostedZone({
name: hostedZoneName,
dependencies: { domain },
properties: ({}) => ({}),
});

Source Code Examples#

Properties#

Dependencies#

Used By#