mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
* feat(emrserverless): add EMR Serverless application management emulator This adds a full emulator for the EMR Serverless Application management plane, allowing tools like Terraform to provision and manage EmrServerless applications. Includes full CRUD operations, route collision handling, and integration tests. * fix(emrserverless): disambiguate local endpoint routing using SigV4 auth header * fix(emrserverless): resolve bot feedback on ARNs, idempotency, updates, and list controls * fix(emrserverless): resolve bot feedback on idempotency races and dropped update fields * fix(emrserverless): add jobLevelCostAllocationConfiguration to updates * fix(emrserverless): retain nested configuration fields using dynamic properties * fix(emrserverless): add required field validation and correct 404 status code * docs(emrserverless): document unsupported tagging APIs * fix(emrserverless): increase ListApplications maxResults limit to 100 * test(emrserverless): fix integration test assertions to align with required field validations and correct 404 status code * fix(emrserverless): revert ListApplications maxResults limit to 50 to match AWS limits * test(emrserverless): add validation tests for CreateApplication required fields
30 lines
1.6 KiB
Markdown
30 lines
1.6 KiB
Markdown
# EMR Serverless
|
|
|
|
EMR Serverless is an AWS service that provides serverless data analytics environments. Floci provides an emulator for the management-plane API (REST JSON) which covers the basic lifecycle of an Application.
|
|
|
|
## Configuration
|
|
|
|
| Key | Description | Default |
|
|
|-----|-------------|---------|
|
|
| `floci.emrserverless.enabled` | Whether the EMR Serverless API is enabled | `true` |
|
|
| `floci.emrserverless.port` | The port the service is exposed on | `4566` |
|
|
|
|
## Endpoints
|
|
|
|
The emulator implements the standard AWS `emr-serverless` service endpoints:
|
|
|
|
* `POST /applications` (CreateApplication)
|
|
* `GET /applications` (ListApplications)
|
|
* `GET /applications/{applicationId}` (GetApplication)
|
|
* `PATCH /applications/{applicationId}` (UpdateApplication)
|
|
* `DELETE /applications/{applicationId}` (DeleteApplication)
|
|
* `POST /applications/{applicationId}/start` (StartApplication)
|
|
* `POST /applications/{applicationId}/stop` (StopApplication)
|
|
|
|
## Limitations and Differences from AWS
|
|
|
|
* **Jobs not implemented**: Floci supports the provisioning of the `Application` management plane (which satisfies tools like Terraform's `aws_emrserverless_application` resource). Executing actual Spark or Hive jobs against these applications via `StartJobRun` is not currently implemented.
|
|
* **Instant Start/Stop**: Floci marks the application `STARTED` or `STOPPED` immediately without provisioning actual compute capacity in the background.
|
|
* **Data Plane**: Floci does not implement the data-plane API or any execution environments.
|
|
* **Tagging APIs**: `TagResource`, `UntagResource`, and `ListTagsForResource` are currently unsupported.
|