Commit Graph
139 Commits
Author SHA1 Message Date
kotov228 3f314dcb4e feat(codepipeline): add AWS CodePipeline emulation (#1469)
* feat(codepipeline): add AWS CodePipeline emulation

* fix(codepipeline): align webhook and rollback response shapes
2026-06-21 09:01:44 -05:00
Kenshin Okinaka 1ffa9a4e21 feat(ses): support v2 dedicated IP pools and configuration-set option groups (#1412)
* feat(ses): support v2 dedicated IP pool APIs

Add SES v2 dedicated IP pool management — CreateDedicatedIpPool,
GetDedicatedIpPool, ListDedicatedIpPools and DeleteDedicatedIpPool — backed by
a per-region store.

Validation matches real AWS SES V2 (verified 2026-06-18): ScalingMode defaults
to STANDARD and must be STANDARD or MANAGED; a duplicate pool returns
AlreadyExistsException; an unknown pool returns NotFoundException.

Add integration tests, an AWS SDK v2 compatibility test, and document the
endpoints.

* feat(ses): support v2 configuration-set option groups

Add SES v2 ConfigurationSet support for the ReputationOptions, TrackingOptions,
DeliveryOptions, ArchivingOptions, and VdmOptions option groups. Each group can
be set through its dedicated Put...Options endpoint or supplied inline to
CreateConfigurationSet (validated before the set is stored), and is read back
through GetConfigurationSet.

Validation matches real AWS SES V2:

- TrackingOptions: HttpsPolicy enum; a present CustomRedirectDomain must be
  non-blank and a verified domain identity, is required when HttpsPolicy is set,
  and is checked before the enum.
- DeliveryOptions: TlsPolicy enum; MaxDeliverySeconds must be an integer in
  [300, 50400]; any SendingPoolName is rejected since Floci models no
  dedicated-IP pools, with distinct blank vs non-existent messages.
- ArchivingOptions: ArchiveArn must match the Mail Manager archive ARN pattern
  (existence/ownership not modelled).
- ReputationOptions: always returned by GetConfigurationSet (enabled by
  default); an empty-body PUT disables it.
- VdmOptions: nested DashboardOptions/GuardianOptions [ENABLED, DISABLED] enums;
  accepted independently of account-level VDM.

Option members are type-checked, an all-null block clears the options, and the
response blocks are shaped via Jackson. Add integration tests and an AWS SDK v2
compatibility test, and document the endpoints.

* feat(ses): validate SendingPoolName against dedicated IP pools

Now that dedicated IP pool management is available, DeliveryOptions
SendingPoolName is validated against the pool store instead of being rejected
unconditionally: a pool created via CreateDedicatedIpPool is accepted (and
echoed by GetConfigurationSet), while an unknown pool still returns
'SendingPool <name> doesn't exist' and a blank one 'sendingPoolName can't be
blank.' (verified against real AWS).

Add integration and SDK compatibility tests for referencing an existing pool.

* fix(ses): stop validating ArchiveArn format

Floci does not model Mail Manager archives, so the ArchiveArn format is not
validated — any provided value is stored and echoed (matching the store-only
behaviour of other local AWS emulators). The JSON-string type check is kept.

Replace the malformed-ARN rejection test with one asserting an arbitrary
ArchiveArn round-trips.
2026-06-20 11:47:36 -05:00
Ahmed khaled fd904bc409 feat(memorydb): add MemoryDB service with mock mode (#1420)
* feat(memorydb): add MemoryDB service with mock mode

Adds Amazon MemoryDB for Redis as a Docker-backed service, modelled on
the existing ElastiCache and DocumentDB services.

Control plane is AWS JSON 1.1 (X-Amz-Target: AmazonMemoryDB.*) dispatched
from AwsJson11Controller, supporting CreateCluster, DescribeClusters,
UpdateCluster, DeleteCluster, ListTags, TagResource and UntagResource.

The data plane reuses ElastiCache's RESP proxy and SigV4 validator, since
MemoryDB is Redis wire-compatible: each cluster starts a real Valkey/Redis
container and an auth proxy forwards client connections to it.

A mock mode (FLOCI_SERVICES_MEMORYDB_MOCK, default false) tracks clusters
as control-plane-only resources without starting a container, so IaC tools
like Terraform and OpenTofu can run where no Docker socket is available.
This mirrors the existing DocumentDB mock flag.

Includes service unit tests and documentation.

* fix(memorydb): return UnknownOperationException for unsupported actions

Unrecognised JSON 1.1 actions returned InvalidParameterValueException,
which mis-signals the error category and can break SDK/CLI probing.
Use UnknownOperationException to match CloudMap and the shared
JsonErrorResponseUtils.createUnknownOperationErrorResponse helper.

* docs(memorydb): drop service-count bump from this PR

The 55->56 edit was built on a stale baseline (main's count does not
reflect already-merged services) and conflicts with a separate docs
branch. Keep the MemoryDB matrix row; leave the headline count to a
dedicated docs PR. No functional change.

* fix(memorydb): use InternalFailure for unexpected errors

Align the generic exception path with Floci's JSON 1.1 convention and the
shared JsonErrorResponseUtils.createErrorResponse helper, which emit
InternalFailure for unexpected server errors. SDKs commonly key on this.

* fix(memorydb): copy AuthToken onto cluster spec on CreateCluster

CreateCluster resolved AuthMode.PASSWORD from the presence of AuthToken
but never copied the token onto the spec, so the service stored a null
token and password auth always failed. Copy AuthToken onto the spec and
add MemoryDbHandlerTest covering token propagation and the NO_AUTH default.

* fix(memorydb): validate cluster name to avoid NPE on null key

getCluster passed the name straight to the ConcurrentHashMap-backed
storage, so a null/blank name (reachable via UpdateCluster/DeleteCluster
without ClusterName) threw a NullPointerException surfaced as a 500.
Guard with an AWS-style InvalidParameterValueException (400), matching
CreateCluster, and add a regression test.

* fix(memorydb): roll back proxy port and container on failed provisioning

If container or proxy startup failed after allocating a proxy port, the
port stayed reserved (and any started container orphaned), eventually
exhausting the range with InsufficientClusterCapacity. Extract backend
startup into startBackend with best-effort rollback that stops the proxy
and container and always releases the port. Add a regression test proving
the port is reclaimed after a failed create.

* fix(memorydb): stop proxies and containers on emulator shutdown

MemoryDbProxyManager.stopAll and MemoryDbContainerManager.stopAll were
never invoked from EmulatorLifecycle.onStop, so MemoryDB clusters left
bound TCP proxy ports and running containers after shutdown. Wire both
managers into onStop alongside the existing ElastiCache and RDS cleanup.

No test: shutdown DI wiring is not meaningfully testable in isolation.

* test(memorydb): update EmulatorLifecycleTest for new constructor params

The shutdown-wiring change added MemoryDb container/proxy managers to the
EmulatorLifecycle constructor; update the direct constructor call in the
unit test to pass the two new mocks.

* test(memorydb): add Docker-backed integration test

End-to-end coverage mirroring ElastiCacheIntegrationTest: JSON 1.1 control
plane (CreateCluster/DescribeClusters/DeleteCluster) plus the real RESP
data plane through a Valkey container and the auth proxy. Covers no-auth
connectivity (PING/SET/GET), password auth (AUTH token accepted, wrong
token and unauthenticated commands rejected), and proxy-port reuse after
delete. Gated on Docker availability via an assumption.

* docs(memorydb): clarify mock endpoint uses configured hostname

Mock mode reports <hostname>:6379 (from floci.hostname / FLOCI_HOSTNAME,
defaulting to localhost), not always localhost. Update the Mock Mode note
so users with a custom hostname aren't surprised.

* fix(memorydb): use correct InsufficientClusterCapacityFault error code
2026-06-20 11:45:37 -05:00
Stuart Lang 760d48b91a feat(neptune): support neo4j backend for openCypher via NEPTUNE_DB_TYPE (#1449)
* feat(neptune): support neo4j backend for openCypher via NEPTUNE_DB_TYPE

Neptune emulation always started a TinkerPop Gremlin Server, which only
speaks Gremlin. Add a global db-type selector (FLOCI_SERVICES_NEPTUNE_DB_TYPE,
mirroring LocalStack's NEPTUNE_DB_TYPE) so clusters can be backed by Neo4j and
served over the Bolt protocol for openCypher.

- Add NeptuneDbType enum (gremlin -> 8182, neo4j -> 7687) with alias parsing
- Add db-type and default-neo4j-image config (default neo4j:5-community)
- Resolve image/port per engine in NeptuneService and NeptuneContainerManager
- Run Neo4j with NEO4J_AUTH=none and probe readiness via the Bolt handshake
- Add openCypher/Bolt integration test and NeptuneDbType unit test
- Document the new option in README and docs/services/neptune.md

* test(neptune): assert DeleteDBCluster cleanup and clarify docs

Assert the openCypher integration test's DeleteDBCluster cleanup returns
200 so a failed delete surfaces instead of silently leaking a backend
container and proxy port into later tests.

Also drop the misleading backend ports from the db-type table (users
connect via the proxy port range, not the container-native port) and
correct the SigV4 auth-header comment to reference the management
request routing.

* fix(neptune): treat all-zero Bolt handshake reply as not-ready

The Neo4j readiness probe accepted any non-empty response, but Neo4j
answers the Bolt handshake with 0x00000000 when it rejects every
proposed version (Bolt disabled, wrong port, or an unsupported server
version). That made the probe report ready for a backend whose sessions
would then fail. Require a non-zero agreed version for the neo4j
db-type so such a backend times out with a clear error instead.

* fix(neptune): fall back to default db-type on unknown config value

A server-side typo in FLOCI_SERVICES_NEPTUNE_DB_TYPE shouldn't fail the
client's CreateDBCluster. Make NeptuneDbType.fromConfig return an
Optional and have NeptuneService fall back to GREMLIN with a WARN for an
unrecognised value, instead of throwing InvalidParameterValue. The
cluster still comes up on the default engine.
2026-06-20 11:24:00 -05:00
Jason van Zyl 9236b40073 feat(autoscaling): preserve policy and mixed instances parity (#1437)
* fix(autoscaling): preserve launch template capacity metadata

* feat(autoscaling): preserve target tracking policies

* feat(autoscaling): preserve mixed instances policies
2026-06-18 23:42:31 -05:00
Jason van ZylandHector Ventura 56706217d3 feat(autoscaling): support group reconciliation and refresh (#1393)
* feat(autoscaling): support group reconciliation and refresh

* fix(ec2): align instance runtime parity

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Co-authored-by: Hector Ventura <hectorvent@gmail.com>
2026-06-18 18:14:19 -05:00
Hector Ventura e17a8fce36 docs(cloudformation): sync supported resource types and annotate stub actions (#1405)
Update docs/services/cloudformation.md to reflect current provisioner coverage (~74 AWS::* types incl. EC2, RDS, EKS, ELBv2, AutoScaling, Kinesis, Firehose, CloudWatch/Logs, Cognito, Batch, Step Functions, full API Gateway). Correct Route53 (now provisioned, not stubbed) and group types by service. Annotate stub/no-op actions (ValidateTemplate, Set/GetStackPolicy, StackSet ops).
2026-06-17 00:50:16 -05:00
Hector Ventura be9e61d788 feat(ssm): add DescribePatchBaselines and GetDefaultPatchBaseline (#1404)
Return AWS-owned predefined patch baselines (one default per operating system) so Terraform's aws_ssm_patch_baseline data source resolves. Supports DescribePatchBaselines filters OWNER/OPERATING_SYSTEM/NAME_PREFIX and GetDefaultPatchBaseline. Read-only reference data; no customer-owned baselines.

Refs #956
2026-06-17 00:41:24 -05:00
Jason van Zyl 42669aaed9 fix(config): make runtime defaults explicit (#1389) 2026-06-17 00:31:08 -05:00
Ahmed khaledandHector Ventura d77f11abbb docs(docdb): document DocumentDB service (#1386)
* docs(docdb): document DocumentDB service

* docs(docdb): clarify data endpoint port is from DescribeDBClusters

* docs: align AWS service count to 56 across docs and README

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Co-authored-by: Hector Ventura <hectorvent@gmail.com>
2026-06-17 00:01:23 -05:00
James Netherton ca5fb043a7 feat(kms): add EnableKey support (#1381) 2026-06-16 23:17:52 -05:00
Jason van Zyl 660a8bceb3 feat(ssm): execute run commands in EC2 containers (#1387) 2026-06-16 22:51:21 -05:00
Hector Ventura 717769857b docs: correct service count to 58 and add EMR, WAF v2, CloudTrail pages (#1398)
Reconcile inconsistent service counts (55/54/41) to 58 distinct services across the README, docs index, services overview, and the LocalStack migration guide. Add the missing per-service pages and Service Matrix rows for EMR, WAF v2, and CloudTrail, and wire them into the mkdocs nav and README service tables.
2026-06-16 18:57:37 -05:00
Hector Ventura 3b4e73ca5a docs(lambda): document Podman rootless support and Runtime API host override (#1340)
Adds a 'Running on Podman (rootless)' section to the Docker configuration
docs with the known-working container config, and documents the existing
FLOCI_SERVICES_LAMBDA_DOCKER_HOST_OVERRIDE escape hatch for when Runtime
API host auto-detection picks an unreachable address.

Closes #876
2026-06-14 20:34:43 -05:00
devansh-jain-18 022436eaae feat(batch): add AWS Batch service support (#1332) 2026-06-14 19:45:15 -05:00
Prakhar Kapoor 702d71d604 fix(SQS): max message size should be 1MB, not 256KB (#1339) 2026-06-14 09:49:52 -05:00
Jason van Zyl 22a50b3c80 Add RDS provisioning support (#1253)
* feat(rds): add subnet groups and orderable options

* feat(rds): support subnet group modification

* feat(rds): return managed master user secrets

* fix(rds): preserve instance tags

* fix(rds): honor requested engine versions

* fix(rds): return routable proxy endpoints

* fix(rds): accept PostgreSQL SSL negotiation

* fix(rds): initialize PostgreSQL IAM role

* fix(rds): include PostgreSQL 18 orderable option

* fix(rds): address provisioning support review feedback
2026-06-13 18:46:42 -05:00
Lorenzo Galassi ceb4d84431 fix(athena): 🐛 align GetWorkGroup with AWS behavior (#1301)
GetWorkGroup previously returned a hardcoded default response for any
workgroup name, ignoring workgroups created via CreateWorkGroup and
never failing for non-existent ones.

- Return stored Name, State, Description, CreationTime and
  Configuration for created workgroups, scoped by region
- Throw InvalidRequestException (400) when the workgroup is not found,
  matching the AWS error shape and message
- Keep the default view for the primary workgroup
- Make DeleteWorkGroup actually remove the entry from the store so a
  deleted workgroup is no longer returned and its name can be reused
- Document DeleteWorkGroup in the supported actions table

Closes #1128
2026-06-13 01:43:26 -05:00
devansh-jain-18 e063ac18ee feat(rds-data): add RDS Data API support (#1262)
* feat(rds-data): add RDS Data API support

* fix(rds-data): harden Data API validation

* fix(rds-data): harden review findings
2026-06-12 23:39:05 -05:00
Jason van Zyl d8d70bfd48 Improve ELBv2 target resolution and persistence (#1254)
* fix(elbv2): resolve instance target addresses

* fix(elbv2): persist load balancer state

* fix(elbv2): preserve listener sockets on updates

* test(elbv2): cover persisted state reload

* fix(elbv2): restore target health after reload

* fix(elbv2): address persistence review feedback

* test(elbv2): align subnet-backed zone coverage
2026-06-12 17:46:18 -05:00
Jason van Zyl 79bf0d39a6 Stream S3 range responses (#1255)
* fix(s3): stream object range responses

* test(s3): cover streamed object reads

* fix(s3): harden streamed range responses
2026-06-11 01:48:39 -05:00
Jason van Zyl f9c305b7c6 Add EC2 provisioning primitives (#1252)
* feat(ec2): load AMI catalog metadata

* feat(ec2): add Ubuntu 24.04 AMI metadata

* feat(ec2): add launch template APIs

* feat(ec2): add launch template version APIs

* feat(ec2): add VPC endpoint CRUD

* feat(ec2): add NAT gateways and instance offerings

* fix(ec2): add t4g.medium instance offering

* fix(ec2): preserve launch template version data

* fix(ec2): align subnet helper references

* fix(ec2): keep VPC endpoint services empty
2026-06-11 01:32:17 -05:00
Jason van Zyl 6e4087b0f4 Add KMS key state and description operations (#1251)
* feat(kms): support disabling keys

* feat(kms): support key description updates

* fix(kms): tighten key description update coverage
2026-06-11 01:19:09 -05:00
Kenshin Okinaka 35f597addd feat(ses): publish events to Firehose, EventBridge, CloudWatch (#1188)
* feat(ses): publish events to Firehose, EventBridge, and CloudWatch destinations

Extend SES V2 configuration set event publishing so destinations beyond
SnsDestination actually deliver. Previously KinesisFirehoseDestination,
EventBridgeDestination, and CloudWatchDestination were stored but the
publisher logged a warning and skipped. PinpointDestination still skips.

- KinesisFirehoseDestination → single Firehose PutRecord per event;
  S3-backed streams flush accumulated records as NDJSON once the default
  count threshold is reached.
- EventBridgeDestination → PutEvents entry with Source=aws.ses,
  DetailType="Email <EventTypeLabel>", payload as Detail. Region is
  stamped on the entry (so matchesPattern + envelope agree on a
  non-default region) and Resources is always present (empty when
  sourceArn is null — matchesPattern's resources-filter branch casts
  entry.get("Resources") unconditionally).
- CloudWatchDestination → MetricDatum to AWS/SES with Unit=Count.
  Dimensions resolved from DimensionConfigurations against EmailTags
  (MESSAGE_TAG / messageTag), email headers (EMAIL_HEADER / emailHeader),
  or ses:configuration-set, falling back to DefaultDimensionValue.
  Timestamp left to putMetricData's epoch-seconds default.

Tests
- SesEventPublishingV2IntegrationTest @Order 14-28: per-destination
  setup → send → assert, plus a cross-region (eu-west-1) EventBridge
  case pinning region propagation end-to-end.
- SesEventPublisherTest (Mockito ArgumentCaptor): the EB PutEvents
  entry always carries Resources as an ArrayNode — integration tests
  cannot pin this because EventBridgeService.buildEventEnvelope
  defaults a missing key via getOrDefault.

Docs
- docs/services/ses.md: replace the SNS-only claim with the four
  supported destination types.

* fix(ses): use AWS past-tense detail-type for EventBridge SES events

The EventBridge publisher was emitting "Email Send", "Email Delivery",
etc — derived from the SNS notification eventType vocabulary by
prepending "Email ". AWS uses a separate past-tense vocabulary on
EventBridge: "Email Sent", "Email Delivered", "Email Bounced", "Email
Complaint Received", "Email Rejected", "Email Opened", "Email Clicked",
"Email Rendering Failed", "Email Delivery Delayed", "Email Subscribed"
(see https://docs.aws.amazon.com/eventbridge/latest/ref/events-ref-ses.html).

A customer rule pattern keyed on the AWS value
({"source":["aws.ses"],"detail-type":["Email Delivered"]}) would
silently fail to match Floci events.

Changes:
- Add SesEventPayload.eventBridgeDetailType returning the past-tense
  EventBridge vocabulary. Kept separate from eventTypeLabel (which
  remains correct for SNS notifications and CloudWatch metric names).
- SesEventPublisher.publishEventBridge uses the new mapping.

Tests
- SesEventPayloadTest.eventBridgeDetailType_matchesAwsPastTenseVocabulary:
  pins all 10 mappings against AWS docs.
- SesEventPublishingV2IntegrationTest @Order 29
  (eventBridge_detailTypePattern_keyedOnAwsSentValue_matches):
  structural pin — creates a rule with EventPattern
  {"source":["aws.ses"],"detail-type":["Email Sent"]} and asserts the
  SQS target receives the SEND envelope. A regression to "Email Send"
  would cause the rule to silently drop the event, failing the test
  without relying on any hard-coded assertion string.
- Existing tests updated to assert the AWS values:
  SesEventPublishingV2IntegrationTest 4 assertions; sdk-test-java
  SesEventPublishingTest 3 assertions.

* fix(ses): emit CloudWatch metric name "RenderingFailure" without space

AWS CloudWatch metric publishing for SES uses "RenderingFailure" (no
space) for the RENDERING_FAILURE event type — verified against real
AWS by configuring a CW event destination on a configuration set,
sending a templated email with a missing TemplateData key to trigger
the rendering failure path, and capturing the new metric name from
`aws cloudwatch list-metrics --namespace AWS/SES`.

Floci's publisher was previously sourcing the CW MetricName from
SesEventPayload.eventTypeLabel, which returns "Rendering Failure" (with
space). That spelling is correct for the SNS notification's eventType
field but wrong for CloudWatch — customer dashboards / alarms keyed on
the AWS-correct "RenderingFailure" never see Floci's metric.

Changes:
- Add SesEventPayload.cloudWatchMetricName returning the CW spelling.
  Mirrors eventTypeLabel for every other case so the two stay aligned
  in shape; only RENDERING_FAILURE differs.
- SesEventPublisher.publishCloudWatch uses the new mapping.
- SesEventPayloadTest.cloudWatchMetricName_matchesAwsCwSpelling pins
  all 10 mappings; RENDERING_FAILURE expectation comes from the live
  AWS capture rather than an AWS docs guess.

DELIVERY_DELAY remains as "DeliveryDelay" in this commit — it could
not be triggered conveniently from the SES sandbox (needs genuine SES
backoff), so leaving the existing value rather than guessing. Flagged
in code comments as needing future verification.

The other simple metric names (Send, Delivery, Bounce, Complaint) were
also verified against the same AWS capture and match Floci's existing
spelling byte-for-byte — no change needed for those.
2026-06-09 00:36:28 -05:00
Hector Ventura 446697ec71 docs: add AWS Cloud Map service docs, fix service count, add analytics (#1221)
Document AWS Cloud Map (servicediscovery), which was implemented but never
documented, and reconcile related documentation drift:

- Add docs/services/cloudmap.md covering all 22 operations, config, examples
- Bump headline service count from 52 to 53 across README and docs
- Add Cloud Map to the canonical service matrix, README tables, and docs index
- Backfill mkdocs nav with Cloud Map and 7 existing-but-unlisted service docs
- Backfill condensed tables with services missing from them (Transcribe,
  Resource Groups Tagging, Neptune, EventBridge Pipes, CloudFront)
- Add Umami analytics tracking via a Material theme override (overrides/main.html)
2026-06-07 10:44:37 -05:00
Ben Younes e3c19461db feat(iam): seed standard EKS cluster and node group managed policies (#1216)
EKS cluster creation and managed node groups attach a set of AWS managed
policies that floci did not seed, so GetPolicy / AttachRolePolicy failed with
NoSuchEntity (e.g. AmazonEKSClusterPolicy, AmazonEKSVPCResourceController),
breaking the terraform-aws-modules/eks module and the EKS console flow.

Add the standard set to the seeded catalog (all path "/"):
AmazonEKSClusterPolicy, AmazonEKSServicePolicy, AmazonEKSVPCResourceController,
AmazonEKSWorkerNodePolicy, AmazonEKS_CNI_Policy. Documented in the IAM managed
policy catalog (docs/services/iam.md).

Closes #1092
2026-06-07 00:41:48 -05:00
AgustinBertagna 4446404288 feat(appsync): Phase 2 — Schema Registry, Model Fixes, CRUDL completion & AWS Scalars (#1185)
* build: add graphql-java dependency

* feat(appsync): add and extend data models for Phase 2

- Add AdditionalAuthenticationProvider, DomainName, ChannelNamespace, ApiAssociation models
- Add 14 fields to GraphqlApi (apiType, visibility, owner, etc.)
- Change additionalAuthenticationProviders from raw maps to typed list
- Add 6 fields to Resolver (resolverArn, cachingConfig, maxBatchSize, etc.)
- Add dataSourceArn to DataSource
- Rename FunctionConfiguration.arn to functionArn

* feat(appsync): add service and controller changes for Phase 2

* feat(appsync): add service and controller changes for Phase 2

* test(appsync): add Phase 2 integration tests

Add ~60 new tests for:
- Model completeness (new fields, ARNs, functionArn rename)
- Domain names CRUDL + associate/disassociate
- Channel namespaces CRUDL + update
- Merged API associations CRUDL
- Enhanced metrics
- Schema registry parsing with AWS scalars and extensions
- Directive registration (aws_api_key, aws_subscribe, deprecated, unknown)
- Edge cases (null auth providers, maxBatchSize 0, cleanup on delete)

* test(appsync): add AWS scalar unit tests

Test all 17 AWS scalars:
- All registered in AppSyncScalarRegistry
- AWSDateTime, AWSJSON, AWSEmail parse valid/invalid values
- AWSTimestamp and AWSShort range validation
- AWSURL and AWSPhone format validation

* test(appsync): add SDK compatibility tests for Phase 2

Validate that the AWS SDK Java v2 can read:
- dataSourceArn() on CreateDataSource response
- resolverArn() on CreateResolver response
- functionArn() on CreateFunction response
- BadRequestException on invalid schema creation

* docs(appsync): add Phase 2 operations, schema registry, and AWS scalars documentation

- Add Domain Names, Channel Namespaces, Merged API Associations, Enhanced Metrics
- Document AWS scalar types (17 scalars with validation rules)
- Document AppSync directives (8 directives with locations)
- Update Not Implemented section with future phase references
- Add CLI examples for domain names and channel namespaces
- Update cascade delete to include channel namespaces and domain associations

* docs: add AppSync to service tables, env vars, storage config, and SDK README

- README.md: add AppSync to category table, detailed notes, and architecture diagram
- docs/index.md: add AppSync to supported services table, fix count to 52
- docs/configuration/environment-variables.md: add FLOCI_SERVICES_APPSYNC_ENABLED
- docs/configuration/advanced/application-yml.md: add appsync config block
- docs/configuration/storage.md: add AppSync per-service storage override
- compatibility-tests/sdk-test-java/README.md: add AppSyncTest to services table

* fix(appsync): reuse ObjectMapper and fix AWSJSON serialize for non-string values

AWSJSON scalar was creating a new ObjectMapper on every parseValue() call. serialize() used toString() which produces invalid JSON for Map/JsonNode results.

* fix(appsync): strip string literals and comments before unknown directive validation

The regex @(\w+) incorrectly flagged @ mentions inside GraphQL string literals and comments as unknown directives.

* fix(appsync): prevent silent overwrite on creates, validate required fields and input values

- Add existence checks on createDataSource, createResolver, createType,
  createChannelNamespace, createMergedApiAssociation (→ ConflictException 409)
- Validate authenticationType is required on createGraphqlApi
- Validate typeName is required on createResolver
- Validate dataSourceName exists on createResolver and createFunction
- Prevent associateApi from silently overwriting existing association
- Enforce API key limit (max 2 per API)
- Fix expires parsing to accept ISO 8601 strings, throw on invalid values
- Fix castInt overflow detection
- Fix updateApiKey expires validation (was silently swallowing errors)
- Change InvalidNextTokenException to BadRequestException (AWS standard)
- Fix maxResults=0 to return empty page
- Fix getIntrospectionSchema to throw 404 instead of returning null
- Fix tags with null values (was producing literal string "null")

* test(appsync): fix cascade delete test to create data source before function, align with new validation

* refactor(appsync): remove dead code and unused hasSchema()

- Delete AppSyncDirectiveRegistry.java (100 lines, never used)
- Delete DirectiveValidator.java (45 lines, never called)
- Remove hasSchema() from SchemaRegistry (never called)

* fix(appsync): scalar null-safety, type validation, and DNS resolution

- Add null checks to 5 serialize() methods (AWS_TIMESTAMP, AWS_LONG,
  AWS_INTEGER, AWS_BOOLEAN, AWS_FLOAT) to prevent NPE
- Fix AWS_TIMESTAMP parseValue() ClassCastException on String input
- Replace InetAddress.getByName() with regex in AWS IPAddress to
  prevent DNS resolution (SSRF concern)
- AWSBoolean now rejects non-boolean values (matches AppSync behavior)

* refactor(appsync): centralize directive definitions in AppSyncDirective enum

- Add AppSyncDirective enum as single source of truth for directive
  names and SDL definitions
- Update AppSyncSchemaParser to use enum instead of duplicated strings
- Eliminates 3 sources of truth (validateNoUnknownDirectives Set,
  injectDirectiveDefinitions SDL, and formerly AppSyncDirectiveRegistry)

* perf(appsync): cache scalarMap in AppSyncScalarRegistry

- Initialize scalarMap once in constructor as unmodifiableMap
- Avoids recreating HashMap on every call (was called twice per
  schema parse)

* test(appsync): add tests for scalar fixes and behavior changes

- Add tests for null-safety in serialize() (5 scalars)
- Add test for AWSTimestamp parseValue with String input
- Add tests for AWSIPAddress regex validation (IPv4, IPv6, invalid)
- Add tests for AWSBoolean rejecting non-boolean values
- Add test for scalarMap caching

* test(sdk): add AWS scalars schema creation test

Verifies that schemas with AWS scalar types (AWSDateTime, AWSJSON,
AWSIPAddress, AWSBoolean) parse correctly via the SDK.

* fix(appsync): correct API paths to match AWS documentation

- Channel namespaces: /v1/ → /v2/, channelnamespaces → channelNamespaces
- Domain association: /apis → /apiassociation
- Remove ListApiAssociations (not a real AppSync operation)
- Remove GetEnhancedMetricsConfig (not a real AppSync operation)
- Rename Merged API Association to Source API Association with correct paths:
  - AssociateSourceGraphqlApi: POST /v1/mergedApis/{id}/sourceApiAssociations
  - GetSourceApiAssociation: GET /v1/mergedApis/{id}/sourceApiAssociations/{id}
  - ListSourceApiAssociations: GET /v1/apis/{apiId}/sourceApiAssociations
  - DisassociateSourceGraphqlApi: DELETE /v1/mergedApis/{id}/sourceApiAssociations/{id}

* feat(appsync): add SourceApiAssociation models

Add SourceApiAssociation, SourceApiAssociationConfig, and
SourceApiAssociationSummary models to support merged/source API
association operations per AWS AppSync API Reference.

* feat(appsync): add ChannelNamespace support models

Add AuthMode, HandlerConfig, HandlerConfigs, Integration, and
LambdaConfig models for ChannelNamespace handler configuration
per AWS AppSync API Reference.

* fix(appsync): fix ApiAssociation and ChannelNamespace models

ApiAssociation: remove source/merged API fields, keep only domain
association fields (apiId, associationStatus, deploymentDetail,
domainName) per AWS AppSync API Reference.

ChannelNamespace: add missing fields (channelNamespaceArn,
codeHandlers, created, handlerConfigs, lastModified,
publishAuthModes, subscribeAuthModes, tags) per AWS docs.

* feat(appsync): add missing service methods and fix response models

- associateApi now returns full ApiAssociation object
- createMergedApiAssociation returns SourceApiAssociation
- createSourceApiAssociation returns SourceApiAssociation
- getSourceApiAssociation validates mergedApiId
- listSourceApiAssociations returns SourceApiAssociationSummary
- Add updateSourceApiAssociation method
- Add deleteMergedApiAssociation method
- ChannelNamespace: populate arn, timestamps on create/update

* feat(appsync): fix response formats and add missing endpoints

- associateMergedGraphqlApi: response key apiAssociation → sourceApiAssociation
- disassociateSourceGraphqlApi: returns 200 + body (not 204)
- associateApi: returns full ApiAssociation from service
- Add POST /v1/mergedApis/{id}/sourceApiAssociations/{assocId} (UpdateSourceApiAssociation)
- Add DELETE /v1/sourceApis/{id}/mergedApiAssociations/{assocId} (DisassociateMergedGraphqlApi)

* test(appsync): fix and add integration tests for new endpoints

- Fix associateSourceGraphqlApi: use mergedApiId and sourceApiAssociationStatus
- Fix deleteSourceApiAssociation: expect 200 with body (not 204)
- Add updateDomainName test
- Add associateMergedGraphqlApi test
- Add updateSourceApiAssociation test
- Add disassociateMergedGraphqlApi test

* test(appsync): add SDK tests for missing operations

- Add updateDomainName test
- Add associateMergedGraphqlApi test
- Add updateSourceApiAssociation test
- Add disassociateMergedGraphqlApi test
- Fix test ordering for new domain tests
2026-06-07 00:05:51 -05:00
Kenshin Okinaka e36576c2a4 feat(ses): per-configuration-set sending toggle (v1 + v2) (#1193)
Add UpdateConfigurationSetSendingEnabled (SES v1 Query) and
PutConfigurationSetSendingOptions (SES v2 REST, PUT
/v2/email/configuration-sets/{name}/sending) to toggle email sending
on a single configuration set, complementing the existing
account-level UpdateAccountSendingEnabled / PutAccountSendingAttributes
toggle. The two APIs share state: both write
`ConfigurationSet.sendingEnabled` (Boolean, null/true = enabled).

Enforcement is centralized in SesService.validateConfigurationSet,
which is called by SendEmail, SendRawEmail, and SendBulkTemplatedEmail
(v1 and v2 paths). When the CS's sendingEnabled is false, the send is
rejected with SendingPausedException + "Sending is paused for
configuration set <name>" — matching the exact wire shape AWS returns
in production (verified via `aws sesv2 send-email` against an AWS
account with a disabled CS; both ErrorCode and Message reproduce as-is).

Read-back paths:
  - v2 GetConfigurationSet returns SendingOptions: {SendingEnabled}
  - v1 DescribeConfigurationSet with `reputationOptions` attribute
    returns ReputationOptions/SendingEnabled (matches the AWS v1 wire
    contract where SendingEnabled lives under ReputationOptions)

The v1 action is also added to AwsQueryController.SES_ACTIONS so that
action-name-based service routing recognizes it.

Tests
- SesConfigurationSetSendingOptionsV2IntegrationTest (13 cases): toggle
  via both APIs, cross-API state sharing, SendEmail rejection with
  SendingPausedException when disabled, read-back via Get/Describe,
  bad-request validation, unknown CS returns 404 via v2.
- SesConfigurationSetSendingTest (SDK compat, 9 cases): AWS Java SDK
  v2 marshalling of both APIs, with sendEmail rejection asserted as
  `SendingPausedException` (the AWS SDK class corresponding to the
  matched server-side error code).

Docs
- docs/services/ses.md: list both APIs in their respective tables.
2026-06-06 08:16:39 -05:00
David Phillips 10e28f33c2 feat: support Glue DeleteDatabase (#1181) 2026-06-05 23:38:34 -05:00
David Phillips 6089d8ddc7 feat: support Glue user-defined functions (#1187) 2026-06-05 23:20:42 -05:00
Kenshin Okinaka 68c9dcc6fb docs(ses): list v1 ConfigurationSetEventDestination actions (#1192)
The v1 Query handler dispatches Create / Update / Delete
ConfigurationSetEventDestination at SesQueryHandler.java:85-90 but the
Supported Actions table in docs/services/ses.md did not list them,
leaving the v1 surface under-documented compared to v2 (which already
has the equivalent REST endpoints listed).
2026-06-04 21:52:08 -05:00
Hector Ventura 2d30641479 fix(dns): resolve public hostnames from spawned containers (#1168)
Lambda/CodeBuild containers get Floci's IP as their only DNS, so all
public-name resolution flows through Floci's embedded UDP/53 forwarder.
The forwarder read responses into a hardcoded 512-byte buffer, silently
truncating larger EDNS0 responses (e.g. CDN-backed hosts), so public
lookups failed inside Lambda with ENOTFOUND/EBUSY.

- Enlarge the forwarder receive buffer to 4096 bytes (EDNS0).
- Forward across an ordered upstream list (resolv.conf + configurable
  public fallbacks), returning the first valid response; warn when all
  upstreams fail instead of dropping the response silently.
- Append configurable fallback resolvers (default 8.8.8.8, 8.8.4.4)
  after Floci's IP on spawned containers' HostConfig.Dns, controllable
  via floci.dns.container-fallback-* / FLOCI_DNS_CONTAINER_FALLBACK_*.

Closes #1110
2026-06-04 00:42:38 -05:00
Hector Ventura 7128758a63 feat(eks): make real-mode clusters reachable and authenticable from the host (#1167)
In real mode `aws eks create-cluster` brought up a k3s container that was
unreachable from the host and rejected every request with 401. This makes the
native AWS workflow work end to end (`aws eks update-kubeconfig` + `kubectl`).

- describe-cluster returns a host-reachable endpoint (https://localhost:<hostPort>),
  configurable via endpoint-mode (host|network), default host
- token-authentication webhook (POST /_floci/eks/token-webhook) validates the
  `aws eks get-token` bearer token and maps it to system:masters; pins the
  apiserver to the v1 TokenReview API and echoes the request apiVersion
- webhook kubeconfig is injected into k3s via the Docker API (create -> copy ->
  start), so it works in native and Docker-in-Docker with no host-path config
- k3s network falls back to the global docker-network, then auto-detected

Closes #1118
2026-06-04 00:42:25 -05:00
Kenshin Okinaka 19b0432b8c feat(ses): apply suppression list during send with per-CS SuppressionOptions override (#1109)
When SendEmail / SendRawEmail is called with a recipient on the
account-level suppression list whose reason matches the effective
SuppressedReasons (the configuration set's SuppressionOptions
override if present, else the account-level reasons), Floci now:

1. Emits a synthetic Bounce or Complaint event (per the suppression
   reason) through the configured event destinations alongside the
   always-emitted Send event.
2. Drops the suppressed recipient from the SMTP relay step, while
   still delivering the message to non-suppressed recipients on the
   same send.

The SendEmail API response (200 + MessageId), the stored SentEmail
(used by the LocalStack-compatible /_aws/ses inspection endpoint),
and the published event's mail.destination all continue to reflect
the original recipient list — matching how AWS reports the message
at the API and event layers.

This PR bundles two related pieces:
- The per-configuration-set SuppressionOptions block (Put endpoint +
  GetConfigurationSet response shape + getEffectiveSuppressedReasons
  helper). Mirrors AWS V2 PutConfigurationSetSuppressionOptions:
  empty list = explicit "no suppression filtering" for this CS,
  unset block = fall back to account-level reasons. The validation
  message for the new endpoint matches the AWS V2 natural-language
  form ("Reason <X> is invalid, must be one of [BOUNCE, COMPLAINT].")
  which is distinct from the V1-style nested message returned by the
  three older suppression endpoints; both forms were verified
  against live AWS on 2026-06-03.
- The send-time filter + synthetic-event partitioning, plumbed
  through getEffectiveSuppressedReasons so the override takes effect
  per-send. collectSuppressedReasons and resolveSuppressionReason
  now both take configurationSetName, hitting the per-CS override
  when present and falling back to the account-level reasons
  otherwise.

Per-recipient: when only some recipients are suppressed, the
non-suppressed ones still reach smtpRelay.relay() / relayRaw().
The relay is skipped entirely only when every recipient is
suppressed.

- Recipient suppressed with reason BOUNCE (and BOUNCE in the
  effective reasons) -> synthetic Bounce event; not relayed.
- Recipient suppressed with reason COMPLAINT (and COMPLAINT in the
  effective reasons) -> synthetic Complaint event; not relayed.
- Reason mismatch or address not on the list -> Send only; relayed
  normally.
- Simulator-address recipients and suppression-listed recipients
  are unioned into the same event's recipient list, deduplicated.

Tests
- SesConfigurationSetSuppressionOptionsV2IntegrationTest (16 cases)
  for the CRUD + helper.
- SesConfigurationSetTest SDK compat (6 V2 cases) using
  SesV2Client.PutConfigurationSetSuppressionOptions and the typed
  SuppressionListReason enum (+ the WithStrings escape hatch for
  the server-side validation path).
- SesServiceSmtpTest grows four cases pinning the send-time
  override behaviour: empty list on the CS disables filtering and
  the relay receives the address; BOUNCE-only override leaves
  COMPLAINT-suppressed addresses unfiltered; a CS without an
  override falls back to account-level (parity with no-CS sends);
  raw-send mirrors the JSON-send path.
- SesEventPayload / SesEventPublishingV2IntegrationTest / further
  send-path coverage from the original suppression PR is preserved.
- All 452 SES tests pass.
2026-06-03 21:57:20 -05:00
AgustinBertagna c8b0048bac docs(appsync): add AppSync service documentation (#1149)
Add documentation for AWS AppSync Management API (Phase 1) covering
33 operations across GraphQL API, Schema, DataSources, Resolvers,
Functions, Types, API Keys, Tags, and Environment Variables.

Includes pagination, cascade delete behavior, CLI examples,
and service matrix entry.
2026-06-03 17:36:32 -05:00
Clément 5dc0664b8b feat(sns): mock mobile push for iOS and Android platform endpoints (#1115) 2026-06-02 01:25:17 -05:00
Kenshin Okinaka 35211adc4a feat(ses): publish SES events to SNS configuration set destinations (#1106)
* feat(ses): publish SES events to SNS configuration set destinations

Add SES V2 event publishing to SnsDestination targets configured on a
ConfigurationSet. When SendEmail / SendRawEmail / SendTemplatedEmail /
SendBulkEmail is invoked with a ConfigurationSetName, Floci builds the
matching AWS-format event payload (a `mail` block plus an event-type-
specific block) and publishes it to each enabled SNS destination whose
MatchingEventTypes includes that event.

Events emitted
- SEND on every successful send.
- DELIVERY / BOUNCE / COMPLAINT / REJECT when a recipient matches the
  corresponding AWS mailbox simulator address (success@ / bounce@ /
  complaint@ / suppressionlist@simulator.amazonses.com).
- Per-event-type recipient lists (delivery.recipients,
  bounce.bouncedRecipients, complaint.complainedRecipients) are
  filtered to only the simulator address that triggered the event and
  emitted in their canonical trimmed form; mail.destination carries
  the full envelope.

Wire-level fidelity
- Event payload mirrors the AWS SES SNS notification format documented
  at https://docs.aws.amazon.com/ses/latest/dg/event-publishing-retrieving-sns-examples.html.
- mail.tags includes user-supplied EmailTags / DefaultEmailTags /
  ReplacementTags (V2) and Tags.member.N / DefaultTags.member.N /
  Destinations.member.N.ReplacementTags (V1 Query). Each tag emits as
  {Name: [Value]}.
- mail.headers[] appends user-supplied Content.Simple.Headers and
  Content.Template.Headers after the auto-emitted From/To/Cc/Subject;
  null/blank Names are rejected with "The header name must be
  specified." (BadRequestException 400).
- V2 SendBulkEmail BulkEmailEntries accept ReplacementTags (merged by
  Name onto DefaultEmailTags) and ReplacementHeaders (merged
  case-insensitively per RFC 5322 onto DefaultContent.Template.Headers).
- mail.sendingAccountId resolves from EmulatorConfig.defaultAccountId().
- ConfigurationSet existence is validated up-front on sendEmail /
  sendRawEmail / sendBulkTemplatedEmail — an unknown name fails fast
  with ConfigurationSetDoesNotExist (V2 controller remaps to
  NotFoundException 404, V1 returns 400) before any message is stored
  or relayed.

Validation errors aligned with live AWS
- EmailTags blank Name: BadRequestException 400 "The tag name must be
  specified." (V2) / InvalidParameterValue 400 same message (V1).
- ConfigurationSetName not found: same error code, status, and message
  as AWS.

Raw email handling
- For V2 SendEmail with Raw content (and V1 SendRawEmail), when the
  caller did not provide Destinations, Floci falls back to To/Cc/Bcc
  parsed from the raw MIME via SmtpRelay.parseRawHeaders (extracted
  from the existing relay logic). MIME parsing is only invoked when
  needed (no explicit Destinations or event publishing active).

Internal shape
- New records: model/MessageTag (Name, Value, for EmailTags) and
  model/MessageHeader (Name, Value, for Content.Headers) — kept
  distinct from the resource-tag Tag (Key, Value).
- SesEventPublisher dispatches to SnsService; non-SNS destination
  types log a warning and are skipped (Firehose / EventBridge /
  CloudWatch / Pinpoint), and missing SnsDestination.TopicArn likewise
  warns instead of silently dropping. Failures preserve the throwable
  in the warn log.

Tests
- SesEventPayloadTest covers mail/commonHeaders/headers/tags shape,
  per-event filtering, and the headers/tags propagation paths.
- SesServiceMergeEmailTagsTest / SesServiceMergeHeadersTest pin Bulk
  Default vs per-entry merge semantics (tags by Name case-sensitive,
  headers by Name case-insensitive per RFC 5322).
- SesEventPublishingV2IntegrationTest exercises Send / Delivery /
  Bounce / SendOnly / mixed-recipient / disabled-destination /
  V1-MIME-fallback / EmailTags / V1-Tags / Simple.Headers paths
  end-to-end through SES -> SNS -> SQS.
- compatibility-tests/sdk-test-java/SesEventPublishingTest validates
  SendEmail with EmailTags/Headers and SendBulkEmail with per-entry
  ReplacementHeaders override using AWS Java SDK V2 clients.

* fix(ses): address Copilot review on upstream PR #1106

- SesService.validateConfigurationSet: clarify the Javadoc — the
  helper always throws with httpStatus = 400, and the V2 controller's
  remapV1Exception is what turns ConfigurationSetDoesNotExist into
  NotFoundException 404. The previous "(404 in V2, 400 in V1)" hint
  read as if the helper itself picked the status, which is misleading.
- SesController.parseEmailTagsArray: reject non-object entries with
  "<fieldName> entries must be JSON objects.", mirroring the existing
  parseHeadersArray check. Previously a string/number element would
  hit the blank-Name path and report a less specific message.
- SesService.mergeHeaders / mergeEmailTags: also skip entries whose
  name is the empty string, not just null. Both parsers reject blank
  names at the boundary, but defending the merge helpers keeps them
  safe for direct callers (e.g., future tests) and matches the intent
  of the boundary validation.
2026-06-01 00:20:37 -05:00
Kenshin Okinaka bd6ec2d5c6 feat(ses): add SES V2 configuration set event destination operations (#1079)
* feat(ses): add SES V2 configuration set event destination operations

Implement CreateConfigurationSetEventDestination, GetConfigurationSetEventDestinations,
UpdateConfigurationSetEventDestination, and DeleteConfigurationSetEventDestination on
the SES V2 REST JSON API. Event destinations are stored on the configuration set;
validation and error messages mirror the real AWS SESv2 responses. Includes REST
integration, service unit, and AWS SDK compatibility tests.

* fix(ses): return defensive copy from event destination getter and preserve order on update

GetConfigurationSetEventDestinations now returns an unmodifiable copy so callers
cannot mutate stored state outside the service. UpdateConfigurationSetEventDestination
replaces the destination in place (by index) instead of remove+add, keeping the
list order stable when a configuration set has multiple event destinations.
2026-05-29 18:08:59 -05:00
nblomquist 9d1e24a582 feat(kms) Add KMS Grant APIs (#1073)
* test(kms): add grant compatibility contracts

* feat(kms): support empty ListGrants

* feat(kms): add CreateGrant and persisted ListGrants round trip

* test(kms): add create grant round trip coverage

* feat(kms): add grant pagination, filters, and ListRetirableGrants

* test(kms): add pagination, filter, and retirable grant coverage

* feat(kms): add RevokeGrant administrative delete

* test(kms): add RevokeGrant unit and integration coverage

* feat(kms): add RetireGrant with token and key+grant retirement paths

* docs(kms): document grant lifecycle operations and enforcement scope

* fix(kms): include RetiringPrincipal in ListGrants response

The handleListGrants handler was omitting RetiringPrincipal from the
JSON response even when the grant had one set. This meant grants
created with a retiring principal were invisible through ListGrants,
while ListRetirableGrants worked fine. Adds the missing serialization
to match the GrantListEntry AWS spec.
2026-05-28 18:36:02 -05:00
Shubham Srivastava 5a9c30eb58 feat(opensearch): round-trip VPC/security/encryption options and per-family instance type metadata (#1039)
Closes the follow-ups from #1025: domain option blocks now survive
CreateDomain → DescribeDomain, and DescribeInstanceTypeLimits returns
family-appropriate metadata instead of one canned EBS response.

- VPCOptions, AdvancedSecurityOptions, EncryptionAtRestOptions,
  NodeToNodeEncryptionOptions, and DomainEndpointOptions now round-trip
  through the management API. Real SDK clients (Terraform / CDK / Pulumi)
  read these back to detect drift; previously they were silently dropped.
- Master passwords are accepted but never echoed back, matching AWS.
- AdvancedSecurityOptions.Enabled + InternalUserDatabaseEnabled without a
  master user is rejected with ValidationException, as is
  CustomEndpointEnabled without a CustomEndpoint value.
- New OpenSearchInstanceTypes catalog drives DescribeInstanceTypeDetails
  and DescribeInstanceTypeLimits. or1.* now reports s3-backed storage
  with the larger 8-36 TiB ceiling AWS documents; i3.* reports
  instance-store; everything else stays EBS at 3584 GiB. Unknown types
  fall back to a generic EBS spec instead of 404'ing.
- Floci still boots one Docker container per domain regardless of
  instance type, but the management metadata now matches AWS so
  introspection tools work correctly.

Tests: 60 OpenSearch tests pass. New: 6 OpenSearchInstanceTypesTest unit
tests + 6 OpenSearchDomainOptionsIntegrationTest end-to-end + 2
or1 / EBS instance-type-limit integration tests.

Live Docker validation: VPC + Encryption + N2N + Endpoint round-trip
on a real running domain; or1.2xlarge.search returns s3-backed/36864 GiB
while m6g.large.search returns ebs/3584 GiB; FGAC validation fires
correctly when MasterUserName is omitted.
2026-05-28 18:33:26 -05:00
Hector Ventura a0a30a26f8 docs: add Neptune service page and fix missing index entries (#950, #951) (#1056)
- Create docs/services/neptune.md: 8 supported actions, configuration
  table (proxy ports, Docker image, network), Docker Compose snippet,
  AWS CLI + gremlin-python + boto3 examples, and Out of Scope section
- Add Neptune to mkdocs.yml nav (after Glue)
- Add Neptune row to docs/services/index.md service matrix
- Add missing EventBridge Pipes row to docs/services/index.md
2026-05-26 18:08:06 -05:00
Shubham Srivastava 89d405316d feat(opensearch): support OpenSearch 3.x, validate engine versions, real ES 7.10 OSS image (#1025)
Centralizes engine versions in a new OpenSearchVersions catalog and
threads them through CreateDomain / UpdateDomainConfig / UpgradeDomain
validation plus per-version Docker image resolution.

- Adds OpenSearch 3.0–3.6 and 2.15 / 2.17 / 2.19 to the supported list;
  default version is now OpenSearch_2.19 (was 2.11).
- EngineVersion now maps to a concrete image tag at start time, so
  CreateDomain --engine-version=OpenSearch_3.6 actually pulls
  opensearchproject/opensearch:3.6.0 instead of always pulling the
  default 2.x rolling tag.
- Elasticsearch_7.10 / 7.9 / 7.8 now resolve to their OSS images on
  docker.elastic.co; previously these versions were advertised but the
  service silently ran an OpenSearch 2.x container under the hood.
- OpenSearch 2.12+ start scripts require OPENSEARCH_INITIAL_ADMIN_PASSWORD
  even when the security plugin is disabled. Set automatically.
- The Elasticsearch OSS distribution ships without x-pack, so any xpack.*
  setting is rejected as an unknown setting at boot. Don't touch xpack
  env on Elasticsearch_* domains.
- CreateDomain / UpdateDomainConfig / UpgradeDomain now reject unknown
  engine versions and unsupported upgrade hops with ValidationException.
- GetCompatibleVersions returns the full source→targets matrix when
  domainName is omitted and a single domain-scoped row when set, matching
  AWS's documented behavior.
- INSTANCE_TYPES catalog gains Graviton2/3 (m6g, r6g, c6g, m7g, r7g, c7g)
  and or1.* OpenSearch-optimized families that AWS now exposes.

Tests: 44 OpenSearch tests pass (31 integration + 13 new
OpenSearchVersionsTest unit tests). All four engine version paths
exercised live against Docker (OS 3.6, OS 2.11, ES 7.10 OSS, unknown
version rejection).
2026-05-25 11:47:06 -05:00
kyounghoonJang 255b41bca8 feat(kms): add RotateKeyOnDemand support (#990) 2026-05-24 14:34:51 -05:00
Sid be01ee0747 docs(pipes): add documentation and navigation for EventBridge Pipes (#1001) 2026-05-23 09:29:17 -05:00
tatakaisun fa31be9cf9 docs: add resource groups tagging service docs (#976) 2026-05-21 18:20:50 -05:00
tatakaisun 41f69a4f9d docs: add transcribe service documentation (#975) 2026-05-21 18:20:09 -05:00
Hector Ventura b200280a83 feat(cloudfront): implement CloudFront service emulation (#969)
* feat(cloudfront): implement CloudFront service emulation

Adds full CloudFront emulation covering both core and extended operations using the REST XML protocol (2020-05-31 API).

Core resources:
- Distributions (CRUDL, copy, enable/disable, ETag concurrency)
- Cache Behaviors (default + ordered)
- Invalidations (create, get, list)
- Origin Access Controls and Origin Access Identities
- CloudFront Functions (create, update, publish, test, describe)

Extended resources:
- Continuous Deployment Policies
- Public Keys and Key Groups
- Realtime Log Configs (non-standard POST-based get/delete)
- Streaming Distributions (legacy RTMP, enforces disabled before delete)
- Field-Level Encryption Configs and Profiles
- Monitoring Subscriptions

Infrastructure:
- Registers CloudFrontController in ResolvedServiceCatalog as REST_XML
- Adds CloudFrontServiceConfig and CloudFrontStorageConfig to EmulatorConfig
- Adds CLOUDFRONT namespace constant to AwsNamespaces
- Registers CloudFrontService for GraalVM runtime initialization to avoid SecureRandom heap-baking in native builds
- Wires storage through StorageFactory with per-resource JSON files
- Adds cloudfront.md documentation page

* docs: revert docker-compose.yml
2026-05-20 23:12:03 -05:00
Federico Mariani 96a6fa6517 feat(config): add AWS Config service emulation (#934)
* feat(config): add AWS Config service emulation (#913)

* docs: add AWS Config service page and align service counts across all docs

Add docs/services/config.md with all 20 supported actions, CLI examples,
and configuration reference. Add 5 services that had doc pages but were
missing from the service matrix (Textract, Pricing, Cost Explorer, CUR,
BCM Data Exports). Reconcile service count to 51 across README,
docs/index.md, and docs/services/index.md.
2026-05-20 17:15:38 -05:00
Prakhar Kapoor 15720e2ee6 feat(apigateway): implement account management endpoints and models (#867)
* feat(apigateway): implement account management endpoints and models
* feat(apigateway): enhance patch operation validation and update throttle settings defaults
* feat(api-gateway): add account management operations to API Gateway v1
* feat(api-gateway): add compatibility tests for account management and update logic
* feat(api-gateway): add missing import for assertions in account compatibility test
2026-05-17 23:42:09 -05:00
Kenshin Okinaka 010bbd15cd feat(ses): add v2 PutAccountSuppressionAttributes (#853)
Implements PUT /v2/email/account/suppression so callers can change the
account-level suppression list reasons (BOUNCE / COMPLAINT). Entries
are persisted per region in ses-account-suppression.json via a new
AccountSuppressionAttributes model.

GetAccount's response is extended with a SuppressionAttributes object
that carries the stored SuppressedReasons. The setting itself is
metadata-only — floci does not synthesise bounce/complaint events so
no auto-suppression is triggered; the configuration round-trips for
SDK users and tooling that introspects account-level settings.

Behaviour aligned with real-AWS verification:

- SuppressedReasons accepts BOUNCE / COMPLAINT, validated against the
  AWS-canonical nested "Member must satisfy constraint:
  [Member must satisfy enum value set: [BOUNCE, COMPLAINT]]" wording
  (verbatim match against real AWS).
- SuppressedReasons may be omitted (treated as empty list) or supplied
  as an empty array (clears the reasons) — both return 200.
- Non-textual array members (JSON null, numeric, etc.) are rejected
  with BadRequestException.
- Fresh regions report the AWS-default [BOUNCE, COMPLAINT] via
  GetAccount; an explicit PUT (including an empty list) overrides it.
- The optional ValidationAttributes body field is accepted but not
  parsed (Tier S scope).

Tests:
- SesV2IntegrationTest gains nine cases covering store-and-list,
  clear-with-empty-array, missing field defaulting to empty, invalid
  Reason (with the AWS-canonical nested message asserted), non-array
  SuppressedReasons, JSON null array member, numeric array member,
  optional ValidationAttributes, and the default-on-fresh-region
  assertion in the existing getAccount case.
- SesAccountSuppressionTest exercises the Java SDK round trip and an
  explicit empty list through SesV2Client; @BeforeAll captures the
  caller's existing SuppressedReasons and @AfterAll restores it with
  failures surfaced so a real-AWS run cannot silently leave the
  account with auto-suppression disabled.
2026-05-15 22:59:14 -05:00