Files
floci/docs/services/index.md
T
TiM c565398beb feat(bedrock-runtime): stub Converse and InvokeModel for #87 (#486)
Adds a bedrock-runtime service stub so AWS SDK and CLI clients can target
Floci for local development of Bedrock Runtime callers. Dummy responses
only: no real model inference.

- Register bedrock-runtime in ResolvedServiceCatalog under both "bedrock"
  and "bedrock-runtime" credential scopes (boto3 signs with signingName
  "bedrock" while some clients use the endpoint id)
- POST /model/{modelId}/converse returns a fixed assistant message plus
  synthetic usage and latency metrics matching the AWS Converse contract
- POST /model/{modelId}/invoke returns an Anthropic-shaped body for
  anthropic.* and *.anthropic.* model ids, generic {"outputs": [...]}
  otherwise. Request body is passed through as opaque bytes
- {modelId:.+} path regex accepts full ARNs (inference profiles,
  provisioned throughput) in addition to plain ids
- converse-stream and invoke-with-response-stream return 501 so SDKs
  get a clear error instead of 404
- Response building uses JsonNode rather than typed POJOs, avoiding
  native-image reflection registration

13 new integration tests (Converse + InvokeModel happy paths, validation,
inference-profile ids and ARNs, 501 streaming responses). Full suite
remains green: 2263 tests, 0 failures.
2026-04-16 17:13:17 -05:00

4.4 KiB

Services Overview

Floci emulates 33 AWS services on a single port (4566). All services use the real AWS wire protocol, your existing AWS CLI commands and SDK clients work without modification.

This page is the canonical reference for supported service counts and operation counts. Other docs (and the README) should link here rather than duplicating the table.

Service Matrix

Operation counts are exact. For dispatch-table services (Query and JSON 1.1) each count reflects one case per AWS action in the handler. For REST-based services (S3, Lambda, API Gateway v1) the count reflects distinct AWS SDK operations, collapsing routes where one JAX-RS handler fans out via query-string or header markers (e.g. PUT /{bucket}/{key} → PutObject, PutObjectTagging, PutObjectAcl, etc.).

Service Endpoint Protocol Supported operations
SSM POST / + X-Amz-Target: AmazonSSM.* JSON 1.1 12
SQS POST / with Action= param Query / JSON 20
SNS POST / with Action= param Query / JSON 17
S3 /{bucket}/{key} REST XML 58
DynamoDB POST / + X-Amz-Target: DynamoDB_20120810.* JSON 1.1 20
DynamoDB Streams POST / + X-Amz-Target: DynamoDBStreams_20120810.* JSON 1.1 4
Lambda /2015-03-31/functions/... REST JSON 30
API Gateway v1 /restapis/... REST JSON 62
API Gateway v2 /v2/apis/... REST JSON 21
IAM POST / with Action= param Query 68
STS POST / with Action= param Query 7
Cognito POST / + X-Amz-Target: AWSCognitoIdentityProviderService.* JSON 1.1 40
KMS POST / + X-Amz-Target: TrentService.* JSON 1.1 23
Kinesis POST / + X-Amz-Target: Kinesis_20131202.* JSON 1.1 24
Secrets Manager POST / + X-Amz-Target: secretsmanager.* JSON 1.1 16
Step Functions POST / + X-Amz-Target: AmazonStatesService.* JSON 1.1 18
CloudFormation POST / with Action= param Query 18
EventBridge POST / + X-Amz-Target: AmazonEventBridge.* JSON 1.1 16
EventBridge Scheduler /schedules/*, /schedule-groups/* REST JSON 9
CloudWatch Logs POST / + X-Amz-Target: Logs.* JSON 1.1 17
CloudWatch Metrics POST / with Action= or JSON 1.1 Query / JSON 11
ElastiCache POST / with Action= param + TCP proxy Query + RESP 8
RDS POST / with Action= param + TCP proxy Query + wire 14
ECS POST / + X-Amz-Target: AmazonEC2ContainerServiceV20141113.* JSON 1.1 58
EC2 POST / with Action= param EC2 Query 61
ACM POST / + X-Amz-Target: CertificateManager.* JSON 1.1 12
ECR POST / + X-Amz-Target: AmazonEC2ContainerRegistry_V20150921.* (control plane) and /v2/... (data plane via registry:2) JSON 1.1 + OCI Distribution 17
SES POST / with Action= param Query 16
SES v2 /v2/email/* REST JSON 9
OpenSearch /2021-01-01/opensearch/... REST JSON 24
AppConfig /applications/..., /deploymentstrategies/... REST JSON 16
AppConfigData /configurationsessions, /configuration REST JSON 2
Bedrock Runtime /model/{modelId}/converse, /model/{modelId}/invoke REST JSON 2 (stub; streaming returns 501)

Lambda, ElastiCache, RDS, and ECS spin up real Docker containers and support IAM authentication and SigV4 request signing, the same auth flow as production AWS.

ECR runs a shared registry:2 container so the stock docker client can push and pull image bytes against repositories returned by the AWS-shaped control plane.

Common Setup

Before calling any service, configure your AWS client to point to Floci:

export AWS_ENDPOINT_URL=http://localhost:4566
export AWS_DEFAULT_REGION=us-east-1
export AWS_ACCESS_KEY_ID=test
export AWS_SECRET_ACCESS_KEY=test

AWS_ENDPOINT_URL is the standard env var recognised by the AWS CLI v2 and AWS SDKs v2+, so no --endpoint-url flag is needed on each command.