Introspection endpoints

Every /_fakecloud/* endpoint for test assertions, simulation, and state control.

fakecloud exposes /_fakecloud/* endpoints for testing behaviors that AWS runs asynchronously (TTL expiration, scheduled rotation, lifecycle, etc.) and for asserting on state from within tests. The first-party SDKs wrap these into ergonomic helpers — see SDK setup — but the raw endpoints are documented here as the source of truth.

Health

EndpointMethodDescription
/_fakecloud/healthGETReturns {"status":"ok","version":"<version>","services":[...]}. Lists every service fakecloud is serving.
curl http://localhost:4566/_fakecloud/health
{
  "status": "ok",
  "version": "0.9.0",
  "services": [
    "apigatewayv2", "bedrock", "cloudformation", "cognito-idp",
    "dynamodb", "elasticache", "events", "iam", "kinesis", "kms",
    "lambda", "logs", "rds", "s3", "secretsmanager", "ses", "sns",
    "sqs", "ssm", "states", "sts"
  ]
}

Reset

EndpointMethodDescription
/_fakecloud/resetPOSTReset all state across all services.
/_fakecloud/reset/{service}POSTReset only the specified service. Returns {"reset":"<service>"}.

Lambda

EndpointMethodDescription
/_fakecloud/lambda/invocationsGETList all Lambda invocations.
/_fakecloud/lambda/warm-containersGETList warm Lambda containers.
/_fakecloud/lambda/{function-name}/evict-containerPOSTForce a cold start on the next invoke.

SQS

EndpointMethodDescription
/_fakecloud/sqs/messagesGETList all SQS messages across queues.
/_fakecloud/sqs/expiration-processor/tickPOSTExpire SQS messages past retention.
/_fakecloud/sqs/{queue_name}/force-dlqPOSTForce-move messages exceeding maxReceiveCount to DLQ.

SNS

EndpointMethodDescription
/_fakecloud/sns/messagesGETList all published SNS messages.
/_fakecloud/sns/pending-confirmationsGETList subscriptions pending confirmation.
/_fakecloud/sns/confirm-subscriptionPOSTForce-confirm a subscription. Body: {"subscriptionArn":"..."}.

EventBridge

EndpointMethodDescription
/_fakecloud/events/historyGETList all EventBridge events and deliveries.
/_fakecloud/events/fire-rulePOSTFire an EventBridge rule manually. Body: {"busName":"...","ruleName":"..."}.

S3

EndpointMethodDescription
/_fakecloud/s3/notificationsGETList S3 notification events.
/_fakecloud/s3/lifecycle-processor/tickPOSTRun one S3 lifecycle tick. Returns counts.

DynamoDB

EndpointMethodDescription
/_fakecloud/dynamodb/ttl-processor/tickPOSTExpire items whose TTL attribute is in the past.

Secrets Manager

EndpointMethodDescription
/_fakecloud/secretsmanager/rotation-scheduler/tickPOSTRotate secrets whose rotation schedule is due.

SES

EndpointMethodDescription
/_fakecloud/ses/emailsGETList all sent SES emails.
/_fakecloud/ses/inboundPOSTSimulate receiving an inbound email. Evaluates receipt rules and executes actions.

Cognito

EndpointMethodDescription
/_fakecloud/cognito/confirmation-codesGETList all pending confirmation codes.
/_fakecloud/cognito/confirmation-codes/{pool_id}/{username}GETCodes for a specific user.
/_fakecloud/cognito/confirm-userPOSTForce-confirm a user.
/_fakecloud/cognito/tokensGETList all active tokens (without exposing strings).
/_fakecloud/cognito/expire-tokensPOSTExpire tokens for a pool/user.
/_fakecloud/cognito/auth-eventsGETList auth events (signup, signin, failures).

Step Functions

EndpointMethodDescription
/_fakecloud/stepfunctions/executionsGETList executions with status, input, output, timestamps.

API Gateway v2

EndpointMethodDescription
/_fakecloud/apigatewayv2/requestsGETList all HTTP API requests received.

RDS

EndpointMethodDescription
/_fakecloud/rds/instancesGETList fakecloud-managed DB instances with runtime metadata (container id, host port).

Bedrock

EndpointMethodDescription
/_fakecloud/bedrock/invocationsGETList runtime invocations. Each entry has modelId, input, output, timestamp, error.
/_fakecloud/bedrock/models/{model_id}/responsePOSTSet a single custom response for a model (all calls).
/_fakecloud/bedrock/models/{model_id}/responsesPOST / DELETESet or clear prompt-conditional response rules. See the Bedrock testing guide.
/_fakecloud/bedrock/faultsPOST / GET / DELETEQueue, list, or clear fault-injection rules (ThrottlingException, ModelTimeoutException, etc.).

See the Bedrock testing guide for the full test loop using these endpoints.