Commit Graph
4897 Commits
Author SHA1 Message Date
jwoa95 7331a6b1ce feat(rds): publish native stop and start lifecycle events (#8614) (#8622) 2026-11-16 15:34:03 -04:00
Andre Kurait 024162483c test(emr): prepare Hive release images during fixture setup (#8630)
EmrHiveStepsDockerIntegrationTest prepares the emr-7.5.0 Hive release image once, in a @BeforeAll bounded at six minutes, through EmrService.releaseImage (now package-private), and releases its lease. The first Hive scenario no longer pays the image composition inside its two-minute method limit, which made it time out on slower runners.

Closes #7929
2026-11-16 15:25:37 -04:00
Andre Kurait f5453b9585 fix(docker): avoid global teardown admission waits (#6581)
* fix(docker): avoid global teardown admission waits
* test(docker): observe teardown stop execution
* test(ec2): match account-aware private IP allocation
* chore(docker): remove obsolete teardown admission wrappers
2026-11-16 15:19:57 -04:00
Priamo Germosen 94fcf5cbf3 fix(lambda): hold the subnets a function's VpcConfig names (#8609)
On AWS a function's Hyperplane network interfaces sit in the subnets
its VpcConfig names, and EC2 refuses DeleteSubnet, and so DeleteVpc,
while one is there. Floci's Lambda never told EC2 a function used a
subnet, so DeleteSubnet succeeded under a VPC-configured function and
left it naming a subnet that was gone.

- LambdaService is a VpcDependencyProvider: a function of the caller's
  account, or a published version of one, holds each subnet its
  VpcConfig names and the VPC it is configured in
  (LambdaFunctionStore.listWithVersionsForAccount, which also reads a
  record stored before accounts were kept apart, unprefixed until it
  is next read).
- CreateFunction and UpdateFunctionConfiguration save a function that
  names subnets under EC2's subnet lock, so a DeleteSubnet either sees
  it or runs before it is stored. A VpcConfig the request set is
  resolved again under the lock, so a subnet deleted since the request
  was validated is unknown, as one never created is, and the function
  infers no VPC from it.

ECS awsvpc tasks already hold their subnet through the network
interface each task is given, which DeleteSubnet counts.

LambdaVpcResourceValidationIntegrationTest has DeleteSubnet refused
under a function, then under its published version once $LATEST moves
to another subnet, and allowed once the version is deleted, and a
subnet deleted while a function is created leaves it no inferred VPC.
LambdaFunctionStoreAccountScopeTest covers the unprefixed record.
ec2.md and lambda.md say so.
2026-11-16 15:04:43 -04:00
Priamo Germosen 3d6f59c064 fix(dynamodb): give resource-tag conditions the tags of the table a request names (#8623)
The generated request resources give DynamoDB's table, index and stream
types aws:ResourceTag/ keys, but DynamoDB had no StoredResourceArns, so
a condition on a table's tags saw none. DynamoDbStoredResourceArns now
answers from the selected backend: the native one reads the table
stored under the ARN in the account and Region it names, a
pre-multi-account one of the default account in place, matched on the
whole ARN; the DynamoDB Local one reads the tags Floci records for it
while DynamoDB Local still has the table. An index ARN gets its table's
tags when the table holds that index; a stream ARN gets none. Native tag
writes, CreateTable's included, now replace the map whole under one
lock, keeping tags already put, and the field is volatile.
2026-11-16 15:02:13 -04:00
Priamo Germosen 9de6cd74b8 feat(iam): read the MFA device a session is minted behind and publish its keys (#8602)
Enabling an MFA device recorded state and changed nothing.
aws:MultiFactorAuthPresent and aws:MultiFactorAuthAge reached no request, so a
policy conditioned on either could not behave as it does on AWS, and
GetSessionToken and AssumeRole accepted SerialNumber and TokenCode and ignored
both, so no session could satisfy such a condition in the first place.

Both keys are published now from the credentials a request was signed with,
which is where the guide puts their availability: a long-term key carries
neither, and a session carries the first one, true only where a device was
used. A federated-user session carries neither, the guide putting federated
identities with the long-term keys. They are written by the one writer that
already says who is calling, so the enforcement filter, the per-resource and
per-item contexts, trust policies and the paths that evaluate a policy
themselves all see them at once.

The two STS operations hold a presented code to the seed of the device its
serial names, require that device to be enabled for the signing identity, and
spend the step it matched, since RFC 6238 has a verifier refuse the second
attempt of a code for the same time step. A key IAM holds nowhere has its claim
taken as made: there is no identity behind it whose devices could be checked,
and this emulator already reads such a key as acting for itself. A claim that
fails is refused with AccessDenied, the outcome AWS documents.

How far the authentication reaches is AWS's own line. GetSessionToken
credentials "include MFA information", so that session is MFA-authenticated on
its own requests. AssumeRole credentials "do not include MFA information in the
context", and "once the user has assumed the role, no further MFA checks are
made", so the device decides the assume and stops there. The device a call
presents belongs to that request, so both the trust policy and the caller's own
permission to make the call see it; the claim is read once per request and held
on it, a code being spendable only once.
2026-11-16 15:00:51 -04:00
Oleksandr Nikolaichuk b2def4f421 fix(cloudformation): an update that adds a create-only value replaces the resource (#8471) 2026-11-16 15:00:11 -04:00
Allen Sanborn 39f2426ba2 fix(rds): accept MySQL and MariaDB sources in CreateDBInstanceReadReplica (#7857)
CreateDBInstanceReadReplica now accepts MySQL and MariaDB sources and initialises the replica from a mysqldump or mariadb-dump copy of the source, the same copy CreateDBSnapshot uses. One engine set gates both the replica check and the SupportsReadReplica flag DescribeDBEngineVersions reports.

The copy passes MYSQL_PWD in the exec's environment rather than its command, uploads the dump readable by root only and removes it after the restore, keeps a name containing a newline whole, and replays each SHOW GRANTS row as one statement, so MariaDB's SET DEFAULT ROLE and MySQL's partial revokes restore. Other engines are still refused with InvalidDBInstanceState.
2026-11-16 14:50:00 -04:00
Saim Zaib f3116c8b8d refactor: share the extra-CA client and test config setup (#8629)
ContainerCaBundle.httpClientBuilder(sslContext) gives the HttpClient builder that trusts Floci's outbound context, or the JVM's default trust when there is none, with hostname verification left on. EventBridge API destinations, SNS HTTP and HTTPS delivery, the API Gateway HTTP proxy and WebSocket integrations start from it and keep their own settings.

The extra-CA trust tests share ExtraCaConfigs for their stubbed TLS config, and ApiGatewayExecuteController.proxyOptions names HttpProxyInvoker.ProxyOptions without its package. No behaviour change.
2026-11-16 14:47:28 -04:00
Jackson Price 8ad3e2b419 fix(cloudformation): replace changed launch configurations safely (#8599)
* fix(cloudformation): replace changed launch configurations safely
* fix(autoscaling): guard launch configuration replacement races
* fix(cloudformation): reuse replacement decisions and valid fixtures
2026-11-16 14:29:15 -04:00
mrfelek 43363c0f8d fix(redshift): keep two creates of one parameter or subnet group name from both succeeding (#8605)
* fix(redshift): keep two creates of one parameter or subnet group name from both succeeding
* fix(redshift): refuse a taken subnet group name before asking EC2 about its subnets
2026-11-16 14:24:05 -04:00
Joaquín Gamboa faf2287433 refactor(dsql): put the cluster database behind a backend strategy (#8595) 2026-11-16 14:21:57 -04:00
Priamo Germosen a5064a2f5a fix(redshift-serverless): give resource-tag conditions the tags of the namespace, workgroup or snapshot a request names (#8615)
The generated request resources give Redshift Serverless's namespace,
workgroup, snapshot and recovery point types aws:ResourceTag/ keys, but
RedshiftServerlessService did not answer storedTags, so a condition on
their tags saw none. It now reads the namespace, the workgroup or the
snapshot stored under the ARN in the account and Region it names, a
pre-multi-account one of the default account included, in place,
matched on the whole ARN. A tag change is already stored on a copy, so
the tags read are one whole set.
2026-11-16 14:01:51 -04:00
Priamo Germosen d8460bc305 feat(ec2): publish ports open to every address under security-group enforcement (#8610)
With security-group enforcement on, the socat publisher was switched
off, so an application port a security group opened was never reachable
from the host. Docker can replace a host client's address (Docker
Desktop shows every client as its gateway), so no rule narrower than the
whole internet can be judged on it.

Host-published access now counts as traffic from outside the VPC: with
enforcement on, a port is published only when an ingress rule opens it
to 0.0.0.0/0, or failing that ::/0, which admit a client whatever
address it arrives with. The sidecar dials the instance through its
protected namespace's helper, on the helper's network: on its IPv4
address, or on its Docker IPv6 address for a port only ::/0 opens, which
is not published on a network without IPv6. A client's family is still
seen on the host, so a port only one family's rule opens binds only that
family's host addresses. A port whose rules move family is republished,
the family is persisted for restore, and a restart brings each running
instance's forwards in line with its current rules. Ports opened after
launch publish and revoking removes them, as with enforcement off; a
port only a narrower CIDR, a prefix list or a group reference opens
stays reachable on the direct container path.

Also brings Ec2ServiceTest's never-allocates check onto the
three-argument allocatePrivateIp that #8598 introduced, which left
main's tests not compiling after #8576.
2026-11-16 13:26:43 -04:00
Joaquín Gamboa 269a00fe75 fix(dsql): record a session at read committed (#8594)
DsqlEndpoint.recordSession purges the rows of ended sessions from sys.session_identity before recording the new one. At the cluster database's repeatable read, two logins purging the same ended session failed one another with "could not serialize access due to concurrent delete", and the losing login was refused as access denied. The recording connection now runs at read committed, where the second purge passes over the row the first deleted; the record stays one INSERT ... ON CONFLICT keyed by the backend pid, and client sessions keep repeatable read.

DsqlSessionRecordIntegrationTest reproduces it against a Docker-backed cluster.
2026-11-16 13:02:50 -04:00
Priamo Germosen cf3d7e827c fix(athena): give resource-tag conditions the tags of the workgroup or data catalog a request names (#8607)
The generated request resources give Athena's workgroup and data catalog
types aws:ResourceTag/ keys, but AthenaStoredResourceArns did not answer
storedTags, so a condition on their tags saw none. It now answers from
AthenaService.storedTags, which reads the workgroup or the data catalog
stored under the ARN in the account and Region it names, a
pre-multi-account one of the default account in place, matched on the
whole ARN; the built-in primary workgroup and AwsDataCatalog carry none.
The tag lists are volatile, as tagging already replaces a list whole.
2026-11-16 12:57:45 -04:00
Murtuza Chhil 057684feac feat(paymentcryptography): the multi-region keys (#8541)
* feat(paymentcryptography): the multi-region keys
* fix(paymentcryptography): the multi-region replication refuses what it cannot carry out
* test(compatibility-tests): the multi-region tests leave the account as they found it
* fix(paymentcryptography): the default replication regions are the ones of the region
* test(compatibility-tests): the multi-region tests keep their settings to their own region
* docs(paymentcryptography): what the multi-region replication does
* fix(paymentcryptography): the rules the multi-region replication follows
* chore(paymentcryptography): the shape check settles the type of a list of names
* style(paymentcryptography): the accessor the edit left on one line
* docs(paymentcryptography): the page says what the replication does
* fix(paymentcryptography): the replica answers as the reference answers
* fix(paymentcryptography): a key is replicated within the partition it is in
* style(paymentcryptography): the rules the replication shares are written once
* fix(paymentcryptography): the partition of a region is the one its ARN carries
* style(paymentcryptography): the tests of the service share the key they make
* style(compatibility-tests): the compatibility tests share the key they make
2026-11-16 12:47:19 -04:00
Andre Kurait c12db764e6 fix(pipes): share SQS records with Lambda pollers (#8604)
EventBridge Pipes and Lambda event source mappings now build their SQS records through one SqsEventRecordBuilder, the record Lambda already sent. Pipes gains the FIFO attributes SequenceNumber, MessageGroupId and MessageDeduplicationId, md5OfMessageAttributes when present, and a default dataType for message attributes.

A message without a first-receive timestamp takes the Pipes poller's clock instead of wall time, without writing it back to the message. Lambda's record is unchanged.

Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-16 12:12:09 -04:00
Priamo Germosen bb6b308fdb fix(ec2): give each account's VPC its own Docker network (#8598)
VpcNetworkManager keyed its VPC bindings, subnets and Docker networks
by Region and id alone, and every account's default VPC and subnets
share one id (vpc-default-<region>), so two accounts' default VPCs
shared one binding, one Docker network and one lease table: EC2
instances, Lambda functions, ECS tasks, EKS nodes and the MWAA,
CodeBuild and Batch containers of two accounts landed on the same
bridge. Ec2Service worked around the shared lease table by counting
every account's resources as holding the subnet's addresses.

- VpcNetworkManager takes the account on every call and keys bindings
  and subnets by account, Region and id. A network carries the account
  in its labels and, for any account but the default one, in its name;
  the default account's keeps the name it always had, so its live
  networks outlive the upgrade. A surviving network of another
  account's VPC of the same id is a collision, as another Region's is.
- Startup reconciliation asks which accounts declare a VPC of an id in a
  Region (DeclaredVpcs). A labelled network is kept while its account
  declares the VPC; one an older version labelled with no account
  belongs to the account declaring its VPC, the default account first,
  and a non-default account's VPC keeps using that account-less network,
  so its live containers stay attached across the upgrade.
- Ec2Service passes the caller's account, and the restore each stored
  VPC's, subnet's and instance's own. The helpers other services call
  (allocate, reserve, release, attach, detach) take the owning account
  and run as it, as a caller may run outside the owner's request: a
  provisioned or cross-account Lambda launch, a container removed in
  the background. Lambda, ECS, EKS and VpcContainerLeases (MWAA,
  CodeBuild, Batch) pass the account they already hold; Lambda's and
  EKS's leases carry it to their release.
- An address is held by the caller's account's resources alone, as its
  network and lease table are its own: the every-account holding check
  goes, and the container lease map is keyed by account.

VpcNetworkManagerTest covers two accounts' default VPCs getting a
network each (the second's identical CIDR substituted), another
account's surviving network as a collision, a labelled network kept
only while its account declares the VPC, and an older version's
unlabelled network kept and adopted for the account declaring it. Ec2ServiceTest's cross-account
tests now pin the per-account holding. ec2.md says so.
2026-11-16 12:11:28 -04:00
galsuchetzky-act 06a5ce4219 fix(lambda): preserve each MicroVM version build specification (#8600)
Each MicroVM image version now records the build inputs it was created with (code artifact URI, base image ARN and version, build role) as an immutable BuildSpec. GetMicrovmImageVersion and ListMicrovmImageVersions read that snapshot instead of the image's latest inputs, so an update no longer rewrites what older versions report.

Versions stored before this change have no snapshot and fall back to their image's last known inputs; the docs note that their original inputs cannot be recovered.

Closes #7312
2026-11-16 12:04:42 -04:00
Priamo Germosen 975632df5c test(emr): run an EMR cluster from Floci in a container nightly (#8591)
Floci in a container of its own, with the Docker socket, is how many
users run it, and an EMR cluster's nodes are then its siblings on a
network of their own: Floci's container joins that network so the
cluster's metastore service reaches Floci's S3, and leaves it once the
cluster has ended. That path had unit tests and one manual run, as no
test ran Floci in a container for EMR.

EmrFlociContainerNightlyIntegrationTest starts the Floci image the
nightly workflow builds from the commit (docker/Dockerfile.jvm-package)
with the socket and the docker runner mode, runs a cluster with Hive and
Spark on it, and checks that a Hive step's tables over rows in S3 are
read by a Spark step through the metastore, that a later Hive step reads
the table the Spark step made, that Floci's container is on the
cluster's network meanwhile, and that it is off it once the cluster has
ended. A failing step's message carries its stderr and Floci's log.

The nightly workflow builds the image and names it to the checks; the
Spark and Hive images are prefetched for the class. The Hive and Spark
jobs EmrHiveStepsDockerIntegrationTest wrote inline are HiveCatalogJobs,
the step EMR tests added in two copies is EmrRequests.addStep, and the
Docker client two RDS tests built by hand is TestDockerClients.local.
2026-11-16 12:02:02 -04:00
Priamo Germosen d58d9ecac9 fix(codebuild): give resource-tag conditions the tags of the project or report group a request names (#8596)
The generated request resources give CodeBuild's project and report
group types aws:ResourceTag/ keys, but CodeBuildStoredResourceArns did
not answer storedTags, so a condition on their tags saw none. It now
answers from CodeBuildService.storedTags, which reads the project or
the report group stored under the ARN in the account and Region it
names, a pre-multi-account one of the default account in place,
matched on the whole ARN, and gives its key and value pairs as tags.
The tag lists are volatile, as CodeBuild replaces a resource's list
whole and never changes one in place.
2026-11-16 11:53:55 -04:00
luiseterc 48be04cc21 fix(ec2): allocate requested secondary addresses when creating ENIs (#8576) 2026-11-16 11:30:50 -04:00
Priamo Germosen 3e52c94e39 feat(ec2): enforce security groups on ENI IPv6 addresses (#8593)
With security-group enforcement on, a managed ENI's identity was its
IPv4 address alone, so a rule naming an IPv6 range never matched a peer
on the IPv6 addresses its ENI now holds.

Each protected endpoint now carries its ENI's IPv6 addresses next to the
IPv4 one, and its helper's Docker IPv6 address next to the IPv4
transport. The compiler writes a peer's rules per identity: a rule
matching one of its IPv6 addresses admits it on the IPv6 transport only,
never on the IPv4 one, and on a Docker network without IPv6 there is no
IPv6 identity to match. Every transport a peer has is dropped after its
rules, as the IPv4 one already was. The EC2 and ECS registrations pass
the ENI's IPv6 addresses, the firewall manager reads the helper's Docker
IPv6 address, and AssignIpv6Addresses and UnassignIpv6Addresses update
the ENI's firewall identity. Every Docker address a managed peer has is
dropped after its rules, its IPv6 one included when its ENI holds no
IPv6 address, and an ICMP rule is written only for the family it
belongs to. IPv6 changes to one ENI serialize through their firewall
update; an assign the firewall refuses is taken back out of the store,
and an unassign reaches the firewall before it is stored.

The README now documents enforcement: what it filters, that it needs
rootful Docker with Linux containers, how to turn it on, and that an
application port opened after launch is not published while it is on.

Part of #2564.
2026-11-16 11:29:01 -04:00
Priamo Germosen 6fd20879d5 fix(athena): type Hive partition values as their keys declare (#8590)
Athena types a partition value as its key declares. Floci left the
values DuckDB's Hive partitioning reads from column=value folders to
DuckDB's autocast, so a string key holding 2026-11-14 came back as a
DATE, and a date key's folder holding text no date is read as rows with
the guessed type. Delimited-text tables already read their values as
text and cast them; every other format did not.

- A partitioned table without a location template reads with
  hive_types_autocast = false, so each Hive partition value arrives as
  text, and buildProjection casts it to its key's declared type
  (GlueTableResolver.hivePartitionKeys), as it already did for
  delimited text.
- A projecting table in the default layout keeps only rows whose typed
  keys parse as their types (hiveValueFilter): Athena builds each path
  from values its projection generates, so a folder like dt=latest for
  a date key is one no query addresses, as the template layout already
  treats it.
- A date or timestamp key whose date projection sets a format is parsed
  with it in either layout (typedKey, strptimeFormat translating yyyy,
  yy, MM, dd, HH, mm, ss and literal text, a doubled quote being one
  quote, for try_strptime), so dt=20261116
  under yyyyMMdd reads as a date; a format with other pattern letters is
  cast as an ISO value. This closes the template layout's TODO too.
- Iceberg tables keep reading their own typed values.

AthenaPartitionTemplateSidecarIntegrationTest reads a string key
holding a date as VARCHAR, a date key as DATE, and skips a dt=latest
folder, and a yyyyMMdd date projection, against the real engine.
GlueViewDdlBuilderTest and GlueTableResolverTest cover the view and the
pattern translation.
athena.md says so.
2026-11-16 11:08:45 -04:00
Priamo Germosen bba2ac901e fix(iam): read the organization levels and scenario a simulation was handed (#8585)
Both policy simulators accepted OrderedOrganizationPolicyInputList and
ResourceHandlingOption and answered as though neither had been sent.

The levels now gate a simulation the way they gate the call it stands for,
through the same walk a live request takes through service control policies:
an action no level allows is an implicitDeny, a level that denies it is an
explicitDeny whatever the levels below allow, and a level carrying no
statements is skipped. A level whose document does not read as a policy is an
InvalidInput naming the item's position. The levels a call hands in are the
whole of the organization the simulation runs against, matching the console,
which includes SCPs only when the box is ticked.

A named scenario is held to the resources it requires, "to enforce the
presence of the required resources to ensure reliable simulation results", and
a value naming no published scenario is refused. A simulation that names no
scenario is left alone.

One difference from AWS's simulator is documented and open: AWS says its
simulator does not evaluate SCPs that have global conditions, while this walk
evaluates a condition in an SCP exactly as the live evaluation does.
2026-11-16 11:01:02 -04:00
mrfelek 4a7953bb0b fix(redshift): scope parameter groups, subnet groups, schedules, copy grants and integrations to their Region (#8565)
Redshift cluster parameter groups, subnet groups, snapshot schedules and snapshot copy grants are now stored under <region>::<name>, and zero-ETL integrations are listed, described and deleted only in the Region their ARN names, with names unique per Region.

The snapshot scheduler reads a cluster's schedule in the cluster's Region. EnableSnapshotCopy and snapshot copies look up the grant in the destination Region. The in-use checks for deleting a grant or schedule are scoped to the Region.

Records stored before this change move at startup. A subnet group goes to its subnets' Region and a copy grant to its KMS key's Region; anything else goes to the default Region. Every other Region where a cluster uses a record gets its own copy.

StorageJson in core.storage builds the mapper used by the persistent, hybrid and WAL storages, and copies a record through that form; AppConfigService.copy uses it too. AvailabilityZoneIds.regionOf gives a zone's Region for EFS, EKS and Redshift.

Part of #8218
2026-11-16 10:55:19 -04:00
mrfelek ad6ca74685 fix: keep Network Firewall, Route 53 Resolver and WAF v2 resources in their Region (#8564) 2026-11-16 10:54:09 -04:00
Priamo Germosen 1b54454b2d fix(stepfunctions): give resource-tag conditions the tags of the state machine or activity a request names (#8589)
The generated request resources give Step Functions' state machine,
version, alias, execution and activity types aws:ResourceTag/ keys, but
StepFunctionsService did not answer storedTags, so a condition on their
tags saw none. It now reads the state machine or the activity stored
under the ARN in the account and Region it names, in place, matched on
the whole ARN; a version the state machine holds and an execution have
the state machine's tags, as all versions of a state machine share its
tags and its executions inherit them, and an alias has none. Tagging
and untagging now put a new tag map in place of the old one under the
service's lock, so the lookup always copies one whole set and an update
copying the state machine no longer loses a tag written at the same
time. iam.md also names EventBridge and RDS, which answer it too.
2026-11-16 10:49:38 -04:00
Hector Ventura 66c5c98406 fix(ecs): resolve a service only in the request's cluster and Region (#8546) 2026-11-16 10:47:37 -04:00
Andre Kurait 2d6d122419 fix(lambda): use the poller clock for SQS event timestamps (#8586) 2026-11-16 10:43:04 -04:00
Vinícius Ribeiro a76c67f0c2 fix(rds): fail fast when the Docker daemon refuses the container create (#8581)
* fix(rds): fail fast when the Docker daemon refuses the container create
* fix(rds): keep a Docker timeout or throttling on create retryable
2026-11-16 10:41:59 -04:00
Priamo Germosen ed49e63bfa feat(ec2): assign and unassign ENI IPv6 addresses (#8588)
A network interface held no IPv6 address: CreateNetworkInterface ignored
Ipv6Addresses and Ipv6AddressCount, AssignIpv6Addresses and
UnassignIpv6Addresses were not implemented, and nothing reported an
ipv6AddressesSet, so a dual-stack subnet's interfaces looked IPv4-only.

CreateNetworkInterface now takes the named addresses or a count drawn
from the subnet's associated IPv6 block, with a random host part. Left
out, the subnet's AssignIpv6AddressOnCreation gives one address; an
explicit 0 overrides it, as the API reference says.
AssignIpv6Addresses reads Ipv6Addresses.N (the name the SDKs send) or
Ipv6AddressCount, needs one of them, and reports only the addresses it
added; UnassignIpv6Addresses reports only the ones the interface held.
Both work on standalone interfaces and on an instance's launch-created
one. An address outside the subnet's blocks answers InvalidParameterValue
and one another interface holds InvalidIPAddress.InUse; prefix
delegation answers UnsupportedOperation, a list with any count
InvalidParameterCombination, and a reserved address (a block's four first
and its last) InvalidParameterValue. An interface holds at most as many
IPv6 addresses as private IPv4 ones, and a block without enough free hosts
answers InsufficientFreeAddressesInSubnet. DescribeNetworkInterfaces and
DescribeInstances report ipv6AddressesSet, and a supplied interface keeps
its addresses on the instance it launches. Termination now releases
interfaces under the topology lock, and an IPv6 change writes back only
what is still stored.

Part of #2564.
2026-11-16 10:20:41 -04:00
Priamo Germosen 9ee8417f6c test(emr-serverless): run a custom image from Floci's ECR nightly (#8584)
An EMR Serverless application on a custom image in Floci's ECR had unit
tests for the digest it resolves (#8542) but no run that pushed an image
and pulled it back, as each run of it copies the whole 3.5 GB base image
into the registry. It is now a nightly check.

EmrServerlessCustomImageNightlyIntegrationTest builds the release's base
image with a FLOCI_IMAGE_BUILD marker, pushes it to a repository's tag in
Floci's ECR, removes the local copy, and runs a job that writes the marker
it sees. A second build pushed under the same tag is not seen by the
application that resolves its image as it starts until it starts again,
and is seen at once by one resolving it for each run. Floci listens on a
fixed port there, since the runner hands the Docker daemon
localhost:<floci.port> for an ECR image.

The class is enabled only by -Dnightly.checks.enabled=true, so the CI
shards skip it before Quarkus starts, and its base image is prefetched
only for the nightly checks. That property was -Dfloci.nightly=true, which
the first nightly run showed Floci's configuration refusing as a floci.*
name it does not know, so a Quarkus check never started; the workflow and
AGENTS.md name the new one. The part-file reader EmrDockerRunnerDockerIntegrationTest
kept to itself is S3TestClients.partFiles, shared by both.
2026-11-16 10:13:25 -04:00
Priamo Germosen c05769395c fix(athena): read a partitioned table through its registered partitions (#8587)
Athena reads a partitioned table through the partitions the Glue Data
Catalog holds for it, each from its own location, and a table whose
partitions are not loaded answers no rows. Floci read the table's whole
location with Hive partitioning instead: a folder no partition names
was read, a dropped partition's files still were, and a partition at a
location outside the table's, or in a non-Hive layout, was not.

- A Hive table with partition keys and no partition projection
  (GlueTableResolver.readsRegisteredPartitions) is read through the
  registered partitions holding data, each at its storage descriptor's
  location or <table location>/key=value/... for one that gives none
  (AthenaHiveDdlExecutor.defaultLocation).
- They are read together (registeredPartitionsSelect): one read of every
  partition's location, columns matched by name, so a partition written
  before a column was added reads NULL for it, each row joined by its
  file's path to a VALUES row of its partition's location and values,
  cast to the keys' types. Hive's __HIVE_DEFAULT_PARTITION__ is NULL,
  and a value the type cannot hold fails the query with Athena's
  HIVE_INVALID_PARTITION_VALUE.
- One listing of the table's location tells which partitions under it
  hold data; one elsewhere is listed on its own. The view is built once
  per batch for the qualified and unqualified views.
- A partition that does not give one value for each key, which Glue
  refuses on AWS, is skipped. No partition holding data answers no rows,
  typed as the declared columns.

AthenaDelimitedTextSidecarIntegrationTest reads a partition at its
default folder and one outside the table's location, skips an
unregistered folder, answers no rows with none registered, and fails a
date key holding 'soon' with HIVE_INVALID_PARTITION_VALUE; it fails
without this change. GlueViewDdlBuilderTest covers the view, typed keys,
Hive's default partition, a Parquet read by name, a skipped malformed
partition and the single listing. athena.md says so.
2026-11-16 09:55:25 -04:00
Priamo Germosen 2842fe4eeb fix(glue): give resource-tag conditions the tags of the Glue resource a request names (#8582)
Since #8529 the generated request resources give Glue's types
aws:ResourceTag/ keys, but no StoredResourceArns answered for the glue
namespace, so a condition on a job's, a connection's or a registry's
tags saw none. GlueStoredResourceArns now answers storedTags from
GlueService.storedTags: a schema registry's or a schema's tags from the
schema registry, any other resource's from the tags applied to its ARN,
which Glue drops when it deletes the resource, each read in the account
and Region the ARN names, a pre-multi-account entry of the default
account in place, through AccountAwareStorageBackend.readInAccount.
Only string values are taken, as TagResource keeps the request's map
as given. Deleting a table or a user-defined function, directly or with
its database, now drops the tags applied to its ARN as Glue's other
deletes do, so one recreated under the same name starts with none.
Tagging a resource through the shared tag store now puts a new tag map
in place of the old one, so the lookup always copies one whole set.
2026-11-16 09:44:48 -04:00
luiseterc 6eb66cd6bf fix(eks): preserve scoped authorization for deletion waiters (#8580)
Deleting an EKS add-on or Fargate profile now keeps only its ARN for
IAM authorization, keyed by the cluster's incarnation, so a deletion
waiter with a resource-scoped describe grant receives
ResourceNotFoundException instead of AccessDeniedException, while an
unrelated grant or an explicit deny still gets 403. Describe and list
still report the resource as gone, recreation clears the kept ARN and
cluster deletion purges it. Resource tags are not kept.

Closes #8494
2026-11-16 09:32:44 -04:00
Jimmy Liu Jia 0d6aa45d1f feat(eventbridge): deliver events to Kinesis targets (#8561)
* feat(eventbridge): deliver events to Kinesis targets
* fix(eventbridge): preserve CloudFormation Kinesis partition key paths
* test(eventbridge): clean up Kinesis fixtures after teardown failures
* fix(eventbridge): match Kinesis partition key path delivery
2026-11-16 09:30:26 -04:00
Matheus Oliveira bbc6e1b0a1 fix(ecs): emit empty arrays for empty command, entryPoint and environment (#7941) 2026-11-16 09:11:03 -04:00
Matheus Oliveira 1dadaee351 fix(ec2): make default network resource IDs region-unique and AWS-format (#7738) 2026-11-16 09:10:33 -04:00
TATSUNO “Taz” Yasuhiro 651ac1cbe7 fix(dynamodb): refuse a PartiQL key read whose filter names a key (#8559)
A PartiQL read by key now refuses the statement once the filter of
every read names a key of the table or index read, as DynamoDB does,
answering "Filter Expression can only contain non-primary key
attributes" with a key from the last read in key order. A statement
that tests a key in a way no key condition can hold is still read as a
scan and accepted, and size() on a key counts only on its own. Query
and PartiQL build that message in one place.
2026-11-16 09:09:46 -04:00
TATSUNO “Taz” Yasuhiro a115078c48 fix(dynamodb): leave out LastEvaluatedKey when a Query stops at the end of its key condition (#8577)
A Query that Limit stops on its last matching item now leaves out
LastEvaluatedKey when the read has reached the end of its key
condition: when the partition holds a later item the condition
excludes, or, on a table, when the last item sits on the condition's
inclusive bound. PartiQL reads of one key or one sort-key range end
without a NextToken the same way. A read that stops on the last item of
a partition short of an inclusive bound still returns the key.
2026-11-16 09:07:34 -04:00
Priamo Germosen 82b7547f0a feat(ec2): support ModifyNetworkInterfaceAttribute (#8532)
ModifyNetworkInterfaceAttribute was not implemented, so a call to change
an interface's security groups, description, source/destination check
or DeleteOnTermination was refused, and with security-group enforcement
on an interface's groups could only change through ModifyInstanceAttribute.

The action now changes a standalone interface or one an instance was
launched with. The group list is read as SecurityGroupId.N, the name the
SDKs and the CLI send. On an instance's primary interface the groups and
the source/destination check are the instance's too. With enforcement
on, a group change reaches the interface's firewall before it is stored,
under the instance's lock, as ModifyInstanceAttribute does, so a policy
that cannot be applied leaves the groups as they were, and the ports the
instance's groups publish are reconciled after a primary-interface change.
The change re-checks the interface and its attachment in the critical
section that stores it, and AttachNetworkInterface and
DetachNetworkInterface now update the standalone record and the instance's
copy under the same topology lock.

ModifyInstanceAttribute no longer overwrites every interface's groups: on
an instance with more than one interface, a group or SourceDestCheck change
answers InvalidInstanceID ("There are multiple interfaces attached to
instance ... Please specify an interface ID for the operation instead."),
the code and message AWS returns, as the Terraform AWS provider quotes them.

The members Floci does not apply (EnablePrimaryIpv6, EnaSrdSpecification,
ConnectionTrackingSpecification, AssociatePublicIpAddress,
AssociatedSubnetIds and the attachment's ENA queue counts) answer
UnsupportedOperation, as ReplaceRoute refuses a target it cannot store,
rather than true with nothing changed.

Part of #2564.
2026-11-16 09:06:59 -04:00
Andre Kurait a015fd9fb8 test(sqs): control cancellation before the worker terminal write (#8579) 2026-11-16 09:02:31 -04:00
Vũ Thế Huy 4f623d7b50 feat(redshift): add the SUPER and VARBYTE types and their functions (#8571) 2026-11-16 08:52:44 -04:00
Priamo Germosen f0ee5d44a0 fix(athena): answer no rows for a table whose location holds no data (#8575)
Athena answers a table whose S3 location holds no data with no rows.
Floci's view read the location with DuckDB's read_* glob, which refuses
to bind when nothing matches, so every query on such a table failed.

- GlueViewDdlBuilder checks the location a table is read from (its read
  path, so a projected table's partition folders) before building its
  view. One that holds no data gets a view of no rows with the table's
  declared columns as their declared types (GlueTableResolver
  .emptyProjection), nested and binary columns as the engine reads them
  (columnType: array<T> as T[], map, struct, binary as BLOB).
- TableLocation.holdsNoData lists the location in one scan: folder
  markers (keys ending in a slash) hold no data, and a read path with
  `*` segments is listed from its literal prefix, an object counting
  when its key matches the glob. A location holding another glob
  character, or whose bucket does not exist, is read as before.

GlueViewDdlBuilderTest covers an empty location, one holding only
folder markers, a projected location holding only objects its glob does
not reach, nested and binary column types, an unmodeled glob and a
missing bucket. AthenaDelimitedTextSidecarIntegrationTest
queries an empty location and a folder marker against the real engine.
athena.md says so.
2026-11-16 08:52:15 -04:00
Andre Kurait f94d5e9e58 test(lambda): await SQS polls and close fixture executors (#8578)
SqsEventSourcePollerTest now waits for each submitted poll to finish
before asserting deletes, visibility changes and invocations, instead of
timed Mockito verifications and retry loops, and shuts down each
fixture's poller after the test.
2026-11-16 08:44:05 -04:00
Jimmy Liu Jia 3e0cd437d7 feat(cloudformation): provision SES configuration sets (#8551)
* feat(cloudformation): provision SES configuration sets
* refactor(cloudformation): simplify SES configuration set provisioning
2026-11-16 08:40:08 -04:00
Priamo Germosen b2a019ef4e fix(lambda): give resource-tag conditions the tags of the Lambda resource a request names (#8569)
The generated request resources give Lambda's function, function version
and alias, event source mapping, web function, revision and endpoint,
MicroVM image and network connector types aws:ResourceTag/ keys, but
LambdaStoredResourceArns did not answer storedTags, so a condition on
their tags saw none. It now answers from the service holding each:
LambdaService for a function, whose versions and aliases have its tags
as Lambda keeps tags on the function alone, and an event source mapping;
LambdaWebService for a web function, whose revisions and endpoints
inherit its tags; LambdaMicrovmsService for an image or a connector.
Each reads the resource under the ARN in the account and Region it
names, a pre-multi-account one of the default account in place, through
the new AccountAwareStorageBackend.readInAccount, matched on the whole
ARN. Tagging a function or a mapping now puts a new tag map in place of
the old one, so the lookup always copies one whole set.
2026-11-16 08:22:56 -04:00
David 08479ffffe feat(sts): serve the OIDC discovery document and JWKS for the web identity token issuer (#8567) 2026-11-16 08:19:05 -04:00