Commit Graph
5000 Commits
Author SHA1 Message Date
Priamo Germosen 0fccd475b7 fix(batch): put a job's container on its compute environment's VPC network (#8509) 2026-11-15 18:09:00 -04:00
mrfelek ca032c1a03 test(logs): capture the overflow test's records through LogCapture.capture (#8504)
* test(logs): capture the overflow test's records through LogCapture.capture
2026-11-15 17:57:08 -04:00
Andre Kurait 5d40c565d4 fix(ci): prepare Cargo sidecar images before HTTP requests (#8512) 2026-11-15 17:56:14 -04:00
Priamo Germosen 160c45bf2d fix(s3tables): give resource-tag conditions the tags of the bucket or table a request names (#8505)
The generated request resources give S3 Tables' TableBucket and Table types
aws:ResourceTag/ keys, but S3TablesStoredResourceArns did not answer
storedTags, so a condition on a table bucket's or a table's tags saw none.
S3TablesService.storedTags now reads the one bucket entry in the account and
Region the ARN names and gives the bucket's tags, or a table's, matched on
the whole ARN, reading only, a bucket stored before storage was account-aware
read in place for the default account, as Secrets Manager's lookup reads one;
S3TablesStoredResourceArns answers it.
2026-11-15 17:45:24 -04:00
Priamo Germosen 9f7ac3b6a5 feat(glue): serve Glue catalogs and the federated S3 Tables catalog (#8503) 2026-11-15 17:44:58 -04:00
Priamo Germosen 2b372cc0fc fix(iam): apply the permissions boundary a delegation registers (#8465)
A delegation request's RolePermissionRestrictionArns was stored, echoed and
counted, and nothing applied it, so a role created with delegated credentials
carried no boundary where AWS forces one. The partner guide says long-term
permissions "limit the permissions of any roles that are created or managed
through temporary access" and are "implemented as IAM permissions boundaries",
so a partner's cap did not reach the roles it exists to cap.

The member is also not an input. It is absent from CreateDelegationRequest and
appears only in the DelegationRequest output shape, where
GetDelegationRequest's own example reports it empty, because AWS fills it from
the partner's registration rather than from a request. Those boundaries are
registered by emailing AWS, with no API at all, under ARNs shaped
arn:aws:iam::partner:policy/permission_boundary/<partner_domain>/<policy_name>_<date>,
which carry the word partner where an account id goes. So no caller can create
one, no account holds one, and the only way this emulator can hold what AWS
holds out of band is to be handed it.

It is handed it by configuration. services.iam.partner-permission-boundaries-path
names a JSON file of partner account id to an object of boundary ARN to policy
document, which is the shape of the registration it stands in for. Unset, which
is the default, registers nothing: a request reports no restriction, a role
created with delegated credentials carries only the boundary its call asks for,
and nothing moves for a deployment that configures no file. A file that cannot
be read registers nothing rather than failing startup, an unreadable
registration being the same situation as a partner that never onboarded.

From there the chain is the one the guide describes. A request a registered
partner files reports those ARNs on itself, GetDelegatedAccessToken carries them
onto the delegated session, and CreateRole with that session takes one as the
role's boundary. The session is minted in the partner's account and used in the
customer's, so the lookup spans accounts, which is what findSessionAnyAccount is
for.

A registered document is read as a boundary and as nothing else. One reader
answers a boundary ARN, taking the registration ahead of the store, so GetPolicy
does not answer these ARNs, no Attach call can attach one as an identity policy,
no list reports one, and a policy stored under the same ARN cannot shadow the
cap. Every write that sets a boundary accepts a registered ARN without requiring
it as a policy of the account, the create and the two puts alike, so one ARN
behaves the same way wherever a boundary is set.

The cap also stays where it was put. The credentials a delegation issued cannot
replace or remove the boundary they gave a role, since the guide limits roles
"created or managed through temporary access" and the registration is immutable,
and iam:PermissionsBoundary publishes the boundary the write will apply rather
than the one the call asked for, so a policy conditioned on it is told the value
the role ends up with. Both refusal and reading are this emulator's own, no
source wording either.

A stack's roles are capped too. CloudFormation provisions after the request
returns, on a background executor, so the caller cannot be read when the role is
created and the cap travels with the stack instead: CreateStack and UpdateStack
record the boundary the caller's delegation registers, the dispatcher puts it in
the provisioning context, and the role provisioner prefers it to the template's
PermissionsBoundary, the same precedence a direct CreateRole has. An update
records it as well, the guide capping roles "created or managed through temporary
access". Every existing caller of the context and the dispatcher keeps its
signature, the new component and overload defaulting to no cap.

Two readings here are this emulator's own, both documented. A delegation's cap
beats a PermissionsBoundary the CreateRole call names, since the cap is what the
customer registered rather than a choice of the caller. And where a request
names several boundaries, the first is applied, a role carrying one. Only a
boundary still registered is applied, so a request stored before the
registration changed cannot bound a role by a document nobody can read.

Nothing new is refused and no code or status moves: with no registration the
behaviour is what it was, and with one the role simply carries the boundary AWS
would have given it.
2026-11-15 17:43:55 -04:00
Priamo Germosen d51af1ecff fix(docker): hold Lambda extension and exit-watch streams on the streaming pool (#8498)
A Lambda extension's exec and the container's exit watcher each hold a
Docker connection for the container's whole lifetime, and both still ran
on the control-plane client. Enough warm containers, especially with
extensions, could fill that pool and stall every create, start, stop and
remove call, the failure the streaming split was made to prevent.

Both now use the @StreamingDocker client. The exit watcher's inspect is
a short call and stays on the control-plane client, with its retries.
The streaming transport now replays a container wait that fails before
the daemon answers, as the control-plane one does, so a stale socket
does not spend one of the watcher's re-arms. Exec starts and log and
attach streams are still never replayed.

Each live Lambda container now holds its log follow, its exit watcher and
one exec per extension on the streaming pool, so its default rises from
512 to 2048 to cover the 500 containers the runtime API port range allows
with two extensions each. The control-plane default stays at 1024.

Closes #2224
2026-11-15 17:42:28 -04:00
Priamo Germosen ec9c19ff62 feat(emr): run a cluster's bootstrap actions on its core and task nodes (#8502)
Bootstrap actions "run on cluster after Amazon EMR launches the
instance", on every node, and "If you add nodes to a running cluster,
bootstrap actions also run on those nodes in the same way". Floci ran
them once, as on the primary node, and every node ran from the image they
left, so an action's branch for the core or task nodes never ran.

Where a cluster's core and task nodes run in containers of their own,
each now runs the actions too, in a bootstrap container of its own beside
the primary node's, as that node: its node files say CORE or TASK, the
cluster's relay answers its instance metadata as that node, its output
goes under its own instance id, and the container is kept as the image
the node runs from, so it holds what its own actions installed. A node a
resize adds runs them before it starts, and one that leaves takes its
image with it, so one added again runs them again.

AWS terminates a node whose action fails and says only that "If too many
instances fail their bootstrap actions, then Amazon EMR terminates the
cluster. If just a few instances fail, Amazon EMR attempts to reallocate
the failed instances and continue". Floci runs a node's actions again
once, in a fresh container, and a second failure ends the cluster with
BOOTSTRAP_FAILURE and a message of Floci's after the primary node's, as
no source gives AWS's words or an error code for a core or task node.
2026-11-15 17:41:55 -04:00
Andre Kurait 84c06d59e7 fix(cloudwatch): accept validated console metric publication (#8499)
CloudWatch's console target (CloudWatchVersion20130116.) now serves
PutMetricData, which it used to answer with UnsupportedOperation. It
accepts a nonempty MetricData array whose datums carry a finite numeric
Value or a complete StatisticValues set with a positive SampleCount,
string dimensions and a valid timestamp, and checks the whole batch
before storing anything: a malformed or conflicting datum, or a member
the handler does not parse such as Values, Counts or StorageResolution,
refuses the request without a partial write. Signature validation and
IAM checks are the same as on the SDK prefix.
2026-11-15 16:27:48 -04:00
Andre Kurait e257640516 test(lambda): remove redundant throws from ZIP fixture helpers (#8506)
Thirteen test helpers that only return LambdaCodeFixtures.nodeJsZip or
nodeJsZipBase64 with their own handler source drop the throws Exception
they kept after moving onto the shared fixture, which declares no
checked exception.
2026-11-15 16:24:21 -04:00
Jackson PriceandAndre Kurait d5f6ae23a4 fix(lambda): await idle capacity before comparing restored pool status (#8501)
ProvisionedConcurrencyPoolTest's restart case compared the status get()
and list() report right after the configuration turned READY, while its
two initializers could still be adding their handles to the idle queue,
so the two snapshots could disagree on the available count. It now
waits until both requested environments are available before comparing.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-15 16:21:49 -04:00
Hector Ventura c1c8b84a1f feat(stepfunctions): evaluate the execution role on Map's S3 reads and writes (#7725)
Under IAM enforcement, a Distributed Map's S3 calls are now authorized as its execution role, which has to exist and to trust Step Functions. An ItemReader needs s3:GetObject on the object it reads or s3:ListBucket on the bucket it lists, offering s3:prefix when the request has one, as a direct listing does. A ResultWriter needs s3:PutObject on each object it writes: SUCCEEDED_0.json, manifest.json, and FAILED_0.json when a child failed. Every key is evaluated before the first write, so a refusal leaves no partial export. Each is evaluated in the bucket's own partition, and the bucket's policy can grant or deny it.

A refusal fails with States.ItemReaderFailed or States.ResultWriterFailed, and an execution role refused outright with States.Permissions, so Retry and Catch on the Map apply. A refused reader runs no child; a refused writer fails the Map run after its children, as any writer failure does. The multipart actions and s3:GetObject the CDK grants a ResultWriter are not needed, since Floci writes each file in one PutObject. PARQUET and MANIFEST make no S3 call and keep their answer. Credentials on a Map or inside its reader or writer are not read. A mocked execution is evaluated on these calls too, since a test case cannot mock a Map and its S3 calls stay real, and with enforcement off nothing changes.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-15 16:15:48 -04:00
Priamo Germosen 58c267e621 fix(codebuild): put a VPC project's build container on its VPC's network (#8491) 2026-11-15 16:07:48 -04:00
Matheus Oliveira 1fea61f88b fix(ec2): report actual deleteOnTermination for instance network interfaces (#7940)
DescribeInstances reported deleteOnTermination=true for every network
interface attachment. It now reports what the interface carries: an
interface RunInstances creates defaults to true, a caller-supplied one
to false, and an explicit NetworkInterface.1.DeleteOnTermination is
honoured. Asking for true on a supplied interface is refused with
InvalidParameterCombination before anything launches, as AWS does, and
a launch-created interface sent false is kept as a standalone record, so
it returns to available when its instance terminates instead of being
deleted with it. DescribeInstances and DescribeNetworkInterfaces read
the same value, and both build an implicit interface through one helper.

Closes #7838
2026-11-15 15:50:01 -04:00
Andre Kurait 65e737ff2c test(ecs): forward SIGTERM to image-pull fixtures (#8497)
EcsImagePullDockerIntegrationTest's fixture runs sleep 120 as the
container's PID 1, which ignores SIGTERM, so every task stop waited out
Docker's kill timeout. The fixture's task definition now sets
linuxParameters.initProcessEnabled, which runs the container with
docker run --init, so the stop ends as soon as the signal arrives. The
assertions are unchanged.
2026-11-15 15:29:09 -04:00
Priamo Germosen 8f538679e3 fix(stepfunctions): check CloudFormation tasks from the generated request resources (#8487)
TaskPermissions decided a Step Functions aws-sdk:cloudformation task by six
hand-written operation sets and looked stacks up through four handler methods
of its own. With CloudFormation now read from iam-request-resources.json, a
task goes through the generic requestPermissions, as the same request made
directly is checked: CloudFormationStoredResourceArns, from the handler's
storedResourceArns(), finds the stack or the stack set a name names, and a
request naming none, whatever the task's input is, is checked on *, as the
direct request is. The operations checked are the ones the table reads; one
the handler does not serve is then its own UnknownAction.

So a change set named by its ARN alone, a describeStackResources by
PhysicalResourceId alone and a request with no StackName are checked on *,
a stack or stack set CloudFormation does not hold with its id open, and a
stack id it does not hold as given. The six sets, the arm's own lookups and
the handler and service methods only they used are gone.
2026-11-15 15:21:19 -04:00
Jackson Price c895a7f9ad test(lambdaweb): remove redundant ZIP fixture wrapper (#8493) 2026-11-15 15:19:54 -04:00
galsuchetzky-act db36808d38 fix(bedrock): serialize guardrail name creation (#8484)
CreateGuardrail now runs under the service lock every other guardrail
writer already holds, so its name check and write can no longer overlap
another create: of two concurrent creates with the same name, the second
gets ConflictException instead of storing a second guardrail.

The new concurrency test and BedrockGuardrailLifecycleConcurrencyTest
stage their races through ParkingStoreAssertions instead of their own
threads and waits.

Closes #8483
2026-11-15 15:14:48 -04:00
jibin-jusdb fdbcbb68ec feat(elasticache): IncreaseReplicaCount, DecreaseReplicaCount and TestFailover (#7881)
* feat(elasticache): IncreaseReplicaCount, DecreaseReplicaCount and TestFailover
* fix(elasticache): refuse a replica count change or failover without a ReplicationGroupId
* fix(elasticache): number a group's members so a decrease keeps the primary
2026-11-15 15:13:56 -04:00
mrfelek edb42cebf1 test: capture log records through LogCapture.capture (#8492) 2026-11-15 15:01:50 -04:00
Priamo Germosen 8206115dc8 feat(athena): run Iceberg CREATE TABLE, DML and VACUUM through Glue's Iceberg REST catalog (#8488) 2026-11-15 14:52:36 -04:00
Andre Kurait dbfe6e0769 fix(cloudwatch): bound inflated metric request bodies (#8490) 2026-11-15 14:51:29 -04:00
Jackson PriceandAndre Kurait b13db563c9 fix(testing): retain region while polling executions (#8482)
StepFunctionsExecutions.runInRegion polled its execution through the
unsigned describe helper, so every poll after StartExecution went to the
default Region. It now polls with the same Region-scoped Authorization
header as its other calls. The regional and unsigned paths share one
DescribeExecution request and its status check, and
StepFunctionsExecutionsTest pins the Region on every poll for each
terminal status and that both unsigned helpers still send no
Authorization header.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-15 14:50:44 -04:00
Andre Kurait 42ead66324 fix(ecs): quiesce task producers before container teardown (#8214) 2026-11-15 14:46:26 -04:00
Koushik Dutta 07ef865dfa fix(dsql): allow explicit NULL in ALTER TABLE ADD COLUMN (#8489)
DSQL's statement checker listed NULL among the column constraints that
ALTER TABLE ADD COLUMN refuses, so an explicit nullable marker, which
Laravel's schema builder writes for every nullable column, was rejected
with 0A000. A bare NULL now passes through to PostgreSQL; NOT NULL,
DEFAULT and the other column constraints are still refused.

Closes #8485
2026-11-15 14:43:51 -04:00
Jackson Price be18211c98 test(lambda): share Node.js ZIP fixtures across services (#8434) 2026-11-15 14:26:55 -04:00
Oleksandr Nikolaichuk f534c1c431 fix(cloudformation): replace a DynamoDB table when the engine says its create-only properties changed (#8480) 2026-11-15 14:21:04 -04:00
Matheus André ea594d8d2a feat(ec2): CreateSnapshot, DeleteSnapshot and CopySnapshot for EBS volumes (#8360)
EC2 now serves CreateSnapshot, DeleteSnapshot and CopySnapshot for EBS
volumes. CreateSnapshot takes the volume's size and encryption, is owned
by the caller and accepts snapshot tags from TagSpecification.
DeleteSnapshot removes the snapshot and its tags, and refuses with
InvalidSnapshot.InUse while a registered AMI uses it. CopySnapshot copies
from SourceRegion into the request's Region as a new snapshot, encrypted
when the source is, when Encrypted=true or when the destination's
encryption by default says so, without the source's tags. All three
honor DryRun, keeping the error the real call would give.

An unsigned, unversioned CopySnapshot now routes to EC2, since Floci's
ElastiCache does not serve it. RegisterImage builds its snapshot records
through the same helper.

Closes #7943
2026-11-15 14:14:27 -04:00
Andre Kurait 0eef65385d test(kinesis): make split publication regression deterministic (#8477) 2026-11-15 14:06:20 -04:00
Jimmy Liu Jia 055ef5faca fix(kinesis): make UpdateShardCount atomic (#8442) 2026-11-15 14:01:41 -04:00
mrfelek 44dea210a6 test: share the log record formatting in LogCapture (#8475)
Nine test classes each formatted a captured LogRecord themselves, running
MessageFormat on the pattern when the backend still carried the
parameters beside it. LogCapture.formatted now does it once, next to
LogCapture.capture, and they use it.

It asks the backend instead of running MessageFormat itself: a JBoss
LogManager record formats itself in its own style, so printf-style
records (infof, warnf) come out filled in, and any other record is
formatted as java.util.logging.Formatter.formatMessage does, leaving a
pattern it cannot read as it is. A record without a message reads
"null". The assertions are unchanged.
2026-11-15 14:01:26 -04:00
Priamo Germosen 6be7641359 feat(codeartifact): list a package version's direct dependencies (#8474)
Adds ListPackageVersionDependencies, extracted from each format's own metadata
file: the POM for Maven, package.json for npm, the wheel/sdist metadata for
pypi, and the .nuspec for NuGet. Scoped to exactly npm/pypi/maven/nuget,
matching AWS's own documented Valid Values for this action's format
parameter; generic, cargo, ruby, and swift are rejected with a
ValidationException even though cargo's own sparse index already carries the
data, since AWS does not document cargo as a valid format for this specific
action.

A new RepositorySidecarManager#listPackageVersionDependencies default method
(throwing UnsupportedOperationException, the same convention
listPackageVersionAssetNames already uses) is overridden by all four valid
formats' sidecar clients:

- ReposiliteSidecarClient tries the version's standard release POM name
  first, falling back to the real directory listing for a -SNAPSHOT
  version's own timestamped filename (and surfacing a genuine fetch error
  through that same fallback, rather than reporting it as an empty
  dependency list), and parses it with a new PomDependencies helper. That
  helper only ever walks direct children of a known element rather than
  Document#getElementsByTagName, specifically so a managed version pin under
  dependencyManagement or a conditionally-activated dependency under profiles
  is never mistaken for a real, always-active dependency. One synthetic
  "parent"-typed entry is emitted when <parent> is present. No ${property}
  placeholder resolution on a dependency's raw version text, a documented
  limitation.
- VerdaccioSidecarClient reads dependencies/devDependencies/
  peerDependencies/optionalDependencies straight off the already-fetched
  packument's version document, splitting a scoped dependency name the same
  way CodeArtifactNpmDataPlane already does for the package's own name.
- BagetterSidecarClient reuses the same already-proven .nuspec fetch
  fetchPackageVersionReadme falls back to, with NuspecXml extended with a new
  dependencies() method that flattens every <group targetFramework> block
  (and the older schema's bare <dependency> with no group wrapper) into one
  list.
- PypiserverSidecarClient is new ground: a new PypiVersionMetadata helper
  opens a real wheel via plain ZipInputStream, or an sdist via GZIPInputStream
  plus a new minimal hand-rolled TAR reader (classic 512-byte headers only,
  no long-name or PAX support) for .tar.gz/.tgz, or via ZipInputStream for a
  .zip sdist, bounding the total bytes it will ever decompress while
  scanning one archive so a small, highly compressible entry ahead of the
  real metadata entry cannot force unbounded decompression. Only the exact
  top-level dist-info/METADATA or PKG-INFO entry is matched, never a nested
  one, so a wheel or sdist that vendors another package's own dist-info
  alongside its own cannot have that vendored entry mistaken for the real
  one. Requires-Dist headers are parsed with RFC822 continuation-line
  folding, stopping at the blank line that ends the real header block so a
  Requires-Dist-looking line inside the package's own long description is
  never read as a real dependency. Any "; extra == ..." environment marker
  is kept verbatim in versionRequirement rather than stripped, since
  PackageDependency has no marker field. A release available only as a real
  .tar.bz2/.tar.xz sdist is reported as having no dependencies rather than
  attempted, since bzip2/xz decompression would need a new runtime
  dependency this codebase deliberately avoids.

XmlParser gained a new parseDocument(byte[]) overload so a POM or .nuspec's
own raw bytes reach the parser directly: the existing String-based overload
pre-decodes as UTF-8 before the parser ever sees the original bytes, which
would silently corrupt or fail to parse a document that declares a different
encoding. PomDependencies and NuspecXml both now go through the byte-based
overload.

CodeArtifactService#listPackageVersionDependencies validates the format
against this narrower set before the shared validatePackageCoordinates call,
which already enforces the maven-namespace-required and
pypi/nuget-namespace-forbidden rules AWS documents for this action.
Pagination's cursor now folds in each entry's own original-list index as a
final tiebreaker, so two byte-for-byte identical dependencies (e.g. the same
NuGet package id declared under two different target-framework groups with
the same version requirement) never share a cursor and silently drop across
a page boundary.

Verified with standalone parser unit tests, per-client wire-contract tests
against a JDK HttpServer fake, CodeArtifactServiceTest dispatch and
validation cases, and a live Docker-gated round trip added to all four
existing format Docker integration tests, each publishing a real artifact
with real dependency metadata through the real sidecar container.
2026-11-15 13:49:06 -04:00
Priamo Germosen 5059a3cd40 feat(glue): serve AWS Glue's Iceberg REST endpoint (#8472)
AWS Glue serves the Apache Iceberg REST catalog at
glue.<region>.amazonaws.com/iceberg, the catalog Spark, PyIceberg,
Trino and DuckDB attach to read and write Glue's Iceberg tables. Floci
had no such endpoint, so none of them could write an Iceberg table
through it, and DuckDB, which writes Iceberg only through an attached
catalog, could not write one at all.

Floci now serves it at /iceberg, routed by the request's signing
service as other contested REST paths are, with the twelve operations
AWS lists for it. A namespace is a Glue database and a table a Glue
table with table_type ICEBERG. The writer writes data files and
manifests; a commit checks the request's requirements, applies its
updates to the table's metadata JSON, writes the next metadata file
next to the last one and moves the Glue table's metadata_location to
it, refused with CommitFailedException when the Glue table changed
since. A staged create is committed with assert-create, as DuckDB and
Spark create tables. No Iceberg library is involved.
2026-11-15 13:48:35 -04:00
mrfelek 7872b07c43 fix(autoscaling): register instances with a target group on attach and deregister them on detach (#8469) 2026-11-15 13:48:23 -04:00
Priamo Germosen f59990e270 fix(mwaa): put an environment's Airflow container on its VPC's network (#8470)
An environment's NetworkConfiguration names the subnets Amazon MWAA
runs its workers in, but the Airflow container stayed on Floci's own
network, so a DAG could not reach an EC2 instance, or anything else in
the VPC, at the private address EC2 reports.

Before the container starts, it now joins its VPC's Docker network at
an address leased from the first subnet, as EC2 instances and
VPC-configured Lambda functions do, and keeps the network it was
created on, where its metadata database is. The address goes back once
the container is removed, on delete or after a failed start. A subnet
EC2 does not know, or VPC networks switched off, leaves it as before.
2026-11-15 13:47:59 -04:00
Priamo Germosen f71476037a feat(emr): write the node files AWS documents on a cluster's nodes (#8473)
An EMR node keeps files about itself that bootstrap actions read to tell
which node they run on. AWS documents two fields of them: the EMR
Management Guide's bootstrap action reads isMaster from
/mnt/var/lib/info/instance.json, and AWS's Knowledge Center reads
instanceRole from /mnt/var/lib/instance-controller/extraInstanceData.json
with jq, comparing it, lowercased, with master, core and task.

Floci now writes those two fields, and nothing else: isMaster true and
instanceRole MASTER in the bootstrap actions' container and each step's,
which run as on the primary node, and in the primary node's own, and
false with CORE or TASK in each core or task node's, the roles as the
API's InstanceRoleType names them. They are written as the image's
hadoop user, whose /mnt is, so Hive's metastore can still write under
/mnt/var/lib, and moved into place whole, as steps share /mnt. The
bootstrap container's copies go before it is kept as the cluster's image.
Files that cannot be written fail the bootstrap, the step or the node.
2026-11-15 13:45:23 -04:00
galsuchetzky-act f491a77dba fix(bedrock): serialize guardrail updates and deletion (#7843)
* fix(bedrock): serialize guardrail updates and deletion
* fix(bedrock): serialize guardrail version creation
* test(bedrock): stage the guardrail race with the shared ParkingStore
2026-11-15 12:30:43 -04:00
Oleksandr Nikolaichuk e3f18da59e fix(cloudformation): name an S3 bucket from BucketNamePrefix in the account regional namespace (#8467) 2026-11-15 11:51:08 -04:00
mrfelek 696eeda8e0 fix(mq): don't write a broker deleted during its readiness check back as RUNNING (#8468)
The Amazon MQ readiness poller no longer writes a deleted broker back as
RUNNING. After the blocking readiness check it reads the broker again
under the broker's lock and only writes RUNNING when the broker is still
there and still CREATION_IN_PROGRESS. DeleteBroker reads the broker and
stores it as DELETION_IN_PROGRESS under the same lock before stopping its
container, and removes it under the lock afterwards, so a delete racing
the poller, or a second delete of the same broker, can't store it again.

The stored brokers' locks are kept apart from the name locks CreateBroker
holds while its container starts, so the poller and DeleteBroker never
wait on another broker's create.
2026-11-15 11:48:40 -04:00
Priamo Germosen 9bc2f16a9d fix(stepfunctions): check Lambda event source mapping tasks from the generated request resources (#8466)
TaskPermissions gave a Step Functions listEventSourceMappings task a literal *
and built updateEventSourceMapping's event-source-mapping:<Uuid> itself. With
Lambda now read whole from iam-request-resources.json, both go through the
generic requestPermissions, on the request the integration sends:
SdkManagementTaskInvoker.lambdaRequest takes the mapping's UUID, the path label
the API takes, from the task's Uuid, as the invoker already did, so
ListEventSourceMappings is checked on * because its action acts on no
resource type, and UpdateEventSourceMapping on the mapping its UUID names.
The checks are the same as before.
2026-11-15 11:42:22 -04:00
Maxence LEFEBVRE 9e05c07bfc feat(cloudformation): provision ElastiCache replication groups (#8448)
CloudFormation now provisions AWS::ElastiCache::ReplicationGroup instead
of completing the stack with no cache behind it. The group is created
through the ElastiCache service, Ref returns its id, and Fn::GetAtt
exposes the configuration endpoint for a cluster-mode group or the
primary, reader and per-node read endpoints otherwise. A create-only
change replaces the group, an explicit ReplicationGroupId that stays the
same is refused, and an update that reuses the group warns only about the
properties it ignores.

Optional booleans in the ElastiCache, IoT authorizer, API Gateway API key
and StackSet provisioners are read through
ProvisionContext.resolveOptionalBoolean, which refuses a value that is
neither true nor false instead of reading it as false.

Closes #8447
2026-11-15 11:40:48 -04:00
Vũ Thế Huy 3fa20af859 feat(redshift): pin the authorized Iceberg snapshot for Spectrum scans (#8437) 2026-11-15 11:27:12 -04:00
Oleksandr Nikolaichuk c1bc65060d fix(cloudformation): replace an ECR repository when the engine says its create-only properties changed (#8461) 2026-11-15 11:10:34 -04:00
Maxence LEFEBVRE f930634fa8 fix(elbv2): route only to healthy targets while any target is healthy (#8452)
An ALB routed to targets still in the initial state beside healthy ones,
so a newly registered target that was not ready took requests before its
first health check passed. While a target group has a healthy target,
the proxy now routes only to its healthy targets; when none is healthy it
still fails open to every registered target, matching the ALB guide's
"Before a target can receive requests from the load balancer, it must
pass the initial health checks". The integration tests share their
target group and health state helpers.

Closes #8451
2026-11-15 10:58:44 -04:00
Mahmoud Khalifa 4fc41cc683 fix(kinesis): cap ListShards page size at 1000 (#8387) 2026-11-15 10:50:12 -04:00
Priamo Germosen 92a61c2b86 fix(s3tables): check S3 Tables requests under IAM enforcement (#8424)
Under IAM enforcement no S3 Tables request was checked: its model was
not among the vendored REST routes and its namespace's request
resources were not read, so no request mapped to an action and every
call went through, DeleteTableBucket and the policy calls included.

s3tables is now vendored by regen_rest_routes.py and read by the
request-resources, tag-on-create and passed-role generators. A table
bucket call is checked on the bucket its path names. A table's ARN ends
in an id the service mints, which no request carries: a request names
the table by its table bucket's ARN, its namespace and its name. A new
generic rule in the request-resources generator reads such a type,
found by its service by those path labels (or GetTable's query string
members, when tableArn is absent), instead of filling the bucket's name
from the table's name or reading the bucket's ARN as the table's.
S3TablesStoredResourceArns answers it from the stored table, read only.
2026-11-15 10:47:17 -04:00
Rashen Anupama 0a40ab728c fix(ecs): create the initial CodeDeploy task set (#8464)
Creating an ECS service with the CODE_DEPLOY deployment controller now
creates its initial PRIMARY task set at 100 percent scale, as the ECS
guide describes. The set reuses the service scheduler's deployment ID, so
its running and pending counts follow the tasks the scheduler already
launches, and it reaches STEADY_STATE once they converge. CreateService,
DescribeServices and DescribeTaskSets return it, CODE_DEPLOY services
report an empty deployments list, and the set is removed with the
service. Task sets added through CreateTaskSet keep their simulated
counts.

Closes #8235
2026-11-15 10:46:20 -04:00
Wei-Lun Li 00fdb95ab5 perf(dynamodb): read Query and Scan expressions once per request (#8454)
Query parsed its key condition, and Query and Scan their filter, for
every item, and every returned item rebuilt the projection. Each
expression is now parsed when the first item reaches it and evaluated
against the rest, and Query, Scan and BatchGetItem build one projection
per request through ProjectionEvaluator.projector. A scan that evaluates
no item still reads no filter, as before, and the list-index pattern is
compiled once.

Closes #8462
2026-11-15 10:34:06 -04:00
Oleksandr Nikolaichuk d7c42e2065 fix(cloudformation): replace a log group through the engine and delete the old one only after the update commits (#8463)
* fix(cloudformation): replace a log group through the engine and delete the old one only after the update commits
* refactor: use the derived record form
* test(cloudformation): pin a renamed log group surviving a rolled-back update
* test(cloudformation): bring the log group unit tests to engine-decided replacement
* fix: drop the retired name-mode attribute on update
2026-11-15 10:20:42 -04:00
Priamo Germosen c1a8a3b3ac feat(emr): serve a cluster's nodes their instance metadata (#8449)
Every node of an EMR cluster is an EC2 instance, so any process on it,
a bootstrap action, a step or a Spark executor, reads its instance
metadata at 169.254.169.254. In the docker runner mode nothing answered
there: a bootstrap script reading its availability zone got nothing.

A relay container on the cluster's own Docker network now holds that
address as a link-local one, as ECS's credentials endpoint is held, and
each of the cluster's containers gets a link-local address of its own
there, so none needs privileges. The relay forwards to Floci's EC2
metadata server, naming its caller in X-Forwarded-For, which the server
reads only from the relays it trusts; the server answers each container
as the instance it is: the bootstrap actions and each step as the
primary node, each core or task node's container as that node, with the
instance id, type, private address and name ListInstances gives, the
cluster's availability zone and its JobFlowRole instance profile. The
metadata server now starts for the docker runner mode too.

DescribeCluster's Ec2InstanceAttributes now gives Ec2AvailabilityZone,
the one RunJobFlow's Instances.Placement names, else the Region's first,
so the metadata and the cluster agree.
2026-11-15 09:59:49 -04:00