Local emulators. Real API contracts. Part of Mockingbird.
Transport scaffold for Amazon CloudFormation. ESM; Node 22+ or Bun 1.2+.
Usage
import { CloudFormationClient, DescribeStacksCommand } from "@aws-sdk/client-cloudformation"
import { createServer } from "@crvouga/mockingbird-service-cloudformation/server"
// Test setup: start the emulator and point the AWS SDK client your application uses at it.
const emulator = await createServer()
const cloudformation = new CloudFormationClient({
endpoint: emulator.url,
region: "us-east-1",
credentials: { accessKeyId: "fixture", secretAccessKey: "fixture" },
})
// No operation is implemented yet, so every SDK call rejects.
const failure = await cloudformation
.send(new DescribeStacksCommand({}))
.catch((error: Error) => error)
// failure.name === "UnknownOperationException"
await emulator.close() // after the testState lives in SQLite collections and participates in the shared runtime's namespace isolation, reset, timeline, clock, journal, metrics and fault controls. No AWS account is needed.
Planned, not implemented, AWS operations: CreateStack, DescribeStacks, ListStacks, UpdateStack, DeleteStack, GetTemplate, ValidateTemplate, DescribeStackResources, ListStackResources, DescribeStackEvents, CreateChangeSet, DescribeChangeSet, ExecuteChangeSet, DeleteChangeSet, ListChangeSets.
Operations outside this list fail explicitly. This package emulates API state, not AWS infrastructure, production quotas, billing, IAM enforcement, or provider consoles. Service-specific omissions and oracle evidence are recorded in the AWS coverage ledger.
Run bun run parity with LocalStack on http://127.0.0.1:4566; an unavailable oracle fails the run.
No LocalStack run is recorded for this integration. The parity command is a bounded read-only SDK envelope probe, not proof of full vendor equivalence.
Implementation status
No vendor operations are implemented. Requests fail explicitly with UnknownOperationException; transport tests cover this boundary and malformed input. This package is not a usable vendor replacement yet. No LocalStack or live AWS parity is claimed.
Install
bun add @crvouga/mockingbird-service-cloudformationAPI
CloudformationAPI(options?): low-level AWS transport instance withfetchandreset.createRuntime(options?): in-process Fetch API and shared state controls.createServer(options?)from the/serverentry: HTTP listener withurl,runtime, andclose().document,operationIds, andsupportedOperationIds: generated transport contract metadata.
