* feat(servicequotas,ram): add Service Quotas and RAM sharing stub
Two Landing Zone Accelerator pipeline prerequisites:
- servicequotas: ListServiceQuotas/GetServiceQuota (+ AWS-default
variants) over JSON 1.1 with curated real quota codes for codebuild
and lambda, deterministic generated quotas for other services, and
offset-token pagination
- ram: EnableSharingWithAwsOrganization returning {returnValue: true}
* feat(ram): model resource shares with the reads LZA's TGW share flow needs
RamController previously registered only /enablesharingwithawsorganization;
every other restJson1 RAM path fell through to S3's /{bucket} template route
and returned an XML error the LZA Lambdas' JSON parser choked on
(SyntaxError: Unexpected token '<'). Adds CreateResourceShare,
GetResourceShares (SELF vs OTHER-ACCOUNTS visibility incl. org/OU
principals), GetResourceShareInvitations (always empty — organization
sharing auto-accepts, matching real AWS), and ListResources with RAM
resource-type derivation.
* fix(ram): show every non-owned share to OTHER-ACCOUNTS callers
Launched-container credentials resolve to the emulator default account,
so LZA's Custom::GetResourceShare Lambda never matches an account-ID
principal check for the account it actually runs in. Principal-based
visibility hid IPAM pool shares from the accepting NetworkVpcStack while
org-ARN shares (TGW) passed, failing Network_VPCs. The Lambda filters
client-side by owningAccountId + name, so returning all non-owned shares
is safe.
* feat(servicequotas): add RequestServiceQuotaIncrease
Persists the requested increase and returns a RequestedServiceQuotaChange
the subsequent Get/List operations can read back. Limitations documented in
docs/services/servicequotas.md.
* fix(config): restore EmrServerless config body lost in rebase
The rebase onto upstream/main collided where both upstream and this branch
declare a new service config interface sharing a trailing body; the
EmrServerless interface was left open, so the file did not parse.
* fix(ram): persist resource shares
* feat(ram): add principal associations and resource-share lifecycle
* fix(test): conform RAM storage test doubles to upstream StorageFactory API
e9826026 introduced SharedStorageFactory overriding StorageFactory.create with
the pre-upstream return type StorageBackend<String,V>; upstream now returns
AccountAwareStorageBackend<V>. Matches the template used by upstream's own
CodeBuildServicePersistenceTest.
* fix(ram): restrict resource-share mutations to the owning account
Every mutating RAM operation resolved the share ARN with a global
all-accounts scan, so any caller holding an ARN could rename, retag,
associate resources into, or delete another account's resource share.
Thread the caller's account into the mutation paths and resolve the
share only within it; a non-owner now gets the same
UnknownResourceException an unknown ARN gets, matching AWS, which
resolves share ARNs inside the caller's account. Read visibility under
OTHER-ACCOUNTS is unchanged.
* fix(ram): return 400 SerializationException for a malformed request body
An unparseable body left readTree throwing UncheckedIOException, which
escaped the controller and surfaced as a 500 InternalFailure. Reject it
with the modeled restJson1 client error instead.
* fix(config): restore the bedrock-agent-core-control enabled flag
A rebase left the key with a null body in both the main and test
application.yml, silently dropping the service's enabled flag.
* docs(servicequotas): fix the docs path in the consumer test javadoc
* docs: correct the service count and the Service Quotas and RAM matrix rows
docs/index.md still claimed 75 services and listed RAM under JSON 1.1;
the canonical count in docs/services/index.md is 78 and RAM speaks
restJson1. Bring the Service Quotas row up to its five handled actions
and the RAM row up to its twelve REST operations.
* docs(tooling): acknowledge the RAM controller in the docs registry
RAM's action table is hand-written and carries a method-and-path column
the generator does not emit, so register it as a deferred handler rather
than a rest-mode source.
* test(ram): cover owner mutation over HTTP and pin the non-owner error message
The ownership checks were asserted only against the service; nothing
exercised the caller account the controller now threads through, so a
mismatch between the identity stamped at create time and the one
resolved at delete time would have gone unnoticed. Select the existing
SELF assertion by share name, since the store is shared across the
class.
* docs(ram): generate the action table from the controller
The RAM table was hand-written and only acknowledged in the docs
registry, so the drift sentinel could never fire on it. Fold the method
and path into each description the way the FIS REST controller's doc
does, add the generator markers, and register the controller as a
rest-mode source. Also record that mutations are owner-only.
* fix(ram): enforce the modeled resourceOwner enum on the share read paths
GetResourceShares, ListPrincipals and ListResources all read resourceOwner and
fed it to a two-way visibility fork: "SELF" meant owned shares, and literally
anything else meant OTHER-ACCOUNTS. The model enumerates exactly SELF and
OTHER-ACCOUNTS, so a caller who sent "self" or "OTHER_ACCOUNTS" was silently
handed the inverse of what they asked for rather than the InvalidParameterException
AWS returns — an error all three operations list.
Validated at the three entry points rather than inside the per-share visibility
check, so the rejection does not depend on the store being non-empty.
* test(ram): cover the resourceOwner enum rejection on the HTTP path
The service-level test proved the check; this pins the wire behaviour LZA
actually exercises. RamController substitutes "SELF" via asText("SELF") only for
an absent or null resourceOwner, so a present-but-unmodelled value — including a
non-string that Jackson coerces — must still reach the service and surface as a
400 InvalidParameterException on all three read routes. The absent case is
asserted to still return 200, so the default is not silently changed.
* fix(ram): stop exposing the contents of a deleted resource share
ListResources and ListPrincipals reported a deleted share's resources
as AVAILABLE to non-owning consumers. Both now skip DELETED shares,
while GetResourceShares keeps returning the share with DELETED status,
matching the retention window real RAM applies.
* fix(ram): reject a malformed GetResourceShareInvitations body
The endpoint ignores its body semantically, but malformed JSON is a
client error: it now goes through readTree and answers the modeled 400
SerializationException instead of 200 with an empty list.
* fix(ram): reject mutations on DELETED resource shares
A deleted share stays readable via GetResourceShares for the retention
window, but real RAM treats it as terminal: update, associate,
disassociate, tag, untag, and a second delete all raise
UnknownResourceException. findOwnedShare now filters DELETED so every
mutation path resolves a deleted share the same as an unknown ARN.
* fix(ram): apply the GetResourceShares filters and advance lastUpdatedTime
Four response-fidelity gaps from the maintainer review, interleaved in
the same two files:
GetResourceShares read only resourceOwner, so name, resourceShareArns
and resourceShareStatus were silently dropped and a caller narrowing by
share name got every visible share back. All three are applied now, and
an unmodelled resourceShareStatus is rejected with
InvalidParameterException the way resourceOwner already is.
lastUpdatedTime never advanced: ResourceShare had no such field and
creationTime was echoed in its place, on the share node, on the
association rows, and on ListPrincipals. The field now exists and is
stamped in putForOwner, the single seam every create and mutation
already passes through. State written before the field existed reads
back with creationTime, which is correct for a share never mutated
since.
Shares also report the modeled featureSet (STANDARD — floci has no path
to produce a policy-derived share), and DeleteResourceShare echoes the
clientToken the caller sent, both of which the model carries.
* docs(ram): record the filter support and the unrouted-operation behavior
* fix(ram): require resourceOwner on the share read paths
GetResourceShares, ListPrincipals and ListResources all substituted
SELF for a missing resourceOwner, which the model marks required. That
answered a question the caller never asked, and answered it with the
caller's own shares rather than an error. All three now pass a missing
or null value to the validator that already rejected unmodelled ones,
so it surfaces as InvalidParameterException.
* docs(ram): name GetResourceShareAssociations in the fall-through note
Per review, the unrouted-operation note is more useful if it names the
operation Terraform's association resources read on every refresh, and
says the symptom is an S3 NoSuchBucket XML body rather than a
credentials problem.
* fix(ram): reject trailing tokens after a valid JSON body
Jackson's default readTree stops at the first complete value, so a body
like "{} not-json" parsed as an empty object and the request executed
instead of returning the modeled 400 SerializationException. Read with
FAIL_ON_TRAILING_TOKENS, the convention the JSON 1.0/1.1 controllers,
FIS, Signin and EventBridge already follow.
* fix(servicequotas): validate the ServiceCode shape
ServiceCode was only checked for emptiness. Because an unknown code
deliberately generates a quota catalog, that meant a caller typoing
"!!!" got three invented quotas back instead of an error. Validate
against the modeled [a-zA-Z][a-zA-Z0-9-]{1,63} and 63-character cap;
unknown-but-well-formed codes keep generating as before.
11 KiB
Services Overview
Floci emulates 78 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 and operation counts. Some services expose separate control-plane and data-plane rows below. 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.* / AmazonSSMMessageDeliveryService.* |
JSON 1.1 | 22 |
| SQS | POST / with Action= param |
Query / JSON | 20 |
| SNS | POST / with Action= param |
Query / JSON | 17 |
| S3 | /{bucket}/{key} |
REST XML | 58 |
| S3 Vectors | POST /{OperationName} |
REST JSON | 12 |
| S3 Tables | /buckets, /namespaces/*, /tables/* |
REST JSON | 25 |
| DynamoDB | POST / + X-Amz-Target: DynamoDB_20120810.* |
JSON 1.1 | 28 |
| DynamoDB Streams | POST / + X-Amz-Target: DynamoDBStreams_20120810.* |
JSON 1.1 | 4 |
| Lambda | /2015-03-31/functions/... |
REST JSON | 30 |
| Lambda MicroVMs | /2025-09-09/... + /2026-04-04/... |
REST JSON | 22 |
| API Gateway v1 | /restapis/... |
REST JSON | 64 |
| API Gateway v2 | /v2/apis/... |
REST JSON | 48 + data-plane |
| IAM | POST / with Action= param |
Query | 76 |
| STS | POST / with Action= param |
Query | 7 |
| AWS Sign-In | /v1/authorize, /v1/token |
REST JSON | 2 |
| Organizations | POST / + X-Amz-Target: AWSOrganizationsV20161128.* |
JSON 1.1 | 55 |
| Cognito | POST / + X-Amz-Target: AWSCognitoIdentityProviderService.* |
JSON 1.1 | 43 |
| KMS | POST / + X-Amz-Target: TrentService.* |
JSON 1.1 | 34 |
| CloudHSM v2 | POST / + X-Amz-Target: BaldrApiService.* |
JSON 1.1 | 18 |
| Kinesis | POST / + X-Amz-Target: Kinesis_20131202.* |
JSON 1.1 | 24 |
| Managed Service for Apache Flink | POST / + X-Amz-Target: KinesisAnalytics_20180523.* |
JSON 1.1 | 7 |
| Secrets Manager | POST / + X-Amz-Target: secretsmanager.* |
JSON 1.1 | 16 |
| Step Functions | POST / + X-Amz-Target: AmazonStatesService.* |
JSON 1.1 | 19 |
| SWF | POST / + X-Amz-Target: SimpleWorkflowService.* |
JSON 1.0 | 39 |
| CloudFormation | POST / with Action= param |
Query | 19 |
| Cloud Control API | POST / + X-Amz-Target: CloudApiService.* |
JSON 1.1 | 5 |
| EventBridge | POST / + X-Amz-Target: AmazonEventBridge.* |
JSON 1.1 | 16 |
| EventBridge Scheduler | /schedules/*, /schedule-groups/*, /tags/* |
REST JSON | 12 |
| EventBridge Pipes | /v1/pipes/* |
REST JSON | 7 |
| CloudWatch Logs | POST / + X-Amz-Target: Logs.* |
JSON 1.1 | 17 |
| CloudWatch Metrics | POST / with Action= or JSON 1.1 |
Query / JSON | 11 |
| CloudWatch RUM | /appmonitor, /appmonitor/{name}, /appmonitors |
REST JSON | 5 |
| GuardDuty | /detector, /detector/{detectorId}, /detector/{detectorId}/admin, /admin/*, /tags/* |
REST JSON | 13 |
| ElastiCache | POST / with Action= param + TCP proxy |
Query + RESP | 8 |
| MemoryDB | POST / + X-Amz-Target: AmazonMemoryDB.* + TCP proxy |
JSON 1.1 + RESP | 7 |
| RDS | POST / with Action= param + TCP proxy |
Query + wire | 14 |
| RDS Data API | /Execute, /BeginTransaction, /CommitTransaction, /RollbackTransaction |
REST JSON | 4 |
| MSK | /v1/clusters/..., /api/v2/clusters/... + Redpanda broker |
REST JSON + Kafka | 8 |
| Amazon MQ | /v1/brokers/... + RabbitMQ broker |
REST JSON + AMQP | 5 |
| MWAA | / REST paths for environments + CLI/web proxy |
REST JSON | 10 |
| Athena | POST / + X-Amz-Target: AmazonAthena.* |
JSON 1.1 | 4 |
| Glue | POST / + X-Amz-Target: AWSGlue.* |
JSON 1.1 | 38 |
| Lake Formation | POST /<Action> |
REST JSON | 16 |
| Neptune | POST / with Action= param + Gremlin TCP proxy |
Query + WebSocket | 8 |
| DocumentDB | POST / with Action= param + MongoDB container |
Query + MongoDB wire | 8 |
| EMR | POST / + X-Amz-Target: ElasticMapReduce.* |
JSON 1.1 | 24 |
| EMR Serverless | /applications/* |
REST JSON | 7 |
| Data Firehose | POST / + X-Amz-Target: Firehose_20150804.* |
JSON 1.1 | 6 |
| ECS | POST / + X-Amz-Target: AmazonEC2ContainerServiceV20141113.* |
JSON 1.1 | 58 |
| EFS | /2015-02-01/... |
REST JSON | 17 |
| EC2 | POST / with Action= param |
EC2 Query | 78 |
| Lightsail | POST / + X-Amz-Target: Lightsail_20161128.* |
JSON 1.1 | 79 local responses; 161 recognized actions |
| 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 |
| Resource Groups Tagging API | POST / + X-Amz-Target: ResourceGroupsTaggingAPI_20170126.* |
JSON 1.1 | 5 |
| Resource Explorer | POST /{OperationName}, rewritten to /re2/* for the four paths S3 Vectors also claims |
REST JSON | 32 |
| SES | POST / with Action= param |
Query | 16 |
| SES v2 | /v2/email/* |
REST JSON | 10 |
| OpenSearch | /2021-01-01/opensearch/... |
REST JSON | 24 |
| AppConfig | /applications/..., /deploymentstrategies/... |
REST JSON | 16 |
| AppConfigData | /configurationsessions, /configuration |
REST JSON | 2 |
| AppSync | /v1/apis/... |
REST JSON | 33 |
| Bedrock Runtime | /model/{modelId}/converse, /model/{modelId}/invoke |
REST JSON | 2 (stub; streaming returns 501) |
| Bedrock AgentCore Control | /runtimes/*, /gateways/*, /memories/*, /identities/*, /tags/{resourceArn} |
REST JSON | 31 (+ 3 tagging via shared /tags/{arn} route) |
| Bedrock AgentCore | /runtimes/{agentRuntimeArn}/invocations |
REST JSON (binary payload) | 1 (canned-response stub) |
| EKS | /clusters, /clusters/{name}, /tags/{resourceArn} |
REST JSON | 7 |
| ELB v2 | POST / with Action= param |
Query | 34 |
| WAF v2 | POST / + X-Amz-Target: AWSWAF_20190729.* |
JSON 1.1 | 35 |
| Auto Scaling | POST / with Action= param |
Query | 33 |
| Application Auto Scaling | POST / + X-Amz-Target: AnyScaleFrontendService.* |
JSON 1.1 | 9 |
| Elastic Beanstalk | POST / with Action= or Operation= param |
Query | 14 |
| CodeBuild | POST / + X-Amz-Target: CodeBuild_20161006.* |
JSON 1.1 | 20 |
| AWS Batch | /v1/... |
REST JSON | 10 |
| CodeDeploy | POST / + X-Amz-Target: CodeDeploy_20141006.* |
JSON 1.1 | 30 |
| CodePipeline | POST / + X-Amz-Target: CodePipeline_20150709.* |
JSON 1.1 | 44 |
| Service Quotas | POST / + X-Amz-Target: ServiceQuotasV20190624.* |
JSON 1.1 | 5 |
| AWS RAM | POST /{operationname} (lowercase), DELETE /deleteresourceshare |
REST JSON | 12 |
| Control Tower | /list-landingzones, /get-landingzone, /create-landingzone, /*-baseline* |
REST JSON | 15 |
| AWS Backup | /backup-vaults/*, /backup/plans/*, /backup-jobs/*, /supported-resource-types |
REST JSON | 20 |
| AWS FIS | /experimentTemplates/*, /experiments/*, /actions/*, /targetResourceTypes/*, /safetyLevers/*, /tags/* |
REST JSON | 26 |
| CloudFront | /2020-05-31/distribution/*, /2020-05-31/cache-policy/*, /2020-05-31/function/* |
REST XML | 50 |
| Route53 | /2013-04-01/hostedzone/*, /2013-04-01/healthcheck/*, /2013-04-01/change/* |
REST XML | 17 |
| Cloud Map | POST / + X-Amz-Target: Route53AutoNaming_v20170314.* |
JSON 1.1 | 22 |
| AWS Config | POST / + X-Amz-Target: StarlingDoveService.* |
JSON 1.1 | 20 |
| CloudTrail | POST / + X-Amz-Target: com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.* |
JSON 1.1 | 9 |
| Textract | POST / + X-Amz-Target: Textract.* |
JSON 1.1 | 6 |
| Transcribe | POST / + X-Amz-Target: Transcribe.* |
JSON 1.1 | 8 |
| Pricing | POST / + X-Amz-Target: AWSPriceListService.* |
JSON 1.1 | 5 |
| Cost Explorer | POST / + X-Amz-Target: AWSInsightsIndexService.* |
JSON 1.1 | 9 |
| Cost and Usage Reports | POST / + X-Amz-Target: AWSOrigamiServiceGatewayService.* |
JSON 1.1 | 6 |
| BCM Data Exports | POST / + X-Amz-Target: AWSBillingAndCostManagementDataExports.* |
JSON 1.1 | 7 |
| Transfer Family | POST / + X-Amz-Target: TransferService.* |
JSON 1.1 | 17 |
| IoT Core | /things/..., /endpoint, rules/policies REST paths |
REST JSON | 62 |
| IoT Data | /things/{thingName}/shadow, MQTT topics |
REST JSON | 11 |
Lambda, ElastiCache, RDS, MSK, MWAA, ECS, EKS, and OpenSearch spin up real Docker containers and support IAM authentication and SigV4 request signing, the same auth flow as production AWS. RDS Data API executes SQL against the local RDS containers through AWS-compatible REST JSON routes.
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. EKS (real mode) starts a k3s container per cluster and exposes the Kubernetes API server on a host port. OpenSearch (real mode) starts an opensearchproject/opensearch container per domain and exposes the data-plane REST API on a host port. DocumentDB starts a real mongo container per cluster and returns its host and port as the cluster endpoint, so any MongoDB driver can connect against the MongoDB-compatible wire protocol.
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.