Skip to content

PublicDnsNamespace

Source: src/AWS/CloudMap/PublicDnsNamespace.ts

An AWS Cloud Map public DNS namespace — a service registry backed by a Route 53 public hosted zone, so registered instances are discoverable on the public internet via DNS as well as via the DiscoverInstances API.

The hosted zone incurs standard Route 53 charges while the namespace exists, and the namespace name is only useful if you control the domain.

Namespace creation and deletion are asynchronous — the provider polls the Cloud Map operations API (bounded) until they complete.

import * as AWS from "alchemy/AWS";
const namespace = yield* AWS.CloudMap.PublicDnsNamespace("PublicNamespace", {
name: "discovery.example.com",
});