Commit Graph
4071 Commits
Author SHA1 Message Date
DavidandPriamo Germosen 6db78b8ef4 feat(glue): data quality rulesets (#7035)
* feat(glue): data quality rulesets

CreateDataQualityRuleset, GetDataQualityRuleset, UpdateDataQualityRuleset
and DeleteDataQualityRuleset answered InvalidAction, and
ListDataQualityRulesets always returned an empty list, so Terraform's
aws_glue_data_quality_ruleset failed at its first apply.

Rulesets are now stored per account and Region by name, with their
description, DQDL text, target table, security configuration and created
and last modified times, and tagged through the shared tag store by their
dataQualityRuleset ARN. Update replaces only the members the request sets.
List returns them in name order with RuleCount, filtered by name,
description, target table, created and last modified times and tags, and
paged by MaxResults and NextToken. Errors follow the model:
AlreadyExistsException for a duplicate, EntityNotFoundException for an
unknown name, InvalidInputException for a missing or oversized member.

Rulesets are stored, not evaluated.

Closes #6830

* fix(glue): match a ruleset's catalog and take its store from the caller

The ListDataQualityRulesets target table filter compared only TableName and
DatabaseName, so filtering for one catalog also returned a ruleset on the
same table in another. A CatalogId in the filter now has to match too, with
a target table that names no catalog in the account's own.

The package-private GlueService constructor built the ruleset store itself;
it now takes it as an argument, as it does every other store.

* fix(glue): reuse hasTags and AwsJsonTimestamp for ruleset listing

The ruleset tag filter now goes through hasTags, as jobs, crawlers and
triggers do, and the list filter's timestamps through
AwsJsonTimestamp.epochSeconds, so a timestamp sent as a string is refused
with InvalidInputException as the SDKs never send one.

---------

Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-10-30 22:36:13 -04:00
Andre Kurait f6f672c177 test(rds): retain cluster modification option assertions (#7051)
Match the current ModifyDBCluster overload while preserving signed region, parameter group and managed secret checks. Cover explicit rotation and apply-immediately flags.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-30 22:02:10 -04:00
Allen Sanborn 2a4f57321c fix(ec2): CreateNetworkInterface honours the PrivateIpAddresses entry marked Primary (#7031)
* fix(ec2): CreateNetworkInterface honours the PrivateIpAddresses entry marked Primary

The Terraform AWS provider sends private_ips as PrivateIpAddresses.N.PrivateIpAddress
plus Primary=true. The handler dropped the Primary flag, so the ENI got an
auto-allocated primary and the requested address became a secondary. The entry
marked Primary is now the primary (checked and reserved like PrivateIpAddress),
other entries are secondaries and are refused with InvalidIPAddress.InUse when
held. PrivateIpAddress together with a Primary entry is InvalidParameterCombination.

* test(ec2): cover duplicate Primary entries and secondaries equal to the primary in CreateNetworkInterface

* fix(ec2): check CreateNetworkInterface secondaries in canonical form before allocating the primary

A refused secondary no longer leaves the auto-assigned primary leased on the
VPC network, and a zero-padded secondary can no longer slip past the in-use
and duplicate checks or be stored padded.

* test(ec2): cover an auto-assigned primary that equals a requested secondary
2026-10-30 21:57:10 -04:00
Jimmy Liu Jia 1945117bfe refactor(servicecatalog): share provisioned product record builder (#7041) 2026-10-30 18:38:11 -04:00
Andre Kurait 68b177043a test(rds): initialize the Aurora PostgreSQL driver per test loader (#7043)
Apply the accepted caller-loader initialization pattern to the Aurora auto-pause fixture while retaining its behavioral assertions.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-30 18:34:02 -04:00
Jimmy Liu Jia e2562377bf fix(ecs): honor running task filters for container instances (#7032) 2026-10-30 18:23:44 -04:00
Aniket Shukla f48c3a9c01 feat(cloudformation): provision SES receipt rules (#7040) 2026-10-30 18:09:09 -04:00
jwoa95andPriamo Germosen 83ec0b82c3 fix(rds): rotate cluster managed credentials and secret versions together (#7003)
* fix(rds): rotate cluster managed credentials and secret versions together

* test(rds): load the PostgreSQL driver before the first DriverManager call

DriverManager only offers drivers the caller's class loader can see. After a
Quarkus restart, the first getConnection in
RdsPostgresStartupParametersIntegrationTest found none ("No suitable driver
found"), which has been failing CI shard 1 on main. Load PgJDBC through the
test's own loader first, as RdsBackendEndpointRefreshIntegrationTest already
does, and do the same in the new managed-password rotation Docker test.

---------

Co-authored-by: Priamo Germosen <priamo.germosen@starling.co>
2026-10-30 15:18:32 -04:00
Matheus Oliveira 955a935bad fix(cloudfront): return the decoded function code from GetFunction (#6798)
* fix(cloudfront): return the decoded function code from GetFunction

GetFunction wrote the stored base64 text into the response body where
AWS returns the code the request carried, so reading back what you sent
gave different bytes. The body is the decoded code now, with the
octet-stream content type and the ETag header unchanged; the
CloudFormation provisioner base64-encodes the template's plain code so
the stored form stays the wire form, and GetFunction is the single
decode point.

Closes #6749

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

* fix(cloudfront): read a plain-code record persisted by an older Floci version

GetFunction served a 400 for a stored code that was not base64, and an
upgrade over persistent storage kept the records older Floci writes
wrote the CloudFormation provisioner as plain text, so those functions
stopped serving their code. A non-base64 record now reads back as its
stored bytes, and the next UpdateFunction rewrites it into the uniform
base64 form. The compat round-trip test captures the updated etag
before asserting so a failed assertion cannot hijack the cleanup's
delete.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

* test(cloudfront): read the ETag update header the model names and rebase the decoded-code management tests

The decoded-code round trip asserts UpdateFunction answers the version
in the ETag header the SDK models name, so it reads the value it was
extracted from instead of null. The compat round-trip test uses AssertJ
like the rest of the compatibility module.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

---------

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-10-30 14:57:30 -04:00
Allen Sanborn 3d455d02ad fix(route53resolver): set endpoint HostVPCId from its subnets and allocate IPs from subnet CIDR (#6886)
* fix(route53resolver): set endpoint HostVPCId from its subnets and allocate IPs from subnet CIDR

HostVPCId was derived from the endpoint id, naming a VPC that does not exist.
An IpAddress given only a SubnetId had no Ip. Resolve the subnets through EC2,
use their VPC, and allocate a free address (skipping the first four and last
of the CIDR) when Ip is omitted. Subnets EC2 does not know are still accepted.

* fix(route53resolver): follow-ups for endpoint subnet resolution

Take HostVPCId from the first subnet in request order, reuse Cidr4 for
address math, import instead of fully qualifying names, document the
unknown-subnet fallback and allocation limits, and cover replay, delete
and mixed explicit/allocated addresses.

* fix(route53resolver): allocate endpoint IPs per subnet and reject an exhausted subnet

Addresses were tracked account-wide, so two VPCs with the same subnet CIDR
skipped each other's addresses. Track them per subnet instead.

When a subnet had no free address, allocateIps stored null and the endpoint
still came back OPERATIONAL. Allocate before writing the endpoint and throw
InvalidRequestException so nothing is stored.

* fix(route53resolver): back each endpoint address with an EC2 network interface

Replaces the endpoint's own address allocator with EC2's, as AWS does
("Resolver creates a network interface for each subnet and IP address") and
as ECS already does for awsvpc tasks. Each address in a subnet EC2 knows
becomes one interface created with ec2Service.createNetworkInterface, with
the request's Ip (or one EC2 picks) and the endpoint's security groups, then
held with holdNetworkInterfaceForService. Instances, other interfaces and
other endpoints can no longer get the same address, and EC2 refuses an
explicit Ip already in use, which CreateResolverEndpoint raises as
InvalidRequestException (the model lists it and names no closer error; a
full subnet maps the same way, other EC2 refusals to
InvalidParameterException). A refusal deletes the interfaces already made.

DeleteResolverEndpoint releases and deletes the endpoint's interfaces.
ListResolverEndpointIpAddresses reports each interface's address, reading
the record once, and a JSON null Ip no longer hides it. Subnets EC2 does not
know are still accepted without an interface, and records written before
this change list and delete as before. HostVPCId still comes from the
subnets.

* fix(route53resolver): close two interface-leak windows in endpoint create and delete

DeleteResolverEndpoint was not synchronized while CreateResolverEndpoint
was. Create stores the endpoint before its record, so a delete between the
two found no interfaces to delete and the create then stored the record,
leaving an orphan record and the endpoint's interfaces behind. Delete now
takes the same lock.

The create rollback caught only AwsException, so any other failure from EC2
partway through left the interfaces already made. It now rolls back on any
RuntimeException and rethrows it; EC2 refusals are still translated.

* fix(route53resolver): create an endpoint's explicit addresses before its automatic ones

Interfaces were created in the stored (sorted) order of the address list.
An explicit IPv4 Ip happens to sort before an entry that leaves the address
to EC2, but nothing guaranteed it, and an automatic entry created first could
take the address a later entry asks for, failing the create with
InvalidRequestException though both fit. Interfaces with an explicit Ip are
now created first; the stored list keeps the request order.

* fix(route53resolver): log an endpoint interface cleanup failure instead of dropping it

The cleanup that deletes an endpoint's interfaces swallowed every EC2
error. Only an interface that is already gone is expected and stays silent;
any other failure is now logged as a warning, and the remaining interfaces
are still deleted.

* test(route53resolver): wait on the racing delete with ThreadStates and use Ec2Requests for EC2 calls

* test(route53resolver): assert the racing delete finished and route EC2 calls through one Ec2Requests helper
2026-10-30 14:55:39 -04:00
Vũ Thế Huy 9b69b3dac3 feat(redshift-serverless): copy snapshots into the configured destination region (#7024)
* feat(redshift-serverless): copy snapshots into the configured destination region

A SnapshotCopyConfiguration used to be stored and echoed, with nothing copied.
A background sweep now carries each AVAILABLE snapshot of the namespace, taken
at or after the configuration was created, into the destination Region with its
dump and metadata. The copy is an ordinary snapshot there, so describe, restore,
delete and expiration work on it unchanged.

- The source records the Regions it has been copied to, so a deleted or expired
  copy is not made again and a retry or restart after a crash makes no second
  copy. A copy made for an earlier snapshot of the same name is replaced.
- Retention and KMS key come from the configuration. A name already taken by
  an unrelated snapshot in the destination is kept and logged.
- Rules carry the account and namespace id, so accounts never collide and a
  recreated namespace does not inherit its predecessor's configuration.
- The destination must be a known Region in the namespace's partition.
- ResetAll now removes every snapshot dump, which it used to leak.
- New switches: snapshot-copy-enabled and snapshot-copy-sweep-interval-seconds.

* fix(redshift-serverless): keep the earlier snapshot copy restorable when a replacement fails

Each copy now gets its own dump file and the replaced copy's dump is removed
only after the new record is saved. Drop the slow, partition-bound
compatibility test; the in-repo engine and integration tests cover the copy.

* fix(redshift-serverless): name a snapshot copy's dump by id so long snapshot names still copy
2026-10-30 14:44:26 -04:00
Jimmy Liu Jia fa243bf78e fix(ram): paginate GetResourceShares responses (#7025)
* fix(ram): paginate GetResourceShares responses

* test(ram): exercise GetResourceShares SDK paginator

* refactor(ram): share resource pagination validation
2026-10-30 14:44:18 -04:00
Allen Sanborn 2463708199 fix(rds): return Source and ApplyMethod from DescribeDBParameters (#7018)
* fix(rds): return Source and ApplyMethod from DescribeDBParameters

DescribeDBParameters and DescribeDBClusterParameters now render Source=user
and the ApplyMethod sent on modify (default immediate). Apply methods are
stored per group, copied on copy, dropped on reset, and absent in older
persisted state.

* test(rds): cover apply-method copy, reset and reload for parameter groups

* test(rds): assert reset clears stored apply methods

* fix(rds): refuse ApplyMethod values outside immediate | pending-reboot

ModifyDBParameterGroup and ModifyDBClusterParameterGroup echoed back any
ApplyMethod string. The RDS model declares the ApplyMethod enum as
immediate | pending-reboot, so any other value (including a different
case) now fails with InvalidParameterValue (400) before the group is
touched. A missing ApplyMethod still defaults to immediate.

The value and apply-method loops shared everything but the member name,
so both now go through one parseParameterMember(params, member) helper.
2026-10-30 14:34:34 -04:00
Vũ Thế Huy 06d4fcfa57 fix(eventbridge): escape JSON Pointer field names (#7034) 2026-10-30 14:31:20 -04:00
Andre Kurait 08d7319b4f fix(swf): sweep executions in their owning accounts (#7033)
Promote the original two-file fork #93 change onto current main. Carry the stored execution account through timeout, child policy and parent notification writes without mutating request context. Original source and metadata are retained separately.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-30 14:19:47 -04:00
Daniel Adler 5ba98ad7b1 fix(storage): propagate buffered WAL failures before publication (#6533)
* fix(storage): propagate buffered WAL failures before publication

Rebase the focused WAL correction onto official main after the independent SQS rollback and snapshot fix merged as #7008. Retain buffered ordinary writes, atomic batch sync, safe rollback and exception propagation before publication.

* fix(storage): reject an unavailable buffered WAL path

Retain the existing unavailable-log and closed-writer fault controls while reconciling the signed WAL contribution with the merged SQS rollback dependency. No WAL behavior change from the previously validated contribution.
2026-10-30 14:02:11 -04:00
Andre Kurait 71f18f5ff3 test(appconfig): reuse named stores in race fixtures (#7026)
Apply the separate follow-up requested in upstream #6791. Register named backing stores through InMemoryStorageFactory and preserve existing AppConfig update, delete and tagging race assertions and synchronization. Source projection from fork #271; original source and metadata preserved.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-30 13:57:29 -04:00
Andre Kurait a4d609a37a test(port): reuse shared start gate for Docker allocations (#7013)
* test(docker): bound concurrent port allocation workers

Propagate worker failures, synchronize allocation admission under one monotonic deadline, and retain cleanup failures without hiding the primary cause. Preserve all existing allocator scenarios and the 20-worker uniqueness check.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* test(port): reuse shared start gate for allocation workers

Use the existing StartGate helper to release allocation tasks together, collect worker errors and bound executor shutdown. Remove the duplicate runner and its eight helper-only tests, preserving all eight allocator scenarios.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* test(port): restore all-worker readiness barrier

Wait for all 20 allocation tasks at a timed CyclicBarrier before allocating. Keep StartGate, collected worker failure assertions and reservation cleanup unchanged. Address upstream review5714078242.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-30 11:57:07 -04:00
Vinícius Ribeiro 43a01e2688 fix(cloudfront): serve custom origins that name Floci itself in-process (#6951)
* fix(cloudfront): serve custom origins that name Floci itself in-process

* fix(cloudfront): keep self-origin requests inside the origin path and accept the TLS AWS port

Resolve the viewer's dot segments before prepending the origin path, as
CloudFront does, so a path like /x/../../other-bucket/key can no longer
reach another bucket. Recognize the extra listener the TLS proxy binds on
floci.tls.aws-https-port as Floci's own port.

* docs(cloudfront): explain why self-origin dot segments are resolved first

CloudFront forwards the raw path; the guard is needed because Floci's
listener resolves dot segments. Give the ignored exception in selfHost
its reason.
2026-10-30 11:43:15 -04:00
Daniel Adler 29e44332f2 fix(sqs): roll back failed queue saves and detach stored snapshots (#7008)
* fix(sqs): roll back failed queue saves and detach stored snapshots

Persist candidate lists before publication and restore failed receive or visibility mutations. Share deep Message.copy snapshots with copyForRedrive and extend the existing GuardedMessageQueueTest fixture. Extracted from PR #6533 as requested; independent of WAL write policy.

* perf(sqs): avoid detached message copies for memory backends

Reuse existing memory backend detection for shallow list snapshots. Retain deep loaded and saved snapshots for persistent, hybrid, WAL and unknown backends. Preserve candidate publication and rollback semantics; add zero-copy and backend-specific regression coverage in GuardedMessageQueueTest.
2026-10-30 11:19:06 -04:00
galsuchetzky-act 045c65ec49 feat(ssm): add PutResourcePolicy, GetResourcePolicies and DeleteResourcePolicy for parameters (#6833)
AWS lets an Advanced-tier parameter carry one resource-based policy, used to
share it with other accounts. PutResourcePolicy returns a PolicyId and a
PolicyHash, and updating or deleting the policy takes both: a hash that is no
longer current is ResourcePolicyConflictException, an unknown id is
ResourcePolicyNotFoundException, and an unknown parameter is
ResourceNotFoundException. Floci answered all three actions with
UnsupportedOperation.

The parameter now stores its policy with an id and a hash of the document.
PutResourcePolicy rejects a Standard-tier parameter, a policy over 1024 bytes
and a document that is not a JSON object with the documented errors.
GetResourcePolicies pages with MaxResults (1 to 50) and NextToken. An
overwriting PutParameter keeps the policy and deleting the parameter removes
it. The policy is not evaluated against callers, and no AWS RAM resource share
is created.
2026-10-30 11:09:39 -04:00
David e29b1d884c feat(rds): automated backups, kept after a delete and restored from (#6996)
* feat(rds): automated backups, kept after a delete and restored from

DescribeDBInstanceAutomatedBackups, DeleteDBInstanceAutomatedBackup,
DescribeDBClusterAutomatedBackups, DeleteDBClusterAutomatedBackup,
StartDBInstanceAutomatedBackupsReplication and
StopDBInstanceAutomatedBackupsReplication answered UnsupportedOperation, and
DeleteDBInstance and DeleteDBCluster ignored DeleteAutomatedBackups, so a
deleted database could not be restored to a point in time.

A live standalone instance with backups on now reports an active automated
backup. A delete with DeleteAutomatedBackups=false keeps a retained one, with
the PostgreSQL data saved outside mock mode, and RestoreDBInstanceToPointInTime
(by DbiResourceId or backups ARN) and RestoreDBClusterToPointInTime (by
DbClusterResourceId) restore from it. Replication to another Region is
metadata only: the replica is listed as replicating, the source lists it under
DBInstanceAutomatedBackupsReplications, and a stop or the source's delete keeps
it as retained.

Closes #6828

* fix(rds): restart stopped replication, use the replica's window, match the source ARN

A stopped replica kept as retained refused a second start of replication to
its Region; only a replica that is still replicating refuses it now, and a
retained one is replaced. A restore from a replicating backup checked the
time against the live source's window; it checks the replica's own window
now and still copies the live source. A replication source ARN naming
another account or service found this account's instance by identifier; the
whole ARN must now match the instance's.

The RDS count in the docs service matrix is 117, for the six new actions.
2026-10-30 11:07:13 -04:00
Jimmy Liu Jia 886cbcd201 fix(servicecatalog): expose stored record history (#7022)
* fix(servicecatalog): expose stored record history

* fix(servicecatalog): align termination record timestamp
2026-10-30 11:04:01 -04:00
Andre Kurait 1cafa71e3d test(port): reuse shared start gate for Runtime API allocations (#7009)
* test(port): bound concurrent allocation fixture failures

Propagate worker failures, synchronize allocation admission under one monotonic deadline, and retain cleanup failures without hiding the primary cause. Preserve all existing allocator scenarios and the 50-worker uniqueness check.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* test(port): reuse shared start gate for allocation workers

Use the existing StartGate helper to release allocation tasks together, collect worker errors and bound executor shutdown. Remove the duplicate runner and its eight helper-only tests, preserving all eight allocator scenarios.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-30 10:34:33 -04:00
TATSUNO “Taz” Yasuhiro 485f78656b fix(lambda-web): write resource policies back in the form AWS returns (#7023) 2026-10-30 10:31:35 -04:00
Allen Sanborn ddae4fdbe9 fix(ec2): remove a VPC's network after a restart too (#6874)
* fix(ec2): remove a VPC's network after a restart too

deleteVpcNetwork removed a VPC's Docker network only when this process had
materialised it (vpc.created), which happens when an instance in the VPC
starts. After a restart, a VPC that kept its network from the previous
run but had no instance started since was deleted without its network:
the bridge outlived the VPC and held its CIDR, so the next VPC declaring
that CIDR collided with it. Reproduced by: run an instance in a VPC, restart
with persisted state, terminate it, delete the VPC, create one with the
same CIDR.

Startup reconciliation already lists this deployment's VPC networks and
keeps those whose VPC is still declared; it now remembers them, and
deleting such a VPC removes its network. The listing runs whether or not
reconcile-on-startup is on (only reaping orphans is behind that flag), so
the fix does not depend on it. Upstream #5869 already detaches Floci
before removal; this keeps that path.

* fix(ec2): remove a restored VPC's network by the name it has

Startup reconciliation remembered only which VPCs kept a network from a
previous run, and deleting such a VPC then removed the name this version
computes, floci-aws-vpc-.... A network created before the floci-aws-
prefix is named floci-vpc-...; removing the computed name found nothing,
the NotFound was ignored, and the old bridge kept holding the CIDR.

Reconciliation now records each surviving network's own name and the
deletion removes that one, along with the computed one if this run
materialised it.

* test(ec2): cover deleting a VPC this run materialised after a restart

A VPC an instance started in after the restart has both the network this
run created and the one its predecessor left. Deleting it removes both
when the predecessor's carries a legacy name, and removes one network
once when this run reused the predecessor's.

* fix(ec2): remember every surviving network of a VPC after a restart

Startup reconciliation kept one network name per VPC, so when both the
legacy-named and the current-named bridge survived, deleting the VPC
before this run materialised it left one behind with its CIDR reserved.
2026-10-30 09:58:44 -04:00
Jackson Price 7b9f747fff fix(cloudwatch): filter DescribeAlarms by state, action, children and parents (#6862)
DescribeAlarms read only AlarmNames, AlarmNamePrefix and AlarmTypes. It
ignored StateValue, ActionPrefix, ChildrenOfAlarmName and
ParentsOfAlarmName, so each of them answered every alarm of the
requested types, and combining them was never refused.

StateValue and ActionPrefix now narrow metric and composite alarms
alike. ActionPrefix matches an alarm, OK or insufficient-data action,
since the API reference calls it a prefix for any action.
ChildrenOfAlarmName lists the alarms a composite alarm's rule names, by
name or ARN, and ParentsOfAlarmName the composite alarms whose rules
name an alarm. Neither lists the alarm it names, and both return only
the members the API reference lists: name, ARN, StateValue and
StateUpdatedTimestamp for children, name and ARN for parents.

As the API reference says, either one combined with any member except
MaxRecords and NextToken is refused with ValidationError. A StateValue
outside the enum and an empty or over-long ActionPrefix or alarm name
are refused with Smithy's validation messages, reported together with
an invalid AlarmTypes. Both handlers pass the request's filters to the
service as one AlarmFilter, so Query, JSON and CBOR answer alike, and a
JSON null member counts as left out, AlarmNamePrefix included, which
read as the prefix "null" before.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-30 09:37:12 -04:00
Tomas KislanandPriamo Germosen 55c33d7ad3 fix(s3): keep Content-Encoding and Cache-Control on multipart uploads (#7000)
* fix(s3): keep Content-Encoding and Cache-Control on multipart uploads

CreateMultipartUpload ignored both headers, so an object completed from a
multipart upload came back from HeadObject and GetObject without them while a
single PutObject kept them. A client that decodes by Content-Encoding (a
browser, curl --compressed) then received raw gzip bytes for any object large
enough to be uploaded in parts.

The controller now reads both headers on the ?uploads branch, stripping the
aws-chunked token as PutObject does. S3Service records them on the
MultipartUpload and applies them to the object when the upload completes.
An upload created without either header still produces an object with neither.

* test(s3): use .bin keys and text/plain in the multipart encoding tests

Match the neighbouring tests, which name objects *.bin; the behaviour under
test is not specific to YAML. The content type is text/plain rather than
application/octet-stream because MultipartUpload falls back to
application/octet-stream when CreateMultipartUpload carries no Content-Type,
so asserting that value could not catch a dropped header.

---------

Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-10-30 08:52:53 -04:00
Priamo Germosen ca3599f8c9 fix(iam): check seven more services on the resources their requests name (#6976)
Under IAM enforcement, Athena, Data Exports, Pricing Calculator, Cost
Explorer, CloudTrail, Global Accelerator and Timestream for InfluxDB
requests were checked on `*`, so a grant scoped to a workgroup, an
export, a workload estimate, an anomaly monitor, a trail, an
accelerator or a parameter group was refused, and a deny scoped to one
never applied.

The generated table of the resources requests name now reads them, 305
operations, from AWS's Service Reference and botocore as it reads the
first four batches: their namespaces move from the generator's
NOT_COVERED to NAMESPACES and the table is regenerated, nothing in it
edited by hand; 1022 operations over 24 namespaces. Each resource
type's ARN format is the one Floci mints or reads: Athena's
`workgroup/<name>` and `datacatalog/<name>` (its tag handler parses
them), `export/<name>`, Cost Explorer's `anomalymonitor/<id>` and
Global Accelerator's `accelerator/<id>` with no Region, listeners and
endpoint groups under the accelerator's, `trail/<name>`, and Timestream
for InfluxDB's `<type>/<id>`.

Corrections, each with its reason:

- Athena's StartQueryExecution, ListQueryExecutions and ListNamedQueries
  naming no workgroup are checked on the primary one, where Athena runs
  and lists them ("If a workgroup is not specified, returns a list of
  query execution IDs for the primary workgroup"), and so is
  GetWorkGroup, which Floci answers with the primary one then. Floci's
  StartQueryExecution and GetWorkGroup handlers now read a JSON null
  WorkGroup as none, as ListQueryExecutions does, rather than as a
  workgroup named "null", so the workgroup checked is the one acted on.
- Athena's ListDatabases, ListTableMetadata and GetTableMetadata are
  checked on AwsDataCatalog, the Glue Data Catalog Floci reads
  whichever catalog they name, as well as on the one their CatalogName
  names.
- Cost Explorer's nine cost and usage reads are checked on `*`, not on
  their BillingViewArn: Floci serves no billing views and answers the
  account's costs whichever view is named, so a grant scoped to one
  must not reach them.
- Data Exports' CreateExport is not checked on its Export.ExportArn,
  the ARN "for this export", which the request creates; its pattern
  takes a table's, so a caller could choose the table checked.
- CloudTrail's StartLogging, StopLogging and GetTrailStatus name their
  trail by a bare Name, a name or an ARN, AddTags, RemoveTags and
  ListTags their resources by the ARNs in ResourceId and
  ResourceIdList, members whose names do not end in Arn, and the
  dashboard operations their dashboard by DashboardId, a name or an
  ARN.
- Cost Explorer's GetAnomalyMonitors and GetAnomalySubscriptions name
  their monitors and subscriptions by the ARNs in MonitorArnList and
  SubscriptionArnList; GetAnomalySubscriptions' MonitorArn, a
  monitor's ARN, is not read as a subscription's.
- Timestream for InfluxDB's RebootDbCluster is checked on each member
  instance its instanceIds names as well as on the cluster.
- Global Accelerator's ListCustomRoutingPortMappings is checked on its
  accelerator alone: its EndpointGroupArn extends the accelerator's ARN
  and so matched the accelerator's format.

Not read yet, each with its reason in NOT_COVERED: CodeDeploy, whose
on-premises instance format the Service Reference gives as
`instance:${InstanceName}` while the CodeDeploy permissions reference
gives `instance/instance-ID` and AWS's GetOnPremisesInstance example
answers `instance/<name>_<id>`; Redshift Data, whose serverless
workgroup's ARN ends in an id the service mints while its requests name
the workgroup by WorkgroupName; and Service Catalog, whose
*PortfolioShare requests give in AccountId the account a portfolio is
shared with, whose imported portfolios and products keep their owner's
account while requests name them by id, and whose AppRegistry half is
named in the path.
2026-10-30 07:23:46 -05:00
Priamo Germosen 931b2d26a7 feat(emr-serverless): run a job run in its application's custom image (#6975)
In the docker runner mode an application's imageConfiguration, and a
worker type's, was stored and returned, but every run started from the
release's public image. So a job whose libraries are baked into its own
image, the user guide's "Customizing an EMR Serverless image", could not
run. Now a run starts from the application's custom image:

- the Driver worker type's imageConfiguration, else the application's,
  which "EMR Serverless applies ... to all worker types". Local mode
  runs the executors in the driver's container, so an Executor image is
  not used;
- an <account>.dkr.ecr.<region>.amazonaws.com URI leads to Floci's ECR,
  as a Lambda function's or an ECS task's image does, and the
  repositoryUri Floci's ECR hands out works too;
- the image is pulled for every run, as an ECS task's is, so a tag
  pushed again is what the next run gets ("New workloads submitted after
  the update automatically will use the new image"), and the driver
  starts from the image id that pull resolved. When the pull fails, the
  image the Docker daemon has runs; without one the run is FAILED.

SparkJobRunner.Job carries the custom image beside the template, which
classic EMR's steps leave null.

The image configurations, the application's and each worker type's,
are checked as the user guide and the model describe them, in Floci's
own wording as no source gives AWS's:

- CreateApplication refuses one without imageUri, "This field is
  required when you create a new application";
- CreateApplication and UpdateApplication refuse an image whose ECR
  repository, AWS-shaped or a repositoryUri from Floci's ECR, is in
  another Region: "The Amazon ECR repository must be in the same AWS
  Region that you use to launch EMR Serverless applications";
- UpdateApplication with one that leaves imageUri out removes it: "If
  you leave this field blank in an update, Amazon EMR will remove the
  image configuration."

EcrRegistryManager.imageRegion reads the Region from either URI form.
Floci does not check imageUri against the model's pattern, which would
refuse the repository URIs its own ECR hands out, nor the image's
release or size, and reports no resolvedImageDigest; the service doc
lists these.
2026-10-30 07:23:11 -05:00
Rashen Anupama 6e9ac904c8 fix(s3): paginate multipart upload listings (#6981)
* fix(s3): paginate multipart upload listings

Preserve multipart pagination after an upload is aborted or completed. Share listing grouping and limit parsing, and cover marker removal in integration and storage tests.

Closes #6917

* fix(s3): bound multipart marker history

Cap retained marker positions and recover initiation ordering from opaque upload IDs after eviction. Cover history growth and newly initiated uploads after the marked key is drained.
2026-10-30 08:01:13 -04:00
Andre Kurait ad29f37c67 fix(test): acquire IAM fixture cleanup after creation (#6812) 2026-10-30 07:39:36 -04:00
Daniel Adler 1053d60346 fix(s3): retain notification rule identity and event metadata (#6963) 2026-10-30 07:36:32 -04:00
Jimmy Liu Jia 4aaa5cc466 fix(apigatewayv2): select the most specific HTTP API route (#6999) 2026-10-30 07:29:40 -04:00
jwoa95 57c4a20dde feat(secretsmanager): publish secret write events through CloudTrail (#6623) 2026-10-30 07:27:51 -04:00
Jimmy Liu Jia fb1d2d1fdb fix(route53): paginate hosted zones by name (#6997) 2026-10-30 07:23:30 -04:00
Robin Baeckman 07f2d62c17 feat(eks): vendor AWS's add-on version catalog for every supported Kubernetes version (#6735) 2026-10-30 07:21:01 -04:00
Daniël van Ziel 804b503a33 fix(s3): refuse a canned ACL sent together with grant headers (#6919)
* fix(s3): refuse a canned ACL sent together with grant headers

PutBucketAcl, PutObjectAcl, PutObject, CopyObject and CreateMultipartUpload now answer 400 InvalidRequest, as S3 does, when x-amz-acl and any x-amz-grant-* header are both set, instead of applying the canned ACL and dropping the grants. The check moves from CreateBucket into the shared ACL header resolver so every operation is covered; blank values still count as absent.

Fixes #5826

* docs(s3): note that a canned ACL and grant headers are refused together

* refactor(s3): share the grant-header check and test header list

Compute one hasGrants flag in resolveObjectAclXml for both the canned-ACL refusal and the no-ACL fallback, and list the five grant headers once in a @MethodSource.
2026-10-30 07:16:44 -04:00
Niels Kootstra cc76085322 fix(dynamodb): trim number zeros in items written by UpdateItem (#6994) 2026-10-30 07:12:39 -04:00
Oleksandr Nikolaichuk e54b072afb test(cloudformation): ratchet the writable properties each provisioner reads (#6807)
* test(cloudformation): ratchet the writable properties each provisioner reads

* test(cloudformation): use colons in the coverage messages and scope the docs paragraph to the corpus

* test(cloudformation): list the writable properties main and the schema added since the ratchet
2026-10-30 07:05:45 -04:00
Mohith 628beeef85 fix(rds): report the RDS hosted zone id on clusters and instances (#6826)
* fix(rds): report the RDS hosted zone id on clusters and instances

DescribeDBClusters omitted HostedZoneId and DB instance endpoints omitted
Endpoint.HostedZoneId, so Terraform's aws_rds_cluster.hosted_zone_id was
empty and Route 53 alias records pointing at RDS endpoints failed.

Add a per-region rdsHostedZoneId fact to region-facts.json through the
generator, with the us-east-1 value from the AWS CLI RDS documentation,
and read it through AwsRegionFacts.rdsHostedZoneId. Regions without a
captured value fall back to the us-east-1 zone; Floci's Route 53 resolves
alias targets by DNS name, so the fallback does not affect resolution.
The value is looked up when the response is built, so existing clusters
and instances report it too.

Closes #6778

* fix(rds): read the RDS hosted zone from the CLI example and keep the fallback in RDS

AwsRegionFacts.rdsHostedZoneId now returns an Optional like every other
accessor there, and RdsQueryHandler owns the fallback zone for regions with
no captured value, the way API Gateway keeps its own placeholder. A missing
us-east-1 entry can no longer break a describe call.

The generator reads the us-east-1 zone from a snapshot of the AWS CLI
describe-db-instances example under aws-docs/partition-guides, as the
GovCloud API Gateway zones come from the GovCloud guide, instead of a
typed-in constant. The parse is required and fails on a missing,
wrong-region or ambiguous example. Adding another region is now a data
change.
2026-10-30 07:05:41 -04:00
Jackson Price 6acadc3404 fix(cloudwatch): evaluate composite alarms with CloudWatch's reasons and refusals (#6987)
* fix(cloudwatch): evaluate composite alarms with CloudWatch's reasons and refusals

Composite alarms recorded "AlarmRule evaluated to <state>" with no
StateReasonData, were evaluated only when created, accepted a rule
naming an alarm that does not exist, and let DeleteAlarms remove an
alarm a composite alarm still names. Published CloudWatch captures
show each one differently.

- A change of state records the StateReason CloudWatch writes: "<arn>
  was created and its alarm rule evaluates to OK", "<arn> was updated
  and its new alarm rule evaluates to ALARM", or "<child arn>
  transitioned to ALARM at Monday 14 September, 2026 06:29:58 UTC".
- StateReasonData lists triggeringAlarms: the children whose state
  agrees with the new one, most recently changed first. After a child's
  change only the children that changed since the composite alarm last
  did are listed; the alarm history orders those changes.
- PutCompositeAlarm evaluates an alarm it updates, and its parents
  follow the change.
- A rule naming a missing alarm is refused with "Could not save the
  composite alarm as alarms [<arn>] in the alarm rule do not exist".
- DeleteAlarms deletes nothing when it names an alarm a composite alarm
  references ("Cannot delete <name> as there are composite alarm(s)
  depending on it.", or "a,b ... depending on them."), or more than one
  composite alarm ("Cannot delete [2] Composite Alarms as only one
  composite alarm delete is allowed in single request").

The new service, Query, JSON and SDK tests fail on main.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(cloudformation): cover a composite alarm over its stack's metric alarm

A stack whose composite alarm names the stack's own metric alarm is
created child first and deleted parent first, so neither the new
refusal of unknown children nor the refusal to delete a referenced
alarm fails it. A stack whose rule names a missing alarm rolls back
with CloudWatch's message; that test fails on main.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(cloudwatch): evaluate composite alarms only when a child changes state

Review follow-ups to the composite alarm evaluation change.

- A child's PutMetricAlarm update, or a SetAlarmState to the state it
  already has, no longer re-evaluates its parents. CloudWatch documents
  that a composite alarm set with SetAlarmState "returns to its actual
  state only once any of its children alarms change state"; such a
  parent used to flip back with a reason naming an old transition.
- Application Auto Scaling deletes a policy's alarms one at a time, so
  when a composite alarm names one of them only that one stays.
- A changed child that no longer resolves leaves its parent as it is
  instead of failing the request.
- The docs say that an update closing a cycle is not evaluated, where
  CloudWatch evaluates it.
- Tests: the wire and SDK tests ignore missing data so the alarm
  evaluator cannot reset the states they set, one pins the reason when
  two children change together, and the self-reference and cross-region
  assertions, which pinned texts CloudWatch does not use, are gone.

The new manual-state and Application Auto Scaling tests fail without
this change.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(cloudwatch): evaluate composite alarms above a cycle

A composite alarm on a cycle stayed pending, which blocked every
composite alarm above it: one whose other child changed state was never
evaluated. Alarms on the cycle are still not evaluated, but they no
longer hold up the ones above them.

Also from the second review: the docs say only a metric alarm child's
update is not a change of state, and that alarms above a cycle are
evaluated; a test covers a rule stored before missing children were
refused, whose child is created later; a test docstring links the
SetAlarmState reference.

The test for an alarm above a cycle fails without this change.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* chore(cloudwatch): log a composite evaluation that stops with alarms pending

The third review found one way the evaluation can still stop with
alarms pending: an alarm named like another alarm's ARN makes the cycle
check follow the wrong rule. The debug line removed in the previous
commit is back, so that case is visible again; the name lookup itself
predates this branch. The docs say an alarm above a cycle is evaluated
when one of its children changes state.

No behaviour change.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(cloudwatch): count composite StateReasonData in code points

triggeringAlarms stopped adding children once the serialized JSON
passed 4000 UTF-16 units, while the StateReasonData length check
counts Unicode code points, as Smithy's length constraint counts
Unicode scalar values. An emoji is two units but one code point, so
children whose entries still fit were dropped. The cap now counts code
points, shares its constant with SetAlarmState's length check, and the
docs say so.

The new test names fifteen children with emoji and a newest one with a
short name, so that twelve entries come to exactly 4000 code points. It
lists 7 of them before this change and all 12 after; an exclusive cap
would list 11.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(cloudwatch): keep the composite alarm SDK test on Java 17 APIs

CloudWatchCompositeAlarmTest called List.getFirst(), which Java 21
added. compatibility-tests/sdk-test-java compiles for Java 17, and CI
builds it in maven:3.9-eclipse-temurin-17, so its test-compile failed
and took the sdk-test-java and ec2-containers jobs with it. The three
calls use get(0) now.

A test-compile of sdk-test-java with --release 17 fails on those three
lines before this change and passes after it. No other file of the
branch is outside the root module, which builds for Java 25.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-30 07:02:47 -04:00
Niels Kootstra b4c4718c36 fix(elb): hold an ACM certificate in use while a Classic listener serves it (#6599)
* fix(elb): hold an ACM certificate in use while a Classic listener serves it

* fix(elb): accept a blank certificate id on a plain listener

Terraform's aws_elb sends an empty SSLCertificateId on every listener,
so only an HTTPS or SSL listener refuses a blank one. Both certificate
reference walks now share one listing that skips the blank id.
2026-10-30 07:01:38 -04:00
Aniket Shukla dfad9d6a19 fix(ec2): allow mixed DHCP DNS servers (#6941) 2026-10-30 07:00:45 -04:00
TATSUNO “Taz” Yasuhiro 21adc54a74 fix(dynamodb): check and round PartiQL number literals as DynamoDB does (#6991)
* fix(dynamodb): check and round PartiQL number literals as DynamoDB does

* fix(dynamodb): check the depth of a PartiQL literal once the statement parses

* fix(dynamodb): stop a refused PartiQL bag from hiding the error DynamoDB reports
2026-10-30 06:58:53 -04:00
Andre Kurait 153eaa95c9 test(ec2): bound IMDS fixture response completion (#6800) 2026-10-30 06:58:19 -04:00
Vũ Thế Huy 485ec4e39f chore(redshift): move the remaining Redshift schedulers onto SweepWorker (#6988)
* chore(redshift): move the remaining Redshift schedulers onto SweepWorker

* chore(redshift): share the shutdown priority check across the scheduler tests
2026-10-30 06:55:10 -04:00
Allen Sanborn 5ad2f64840 fix(cloudtrail): keep a trail's KMS key and CloudWatch Logs delivery (#6989) 2026-10-30 06:54:42 -04:00
Andre Kurait 02852f0e67 fix(apigateway): retain V2 integration and authorizer credentials (#6795)
Retain credential choices through management, imports, copies and CloudFormation Body parsing. Carry quick-create credentials only for Lambda targets. Reconcile the accepted shared ARN classifier and CloudFormation import rollback on current main.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-29 23:41:08 -04:00
Allen Sanborn 0a3efd65fe feat(securityhub): standards subscriptions (#6979)
* feat(securityhub): standards subscriptions

BatchEnableStandards, BatchDisableStandards, GetEnabledStandards and
DescribeStandards, so Terraform's aws_securityhub_standards_subscription
(and cloudposse's security-hub module) can enable CIS, AFSBP and NIST
800-53. EnableSecurityHub now subscribes AWS's default standards (AFSBP
and CIS 1.2.0) unless EnableDefaultStandards is false, as AWS does.
Subscriptions are READY at once; controls and findings are not evaluated.

Found applying kthw-on-floci's account-baseline: every standards
subscription failed with UnknownOperationException (POST
/standards/register).

BatchDisableStandards checks every ARN before removing any, so a batch
naming one unknown subscription changes nothing (before, the removals ahead
of it stuck in memory without being saved, and came back after a
restart). GetEnabledStandards reads the subscriptions under the same lock
the writers hold.

* fix(securityhub): reject a non-boolean EnableDefaultStandards

EnableSecurityHub coerced EnableDefaultStandards with asBoolean(true), so a
string "false" skipped the defaults and an object enabled them, and the
hub was enabled either way. The botocore model types the member boolean.
Reject it with InvalidInputException before any state changes, as
UpdateSecurityHubConfiguration does for AutoEnableControls.

* fix(securityhub): offer CIS v5.0.0 and take ARN partitions from the region resolver

Add CIS AWS Foundations Benchmark v5.0.0 (standards/cis-aws-foundations-benchmark/v/5.0.0,
regional, not enabled by default) to the standards Security Hub offers.

Mint every Security Hub ARN through RegionResolver: the global CIS 1.2.0 ARN takes
partitionForRegion and the regional ARNs use buildArn, so a region the catalog cannot
place keeps the deployment's partition instead of falling back to aws.
2026-10-29 23:37:48 -04:00