Skip to content

HttpNamespace

Source: src/AWS/CloudMap/HttpNamespace.ts

An AWS Cloud Map HTTP namespace — an API-only service registry. Instances registered in an HTTP namespace are discoverable via the DiscoverInstances API but not via DNS, so no VPC or hosted zone is required.

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.HttpNamespace("AppNamespace", {
description: "API-only service discovery",
});
const service = yield* AWS.CloudMap.Service("Backend", {
namespaceId: namespace.namespaceId,
});