CreateFunction accepted python3.15, ruby4.0, java8.al2023, java11.al2023 and java17.al2023, but ImageResolver had no image for them, so every invoke failed with "The runtime parameter ... is not supported". They now map to python:3.15, ruby:4.0, java:8.al2023, java:11.al2023 and java:17.al2023 on public.ecr.aws/lambda, so every identifier in Lambda's supported runtimes table resolves to an image.
The Lambda docs no longer say that any runtime with a base image works, and name the deprecated runtimes Floci runs instead.
Awaitility sleeps one poll interval, 100 ms, before its first check, so every await in the suite paid that even when its condition already held. AwaitilityDefaults sets the default poll delay to zero. A @QuarkusTest class sees its own copy of Awaitility from the Quarkus runtime class loader, so the default is applied by a JUnit launcher session listener for plain classes and by a Quarkus before-class callback for Quarkus classes, each pinned by its own test.
ProvisionedConcurrencyPoolTest relied on the old first sleep after an initialization failure. It now waits until the retried put is accepted, since the stop count moves before the handle leaves pendingTeardown.
ListAgents, ListLocations and ListTasks scanned every Region, and the by-ARN reads, updates, deletes, CreateTask's location lookups and the tag calls read the store whatever Region the request was signed for. Each resource is stored under its ARN, which carries its Region, so lists and reads now keep only the request Region's through RegionResolver.inRequestRegion, and an ARN of another Region answers InvalidRequestException.
The four Batch stores were shared by every Region, and every list, describe and name lookup scanned them whole, so a compute environment, job queue, job definition or job of one Region was listed, resolved, tagged and submitted to from another, names could not be reused across Regions and job definition revisions counted across them. Reads now filter by the Region each record stores, and a job definition ARN of another Region answers not found instead of falling back to a local revision of the same name. An EventBridge target submits in its queue's Region.
The CodeArtifact Kellnr and AppSync JS runtime sidecars run under Docker's init, so they stop on SIGTERM instead of waiting out the stop timeout, and an AppSync sidecar started without init is replaced rather than adopted. The Redshift readiness check and the RDS parameter-group server start poll every 200 ms against their existing deadlines.
ListStatements scanned every Region's statements, and DescribeStatement, GetStatementResult, GetStatementResultV2 and CancelStatement read a statement by its bare id from any Region. The statement store now reads and lists only the request's Region, placing a statement by the Region it records and a batch's sub-statement by its batch's; a statement saved without a Region belongs to the default Region. Keys are unchanged, so the restart pass and the TTL sweep still see every Region.
A term filter pattern with a space between the minus and the excluded term, "ERROR" - "Unauthorized", was rejected with "expected a value", while AWS reads it as an exclusion, the same as "ERROR" -"Unauthorized". The term parser now skips whitespace after a minus and reads the next term as excluded, so metric filters, subscription filters and FilterLogEvents accept it alike.
SendMessageBatch compared the batch total with the queue's MaximumMessageSize, so on a queue with a small MaximumMessageSize a batch whose entries each fit was refused whole with BatchRequestTooLong. AWS bounds the batch total by a fixed 1 MiB, while the queue attribute bounds each entry.
The total is now compared with maxAllowedMessageSize, which is 1 MiB unless FLOCI_SERVICES_SQS_MAX_MESSAGE_SIZE raises it, so a raised ceiling still accepts a batch that SendMessage would accept. Each entry is still checked against the queue's MaximumMessageSize, and the Query and JSON paths share the check.
A cluster with Floci's Trino now starts its primary node, and Trino on it,
in the background as it becomes ready, steps or none, the way an
application UI link already does; the cluster goes WAITING as before.
Clients outside the cluster reach Trino through Floci on a host of the
cluster's own, <cluster-id>.emr-trino.<Floci's host>, through the app UI
proxy: Trino's port is published on the primary node's loopback like the
node's web interfaces, the request keeps its Host, which Trino names its
next pages by, and goes on with X-Forwarded-Proto, which Trino honours
with http-server.process-forwarded. Until Trino answers the host gives a
503, which Trino's clients retry, and starts the node where it is not
running; an ending or ended cluster gives a 404. Floci's TLS certificate
names the new host label.
PutAccountDeliveryAttributes stores the account's SharedPoolDeliveryMode per Region, GetAccount always reports it under DeliveryAttributes (GLOBAL when unset), and configuration sets accept DeliveryOptions.SharedPoolDeliveryMode, which PutConfigurationSetDeliveryOptions keeps when a request omits it. The Java compatibility suite moves to AWS SDK 2.59.7.
A FIFO queue with ContentBasedDeduplication derived the MessageDeduplicationId from an MD5 of the body, while AWS uses a SHA-256 hash of it, so ReceiveMessage returned a 32-character ID where AWS returns 64. The ID is now the body's SHA-256, as SNS FIFO topics already derive it.
DeleteDBCluster deferred the delete of any cluster that read
maintenance or deleting, taking that for one the startup restore was
starting again. An ordinary delete also marks the cluster deleting
before it removes it, so one whose last storage write failed was left
deleting, and every retry then deferred to a restore that was not
running: the cluster stayed until the next start.
A delete now defers only while the restore owns the cluster, which it
does from once the cluster and its instances are marked until the
restore ends, whatever way it ends: started, failed, the record gone,
or a shutdown stopping it before or during the cluster's start. When
the restore decides whether the cluster is available or removed, it
releases it under the cluster's lock, so a delete either waits for that
decision or comes after it. Ownership is taken only after the instances
are marked, so a marking that fails leaves no delete waiting either.
Follow-up to #9498.
Floci's shutdown stopped every Neptune cluster's proxy and graph
database container and nothing started them again, so after a restart
with persistent storage a cluster reported available with nothing
behind its port.
At startup each cluster now reports maintenance, and its instances
starting, with its proxy port held for it at once, so a cluster created
meanwhile is never handed it. Its container comes back in the
background on the volume its graph is kept in, in the engine the graph
was kept in, which the cluster's record now names, and its proxy
listens on its port again; the cluster and its instances then report
available. With no Docker daemon reachable they come back available
with no container, as a cluster created then does. A cluster whose
container or proxy does not start is left with none and its instances
failed, and is tried again at the next start. The restore runs in each
cluster's own account and Region, and marking the clusters calls no
Docker.
Floci now records which cluster holds each proxy port, so a cluster
whose stored port another cluster holds moves to a free one, its
instances with it, and one restored in the same process keeps its own. One recorded before its engine was kept is
taken to be in the configured one, and one recorded before its graph
was kept in a volume gets a volume, both kept before any Docker call.
A DeleteDBCluster while the restore is starting the cluster's container
leaves it deleting until the container has started, a second one too,
and the restore removes it then. A delete defers only while a restore
owns the cluster, which it does only once its marking is done, so one a
failed write left deleting is retried at once; one still deleting at the next start is removed in the
background. The delete, the restore and CreateDBInstance decide under a
per-cluster lock, and instance creation, deletion and the restore's
status writes under a per-instance one, taken first, so the restore
never puts back an instance deleted meanwhile. CreateDBInstance is
refused with InvalidDBClusterStateFault for a cluster that is not
available.
Shutdown now marks the container manager first, after which no
container starts. A container left under a cluster's name, by a Floci
that exited without stopping it, is now stopped with the same 30
seconds as at shutdown before its replacement starts, rather than
removed outright, so Gremlin Server saves its graph to the volume
first. The message refusing to delete a cluster with instances uses a
colon in place of its dash.
Closes#5664.
SES v2 was checked by 118 hand-written rules in IamActionRegistry, one
per route of the model, and no SES request, v1 or v2, was checked on
the resource it names: the ses namespace waited in the table of request
resources' NOT_COVERED, as the generator refused it while its REST
clients had no vendored routes to tell their requests apart.
Vendors the sesv2 and pinpoint-email models' routes under the ses
credential scope, so each v2 request is checked as its operation's
action by the route botocore gives it, and removes the hand rules. The
ses namespace joins the table of request resources, 231 operations over
the ses, sesv2, pinpoint-email and mailmanager clients: an identity, a
configuration set, a template or a contact list by the member naming it,
an ARN member by the ARN it holds, as the Service Reference gives their
formats; an operation naming none of its action's types stays on "*".
Floci mints the same identity/<name> and configuration-set/<name> ARNs.
SES v1 and v2 share the operation names of the table, and the generator
merged the rows of clients that share an endpoint prefix, holding that a
request cannot tell them apart: a v2 SendEmail was read for v1's
SourceArn, so a grant on one identity sent from another by adding one.
Every row of the table now names the APIs it is read for, each a
protocol botocore gives a client of the operation with its API version
(SourceArn is query/2010-12-01), and the reader reads a request for the
rows of its own API alone: a Query request's by the Version its handler
dispatches it by, its form's on a POST and never its URL's, a REST
request's by the version of the model whose route it matched, never by
a member a caller adds. A request whose API neither gives, or
one no row names, is read for every row, as before. 68 rows are read
for some of their operation's APIs only, over SES, Elastic Load
Balancing's classic and v2 APIs, EventBridge, Lambda and Bedrock.
botocore now gives ListConfigurationSets and ListEmailIdentities as
POST /v2/email/list-configuration-sets and POST /v2/email/list-identities.
The GET /v2/email/configuration-sets and GET /v2/email/identities routes
an SDK built before that still sends stay served and match no route of
the model, so they are not checked. The hand-kept copy of the SES v2
model's routes the registry test read is removed: the route coverage
test checks every vendored route.
Each trino-connector-<catalog> classification now adds that catalog to the
cluster's Trino, of the connector of its name (delta_lake for delta,
raptor_legacy for raptor) unless it names its own. delta, hudi and iceberg
sit on the cluster's Hive metastore, or on Floci's Glue when the
classification says glue, and on Floci's S3, as hive already does; Delta
writes to S3 are on, as the Release Guide's Delta tutorial inserts into a
table there. trino-config goes into config.properties after Floci's, and
its http-server.http.port moves the coordinator, its readiness query and
the address the steps' trino-cli reaches.
Resolve nodejs26.x to public.ecr.aws/lambda/nodejs:26, which the Docker launcher, the Kubernetes launcher and Web Function environments all use, and accept nodejs26.x for Web Function revisions next to nodejs24.x.
Closes#9392
Security groups in a VPC with an IPv6 CIDR block get the default ::/0 outbound rule alongside 0.0.0.0/0, in the same -1 permission, as AWS adds it. Associating a VPC's first IPv6 block adds it to the default group and to every group whose outbound rules are still the original IPv4 one, under each group's lock, then refreshes the firewalls once. A failed group creation removes both default rule records.
Co-authored-by: Emanuel Aseghehey <aseghey@amazon.com>
An event source request member that broke both its length and its pattern answered the pattern violation first, except in RotateWebhookCredentials. AWS now answers the length first in every event source operation (measured in us-east-1), so EventBridgeV2RequestShapes checks them all in that order.
A crawler with a JdbcTarget now crawls a Redshift cluster or workgroup through its Glue connection: it signs in with the connection's secret, username and password, or KMS-encrypted password, selects tables and views by the include path and exclusions, and writes one Data Catalog table per relation, updating only changed schemas and keeping user-added metadata. The read runs off the run service's lock and the write only while the crawl is still current. UTF-8 byte truncation moves to core.common.Utf8 for Glue, RDS log files and S3.
Closes#7818
A Neptune cluster's graph lived only in its container: Gremlin Server's
TinkerGraph kept it in memory, and Neo4j in the unnamed volume its image
declares for /data. Removing the container, as Floci's shutdown does,
lost it, so a cluster could never be started again with its graph.
When Neptune's records are kept (its own storage mode, or the global
one, is persistent, hybrid or wal), a new cluster now gets a volume ID,
kept in its record, and its container mounts floci-aws-neptune-<id>, or
binds <host-path>/neptune/<id> when the host persistent path is an
absolute path. Neo4j keeps its data directory there. Gremlin Server's
image has its data directory there, and Floci writes the image's
TinkerGraph properties before the container starts so the graph is
saved to it when the server stops and loaded from it when it starts.
Under the host path Gremlin Server runs as root, since the directory
belongs to whoever created it rather than to the image's gremlin user.
An image laid out otherwise keeps its graph in memory, with a warning.
A container now has 30 seconds to stop before Docker kills it, as
Gremlin Server saves its graph a few seconds after the stop signal.
DeleteDBCluster removes the volume as the storage policy says, under
the storage mode Neptune's records are kept in, its own or the global
one; a create that fails removes it whatever the policy. A cluster created
again under a deleted one's identifier starts on a new, empty volume.
Starting the clusters' containers again on these volumes when Floci
restarts comes next.
Part of #5664.
Move the PostgreSQL source lookup, catalog read, column mapping and query calls out of RdsIntegrationLoader into a new RdsIntegrationSource bean, with the publication and logical replication slot helpers that ongoing zero-ETL replication builds on. The replication name's digest comes from Digests.sha256Hex. Initial load behavior is unchanged.
Add PutEnforcedGuardrailConfiguration, ListEnforcedGuardrailsConfiguration and DeleteEnforcedGuardrailConfiguration, stored per account and Region and checked against the resolved guardrail's ARN and published versions. DeleteGuardrail refuses a guardrail, or a version, that an enforced configuration names, and deleting an unknown configId answers AWS's missing-configuration message.
Closes#7311
GetDomainNames accepted any resourceOwner. An unknown or empty value now answers HTTP 400 ValidationException with AWS's enum message; an omitted value, SELF and OTHER_ACCOUNTS are still accepted.
Closes#9026
EC2 watches each instance container once it runs, and an exit Floci did not cause applies the instance's InstanceInitiatedShutdownBehavior: StopInstances by default, TerminateInstances for terminate, with the state reason Client.InstanceInitiatedShutdown. The behavior comes from RunInstances, its launch template or ModifyInstanceAttribute, is set before any container starts, is reported by DescribeInstanceAttribute, and must be stop or terminate. Reboots queue behind the container's other lifecycle operations, and the wait-stream exit watcher moves from Lambda to core.common.docker.
Fixes#9385
Move the queued executor mock out of EcsEssentialContainerExitServiceTest into a shared EcsTestExecutors helper, which adds an inline variant. The daemon rollout test in EcsStablePortRolloutServiceTest now takes its stopper from it, so both completion orders keep their assertions: a stop that finishes during reconciliation, and one queued until the test runs it.
GetShardIterator with AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER and no StartingSequenceNumber returned an iterator at the oldest record. It now answers InvalidArgumentException with Kinesis's message, naming the requested type.
Closes#9462
Floci's shutdown removed every DocumentDB cluster's MongoDB container
and nothing started them again, so after a restart with persistent
storage a cluster reported available with nothing behind its endpoint.
At startup each cluster now reports maintenance, and its instances
starting, and its container comes back in the background on the volume
the cluster's data is kept in, with the master password the data was
set up with. Floci now keeps that password in the cluster's record,
never returned by the API, since a snapshot authenticates with it. The
cluster and its instances then report the new container's port and
available. With no Docker daemon reachable they come back available
with no container, as a cluster created then does. A cluster whose
container does not start is left with none and its instances failed,
and is tried again at the next start. The restore runs in each
cluster's own account and Region.
A cluster recorded before Floci kept the master password reads it from
the container it left, if one is there, and keeps it in its record
before that container is replaced; with none left it cannot be started,
and the restore says to create it again. One recorded before
its data was kept in a volume gets a new volume, kept in its record
before any Docker call.
Marking the clusters calls no Docker; the containers, and the removal
of a delete Floci did not live to finish, are all in the background.
A DeleteDBCluster during the restore leaves the cluster deleting until
its container has started, a second one too, and the restore removes it
then; one still deleting at the next start is removed then. The restore
applies its result only to the cluster it marked. CreateDBInstance is
refused with InvalidDBClusterStateFault for a cluster that is not
available, as RDS refuses it, so a deferred delete leaves no instance
behind. Shutdown now marks the
container manager first, after which no container starts, and a start
it overtakes removes its container.
Part of #5664.
Extract the plain-test usage and resource-lock scan of ParallelLocksInventoryTest into missingLocks(usage, lock), shared by the Docker stream and config mapping checks, which keep their own messages.
The offline --check of the request-resources, passed-roles and
tag-on-create tables re-derives only what a table holds, from the
namespaces the table itself records. A namespace taken out of a
generator's NAMESPACES, or moved into NOT_COVERED, without the table
regenerated passed it: the stale table kept the namespace's operations
and the old reason, and only an integration test caught the result.
Each --check now also holds the table to its generator's constants
(namespace_problems, shared from regen_iam_passed_roles): every
operation is one the generator reads, the table's namespaces are the
ones it reads, its reasons for the namespaces it does not read are the
generator's, and none of its other namespaces is one the generator
reads or names as not read. The three vendored tables hold today.
Session Manager for Linux EC2 guests running the stock SSM agent and the Session Manager plugin: interactive shells, SSH and port forwarding, with StartSession, ResumeSession, TerminateSession, DescribeSessions and GetConnectionStatus, and session document validation. Direct SendCommand execution on instances without the agent is unchanged.
StartSession and GetConnectionStatus are checked on the EC2 target, and StartSession on the selected or default session document, read from the Session Manager guide and API reference pages vendored in tools/aws/sources/ssm-session-permissions.json.
Replaces #9366, rebased onto main with the generated IAM table refreshed. On top of it, GetConnectionStatus echoes the Target it was asked about, as AWS answers. The agent's OpenDataChannel is checked on the session ARN, as the client's is, so a deny on one session reaches the instance role. Starting a session deletes the account's history older than the 30 days DescribeSessions lists.
Closes#9365
Co-authored-by: James McMahon <james@jamesmcmahon.co.uk>
The daemon rollout test now hands the task stop to a mocked executor and covers both completion orders: a stop that finishes during reconciliation, and one queued until the test runs it, where the task is STOPPING and no replacement starts until it does. Either order ends with exactly one replacement on the original container instance, without waiting on the background stopper.
Pull the duplicated regexes field and regexCount() up into FilterPattern, make TermPattern's term lists immutable on construction, move quote- and bracket-aware tokenization into SpaceDelimitedTokenizer, share the $-prefix reference key extraction, and split the long parsing methods of SpaceDelimitedPattern, AwsRegex, TermPattern and JsonSelector into focused helpers. No behavior change.
Closes#9494
A DocumentDB cluster's MongoDB container kept its data in the unnamed
volume the mongo image declares for /data/db. Removing the container, as
Floci's shutdown does, left that volume behind with nothing to find it
by, so a cluster could never be started again on its data.
With a persistent storage mode (persistent, hybrid or wal), a new
cluster now gets a volume ID, kept in its record, and its container
mounts floci-aws-docdb-<volume-id> at /data/db, or binds
<host-path>/docdb/<volume-id> when the host persistent path is an
absolute path. Memory mode and mock mode are unchanged.
DeleteDBCluster removes the volume as the storage policy says: a
persistent mode keeps it unless prune-volumes-on-delete is set. A
cluster whose create fails, or that a failed snapshot or point-in-time
restore discards, never reached the caller, so its volume goes whatever
the policy. A container that started but whose MongoDB never answered
is removed too, so it holds no volume. A cluster created again under a
deleted one's identifier starts on a new, empty volume.
Starting the clusters' containers again on these volumes when Floci
restarts comes next.
Part of #5664.
Under enforcement a REST route no rule maps and no vendored model names
runs unchecked. Amazon EFS was among those: Floci serves it and no rule
mapped it.
Vendors the efs model's routes, so each request is checked as its
operation's action: a caller holding no grant for one is now refused
where the request used to pass.
EFS joins the table of request resources: a file system by its id, an
access point by its, and a mount target's operations and the tag calls
by what EfsStoredResourceArns answers their MountTargetId or ResourceId
reaches, the file system or the access point EFS stores. All 31 of its
operations read every type the Service Authorization Reference marks
required, so every route is checked on the resources AWS checks. Its
two creates join the tag-on-create table, and
CreateReplicationConfiguration's Destinations[].RoleArn is checked for
iam:PassRole.
A tagged create of a type its action does not act on tags the resource
it makes where its request names every variable of it; a variable the
service mints, which the create's response answers and its request
carries none of, now counts as named there, staying open as it does in
every resource a create makes. So CreateAccessPoint, which acts on its
file system, has its tags checked on access-point/* rather than on the
file system, and so do five creates of other namespaces whose made
resource was named but for a minted id: CloudFormation's
CreateChangeSet, EMR's StartNotebookExecution, Textract's
CreateAdapterVersion and Transfer Family's CreateAgreement and
CreateConnector.
The Docker stream gauge test reads the process-wide active-stream counter, so the classes that open Floci Docker streams now take ParallelLocks.DOCKER_ACTIVE_STREAMS for reading and the gauge test takes it for writing, with an inventory check for new stream users. The gauge test waits for earlier callbacks to retire through one awaitStreamCount helper, the pool test waits for the third request's lease timeout instead of a second of silence, and both timeout tests share DockerTestSupport.rootCause.
A role's trust policy read for AssumeRoleWithWebIdentity or
AssumeRoleWithSAML, or when a service assumes the role, never saw the
role's own tags: a condition on aws:ResourceTag/<key> or
iam:ResourceTag/<key> matched nothing, so a trust policy allowing an
assume only onto roles carrying a tag refused every one, and one denying
it onto such roles never applied. AssumeRole has read them since the
role's stored tags were given to its trust policy; these paths run their
own condition reading and were left out.
Each of those assumes acts on the role, which the Service Authorization
Reference gives aws:ResourceTag/${TagKey} and iam:ResourceTag/${TagKey},
and the global condition keys page has aws:ResourceTag in the request
context "when the requested resource already has attached tags". The
web identity and SAML evaluators now read the role's tags, under the keys
the generated resourceTagKeys table gives the role type, beside the
token's claims or the assertion's attributes, a tag key matched whatever
its case. A service's assume reads them through a new
AssumeRolePolicyEvaluator.allowsService taking the role, which the
service-role authorizer, the AppSync data source authorizer, Step
Functions' Lambda and API Gateway tasks and the Lambda web adapter's
execution role now use, beside the service's principal and source keys.