Commit Graph
6702 Commits
Author SHA1 Message Date
Priamo Germosen 83209f39f6 feat(cloudwatch): take rates and resets of native histograms in PromQL (#10018)
rate, increase and delta of a histogram's range follow Prometheus
v3.16's histogramRate: the last histogram at the range's coarsest
schema less the first, each histogram before a counter reset added
back for a counter (the first taken as empty when the second follows a
reset), then extrapolated with the float path's factor, the count
standing in for the value. A counter reset is detected as
FloatHistogram.DetectReset detects one: a fall in the count, the zero
bucket or any bucket at the newer schema above the zero threshold, a
finer schema or a smaller zero threshold.

irate and idelta take the last two samples of either kind, resets and
changes count floats and histograms in time order, and a range of both
kinds has no rate with Prometheus's mixed-samples warning. Histograms
keep no counter reset hint, as the guide says rate treats every
histogram alike, so delta and idelta of histograms give Prometheus's
"this native histogram metric is not a gauge" warning.

Part of #7030.
2026-12-02 18:22:46 -04:00
Priamo Germosen 8705f7b1fe feat(cloudwatch): add, scale and aggregate native histograms in PromQL (#10015)
Histogram samples now take part in arithmetic and aggregation as
Prometheus v3.16 lets them: a histogram is added to or taken from
another, multiplied by a float or divided by one, negated, and compared
with == and !=; two histograms are first brought to the coarser schema,
merging the finer one's buckets, and to the larger zero threshold, which
takes the buckets it then covers. Any other pairing keeps nothing, with
Prometheus's "incompatible sample types encountered for binary operator"
info between two vectors.

sum and avg add histograms with Kahan compensation (PromQlHistogramSum,
a port of KahanAdd on Floci's dense buckets), avg falling back to a
running mean when the sum overflows, and so do sum_over_time and
avg_over_time; a group or a range holding both floats and histograms has
no result and gets Prometheus's "encountered a mix of histograms and
floats" warning, which responses now carry under warnings. A computed
histogram is counted against the query's memory once, as a label set
is, and a data point whose buckets reach past the bucket of infinite
observations carries no sample.

Part of #7030.
2026-12-02 17:10:20 -04:00
Priamo Germosen 7efb8cef00 fix(iam): check Amazon MSK by its generated routes, resources and passed roles (#9973)
Under enforcement a REST route no vendored model names runs unchecked, and Amazon MSK was among them: any caller could
create, describe, update or delete a cluster or a configuration. MSK's model routes are vendored
(regen_rest_routes.MODELS), so each request is checked as its operation's action, and kafka joins the generated tables
of request resources, passed roles and tags on create: a cluster, configuration, replicator, VPC connection or topic by
the ARN its path or body gives, CreateReplicator's and CreateChannel's service execution roles passed to kafka, and the
tags a create carries.

A JSON request carries a body member by its botocore locationName where one renames it, as MSK's do (Name is name on the
wire, ConfigurationInfo.Arn is configurationInfo.arn), and MSK's handler reads that name, so regen_iam_request_resources
names each body member path it reads as the request carries it (wire_named): a create is checked on the configuration or
cluster of the name MSK makes, and a body naming another under the botocore spelling too is checked on the one MSK
reads. GuardDuty's CreateFilter name and UpdatePublishingDestination destinationProperties, and API Gateway v2's portal
members, are read as their requests carry them too.

CreateClusterV2 names the configuration its brokers start from two structures deep (provisioned.configurationInfo.arn),
of a type the Service Reference lists for it, and the table read ARN members at most one structure deep, so
regen_iam_request_resources._nested_arns now reads too the members ending in Arn or Arns, holding a string, of a
top-level structure's structures, from botocore alone. 107 operations of other namespaces gain such a row; each ARN is
checked as one of the operation's types where it fits one and dropped where it does not, as one level deep already is,
so most (a KMS key, a role or a bucket naming no type of the action) change nothing. Those that do: Glue's CreateCatalog
and UpdateCatalog on their target catalog, EC2's RunInstances on the resource group a capacity reservation target names,
and Amazon Managed Service for Prometheus' CreateScraper on its workspace and EKS cluster and UpdateScraper on its
workspace. A create checks the tags it carries on what it makes alone, which the table marks by the type its name gives
past its verb; CreateClusterV2's subject, ClusterV2, names no type, so with_made now reads a subject named with a
version that names none without it, and CreateClusterV2 makes a cluster as CreateCluster does: a tagged create needs
kafka:TagResource on the new cluster, not on the configuration it names. A resource the request names by its ARN, or the
service's default a row stands for, exists already, so with_made never counts it as one the create makes, as no such row
of the table was: Glue's tagged CreateCatalog needs glue:TagResource on the catalog it makes, not on the Redshift
catalog it targets. That marks the created row of 95 creates across 38 namespaces; where the created row does not
resolve, the tag check still falls back to every resource the request names, so only a create naming an existing
resource of one of its types by ARN checks its tags on less.

MskStoredResourceArns answers the tags MSK holds on a cluster, read in place in the ARN's account, which an
aws:ResourceTag condition reads where the Service Reference gives the key (a cluster, not a configuration); a tag MSK
keeps with no value is read as an empty one, so it never fails the check.

AWS tags no MSK configuration: CreateConfiguration takes no tags, AWS::MSK::Configuration has none, the Service
Authorization Reference gives a configuration no aws:ResourceTag key and TagResource only assessment, cluster and
vpc-connection, and AWS's evaluation suite notes that TagResource rejects a configuration ARN ("Invalid input resource
arn"). Floci tagged them since #2366, so TagResource, UntagResource and ListTagsForResource now refuse a configuration's
ARN with that BadRequestException, as AWS does, and floci.services.msk.configuration-tags
(FLOCI_SERVICES_MSK_CONFIGURATION_TAGS, off by default) keeps the earlier tagging for state or scripts relying on it;
IAM checks those calls on '*', as no type of the action fits a configuration.

A namespace the table reads is served on its tag routes only at the ARN its path encodes, as Backup's and the others'
are, so MskControllerIntegrationTest's tag calls send the ARN encoded, as the SDKs do, rather than with its '/' raw.

The tables also take the RDS cluster group types (cluster-group, cluster-group-snapshot, cluster-group-auto-backup) AWS
added to the Service Reference on 2026-12-02, on its tagging and restore actions, which the online verify gate reads.

IamRestRouteEnforcementIntegrationTest checks that with no grant a configuration's read is refused, that a grant on one
configuration reads it and refuses another, that an aws:ResourceTag condition reads a cluster's tags, that a cluster
holding a tag with no value is refused rather than answered with a 500, and that CreateConfiguration is checked on the
configuration of the name MSK reads, a body naming another under the botocore spelling too included; that a deny on the
configuration CreateClusterV2 names refuses the create, and that a tagged one needs kafka:TagResource on its new cluster
alone; MskServiceTest and MskControllerIntegrationTest check that a configuration's tag calls are refused unless
configuration-tags is on; IamRequestResourceEnforcementIntegrationTest checks that a deny on the catalog Glue's
CreateCatalog targets refuses it and a deny on tagging that catalog does not refuse a tagged one;
test_regen_iam_request_resources checks the wire names a JSON body path is read by the path read two structures deep,
the type a create named with a version makes, and that no resource named by ARN is made.
2026-12-02 16:20:07 -04:00
Priamo Germosen 6d2160108b feat(cloudwatch): query OTLP exponential histograms as native histograms (#10014)
Exponential histogram data points become native histogram samples, as
Prometheus's OTLP translator converts them: a scale above 8 is lowered to
8 by merging buckets, a scale below -4 carries no sample, OTLP bucket i
is bucket i + 1, and the zero threshold is Prometheus's 1e-128. Their
series carry __type__="histogram" and __temporality__, the labels the
user guide's "Querying histogram metrics" reads; __type__ is dropped
wherever the metric name is, as Prometheus drops it.

A series keeps its float samples apart from its histogram samples, so
the functions that do not mention native histograms ignore them, as
Prometheus's documentation says. histogram_count, histogram_sum and
histogram_avg read them; count, group, count_values (with Prometheus's
text form of a histogram), count_over_time, present_over_time,
last_over_time, timestamp and the label functions take them; min, max,
stddev, stdvar, quantile, topk and bottomk skip them with Prometheus's
"ignored histogram in <op> aggregation" info, placed as Prometheus places
it, returned under infos. The API writes histogram samples under
histogram and histograms as Prometheus does, with bucket bounds from
Prometheus's own table, and now writes numbers below 1e-6 and from 1e21
with an exponent, as Prometheus's MarshalFloat does.

Part of #7030.
2026-12-02 16:11:15 -04:00
Priamo Germosen aba7912fb2 feat(cloudwatch): serve PromQL range queries (#10002)
QueryMetrics over a range, GET and POST /api/v1/query_range: the query
evaluated at each step from start to end, both included, answered as a
matrix in order of the series' labels, a scalar as a series with no
labels. Parameters are checked in the order and with the messages of
Prometheus 3.0's API (start, end, end before start, step as seconds or a
duration, zero or negative step, 11,000 points per series), then against
the guide's 30-day range. A range query and a subquery share one step
evaluator, and a range query's result keeps its memory charge as an
instant query's does.

The guide's per-account concurrency limits now apply to every PromQL
endpoint: 30 query and 30 discovery requests of an account at once, one
past that refused with a 429.

A query's parse and type errors now carry Prometheus's `invalid parameter
"query": ` prefix on both query endpoints. Folds in two leftovers of the
Jackson 3 move: PromQlSeries uses stringNode, and OtlpMetricsDecoder no
longer catches an IOException nothing throws.

Part of #7030.
2026-12-02 14:57:28 -04:00
Jimmy Liu Jia df3fe5ce38 feat(logs): support stats, ispresent and like in Insights queries (#9925) 2026-12-02 14:48:14 -04:00
Jackson PriceandAndre Kurait da918e772c fix(appconfig): keep both hosted versions after concurrent creates (#10000)
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-12-02 14:43:36 -04:00
Jackson PriceandAndre Kurait fbd845c33c fix(codedeploy): return the compute platform for deployment groups (#9993)
GetDeploymentGroup and BatchGetDeploymentGroups returned each group
without its computePlatform, so SDK callers read null. Both reads now
fill it from the group's application when the group has none stored,
which covers new groups and ones saved before alike, and a stored value
still wins.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-12-02 14:04:05 -04:00
Allen Sanborn cf5dd0e3cf fix(apigateway): reject unknown UpdateMethod patch paths and CUSTOM auth without an authorizer (#9999) 2026-12-02 14:03:59 -04:00
XuJian 35b760918c fix(s3): ListBuckets filters the buckets by prefix and bucket-region (#9887)
ListBuckets read prefix and bucket-region only to decide whether to
render each bucket's BucketRegion, so the list was never narrowed. Both
parameters now filter the listed buckets before the page is cut, so a
continuation token resumes the filtered list, and a sent prefix, empty
included, comes back as the response's Prefix. A bucket-region outside
the Regions AWS publishes, or other than the Region the request reached
(for a presigned request, the one its credential names), is refused
with InvalidArgument as AWS answers it.

Closes #9858
2026-12-02 11:57:42 -04:00
Priamo Germosen 253e988b63 feat(cloudwatch): serve PromQL instant queries (#9990)
Part 2 of #7030. QueryMetrics (/api/v1/query) evaluates a PromQL
expression at one time over the stored OTLP metrics: a Prometheus 3.0
parser and a float engine with selectors, range selectors, subqueries,
the offset and @ modifiers, operators with vector matching, aggregations
and every non-experimental function but those of native histograms.

A result holds at most 500 series, truncated with the user guide's
warning, and every selector must name a metric. The guide's scan limits
and execution timeout bound the read, now shared with discovery, and a
query holds at most Prometheus's default 50,000,000 samples in memory.
2026-12-02 11:54:35 -04:00
Allen Sanborn c78260c690 fix(route53): store hosted zone names lowercased (#9926) 2026-12-02 11:52:03 -04:00
XuJian 2506d9c44b fix(quicksight): keep the request status in the HTTP line (#9998)
QuickSight's Status is the HTTP status of the request, which botocore
models at location statusCode rather than as a body member, but Floci
wrote it into all eighteen response bodies and read it back to pick the
status line. QuickSightService now returns only RequestId and the
documented members, and each route names the status it sends: 202 for
CreateDashboard and CreateDataSource, 201 for CreateDataSet,
RegisterUser and CreateIngestion, and 200 elsewhere, as before. Nested
resource Status fields are unchanged.

Closes #9994
2026-12-02 11:43:26 -04:00
Kenshin Okinaka 2352e27016 fix(athena): answer Trino's from_iso8601_timestamp on DuckDB (#9981) 2026-12-02 11:38:08 -04:00
Michael Edwards 8dae425d7c fix(sqs): find queues stored without an account prefix by their URL (#9992)
getQueueByUrl reads only the account-prefixed key, so a queue persisted
before storage was account-scoped, under region::/<account>/<name> with
no account prefix, was NonExistentQueue to every URL-based action, and
its persisted messages loaded under the wrong key. At startup,
rekeyToAccountAndName now also moves such unprefixed entries, in the
queue, message and both deduplication stores, to the account their
queue path names, before the messages and deduplication state are
loaded. An entry whose destination already holds a different value
stays in place with a warning.

Closes #9991
2026-12-02 11:25:56 -04:00
Jackson PriceandAndre Kurait ce348bf0e2 test(ec2): warm the metadata fixture before probing readiness (#9954)
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-12-02 11:19:05 -04:00
Matheus André 970e7ce191 test(ec2): fold the remaining mock-mode Ec2Service copies into mockModeService() (#9988) 2026-12-02 11:08:47 -04:00
Hector Ventura aca8c5129f fix(ses): cap the part count and nesting of the MIME messages Floci parses (#9996)
SES raw sends, the SMTP relay and EKS bootstrap user data parse
client-supplied MIME with mime4j, and the 0.8.12 the Quarkus BOM manages
caps neither the part count nor the nesting depth, so a message of a
huge number of tiny parts made the emulator build an object graph for
every part. mime4j is now managed at 0.8.15, and MimeMessages, the one
place Floci parses client-supplied MIME, pins its limits: SES's quota of
500 MIME parts, and mime4j's defaults of 64 levels of nesting, 16,384
header fields and 1 MB of header bytes.

Over a limit, a raw send is refused with InvalidParameterValue
(BadRequestException on v2) "Raw message could not be parsed.", a
simple send whose assembled attachments exceed it is refused rather
than sent unscreened, the relay skips the message, and EKS reads the
user data as non-multipart.
2026-12-02 10:56:24 -04:00
Hector Ventura e78844bbad chore(deps): move to Quarkus 4.0.1 and Jackson 3 (#9977) 2026-12-02 10:26:24 -04:00
Vũ Thế Huy 850c12d2d1 feat(glue): wire Spark ETL jobs to Floci Redshift connections and S3 staging (#9638) 2026-12-02 09:04:31 -04:00
Ignas 2bb2a85e28 feat(route53): resolve public aliases to regional API Gateway custom domains (#9979)
A public Route 53 alias resolves only when a DNS record source claims
its target, and API Gateway had none, so an alias to a regional custom
domain's regionalDomainName returned REFUSED. ApiGatewayDnsRecordSource
now answers such an alias with the receiving listener's address, as
ElbV2DnsRecordSource does for an Application Load Balancer. The target
must name exactly one stored domain, in any account or Region, and the
alias's hosted zone ID must be that domain's regionalHostedZoneId; a
mismatch or an ambiguous name is REFUSED, and AAAA gets NOERROR with no
addresses.

Closes #9978
2026-12-02 08:56:42 -04:00
XuJian 9673300913 feat(quicksight): list and delete registered users (#9987) 2026-12-02 08:53:51 -04:00
Rashen Anupama 3fe3faa37e feat(iot): serve thing connectivity from MQTT session history (#9974)
GetThingConnectivityData now answers for a registered thing from the
MQTT broker's account- and Region-scoped session history: whether it is
connected, the last event's timestamp in epoch seconds and the
disconnect reason, with no session details for a thing that has never
connected. With connectivity indexing off it answers
InvalidRequestException with AWS's message, and includeSocketInformation
is accepted without the socket fields Floci doesn't track.

Closes #9933
2026-12-02 08:52:13 -04:00
Jackson PriceandAndre Kurait f7ac903d91 docs(elbv2): clarify target group health check intervals (#9983)
The ELB guide now gives the 5 to 300 second range CreateTargetGroup and
ModifyTargetGroup accept for HealthCheckIntervalSeconds, and says a
ModifyTargetGroup that omits it keeps the target group's current
interval.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-12-02 08:45:09 -04:00
Andre Kurait 1965ee2be7 fix(ec2): use one clock for lifecycle retention and Auto Mode (#9971)
EC2 stamped lifecycle records and pruned terminated instances on
different clocks, so a controlled-clock Auto Scaling refresh could lose
its terminated original at once, and EKS Auto Mode measured newly
launched instances against the wall clock and treated them as past the
registration deadline. EC2's timestamps, scheduled retention and Auto
Mode's decisions now use the injected clock. The one-hour retention
boundary and native teardown behaviour are unchanged.
2026-12-02 08:43:27 -04:00
Oleksandr Nikolaichuk d91b135e5f refactor(cloudformation): provisioners read dropped properties from the engine's changes (#9828)
The 18 provisioner calls of ProvisionContext.droppedProperties now read
the dropped set from ctx.changes(type, props).dropped(), the engine's own
change, so 22 types leave change-exempt.tsv. The drop-policy scan follows
.dropped() too, which adds the seven AWS::SNS::Topic rows its arm already
decided. Behaviour is unchanged: the engine's change is built from the
same prior and current properties the provisioner gets, and a dropped
property is one the prior properties declared and the current ones don't.

Part of #6606
2026-12-02 08:41:23 -04:00
Priamo Germosen e0254217be feat(cloudwatch): serve PromQL series and label discovery (#9984)
Part 1 of #7030. GetSeries (/api/v1/series) and GetLabels (/api/v1/labels,
/api/v1/label/<name>/values) answer over the metrics the OTLP endpoint
ingests, with the labels, selector syntax, limits and Prometheus envelope
the CloudWatch user guide's PromQL pages give. Regular expressions are
RE2's, as Prometheus's are.

The guide's "IAM permissions for PromQL" table is vendored by a new fetcher
and read by the authorized-actions generator, so the operations are checked
as cloudwatch:ListMetrics, and QueryMetrics carries cloudwatch:ListMetrics
as a companion every request needs, which the enforcement filter checks.
@IamOperation can name a method's operation.

The OTLP 40 KB metadata limit counts the resource and scope schema URLs,
which PromQL reads as labels of the series.
2026-12-02 08:40:21 -04:00
Oleksandr Nikolaichuk fa18f891ad fix(cloudformation): a failed in-place ScheduleGroup update restores its prior tags (#9779) 2026-12-02 08:35:33 -04:00
Andre Kurait a144aa4175 fix(cloudformation): preserve legacy S3 noncurrent expiration (#9967)
CloudFormation dropped an S3 lifecycle rule's deprecated
NoncurrentVersionExpirationInDays, so the stack succeeded but S3 held no
noncurrent expiration. The resolved days are now sent as NoncurrentDays
when the structured NoncurrentVersionExpiration property is absent.
Parameter updates and moves between the legacy and structured forms keep
the bucket and replace its retention settings.
2026-12-02 08:34:22 -04:00
Kenshin Okinaka 992944abd7 test(emr): run the Presto entrypoint tests on Linux only (#9980)
Two EmrPrestoTest cases run EmrPresto.ENTRYPOINT in a host bash. The
entrypoint edits files with GNU sed's -i, as the PrestoDB image has it,
and BSD sed on macOS reads the next argument as a backup suffix, so both
cases failed there. They now run on Linux only, as the /proc relay
cases in EksPodNetworkRoutingTest do. The entrypoint is unchanged.
2026-12-02 08:31:49 -04:00
Allen Sanborn ae8eb09f4b feat(ec2): add Ubuntu 26.04 amd64 and arm64 AMIs to the image catalog (#9969) 2026-12-02 07:08:38 -04:00
Jackson Price 473dcde150 test(elbv2): wait for the ALB listener to accept connections (#9970)
The ALB redirect and host-header tests wait for the local listener
before sending their requests, but Awaitility's untilAsserted stops on
any exception that isn't an assertion failure, so a connection refused
while the listener was still binding failed the check at once. The
shared fixture now ignores ConnectException and keeps trying until its
existing five-second deadline.
2026-12-02 06:55:48 -04:00
XuJian 34fa7d6821 fix(cloudwatchlogs): refuse a PutLogEvents batch that runs back in time (#9923) 2026-12-02 06:52:44 -04:00
mrfelek 9583227886 feat(eks): keep user pods off a cluster's control plane where real nodes run them (#9966)
EKS runs no pod on a cluster's control plane, but Floci's k3s node is
both the control plane and the stand-in for the nodes Floci doesn't run,
so an Auto Mode cluster whose image catalog gives its nodes a real
kubelet still ran its workloads on the control plane. The node now
carries node-role.kubernetes.io/control-plane:NoSchedule, which
cluster-critical pods tolerate, where real nodes run user pods: an Auto
Mode cluster whose user-pod NodePools launch only architectures with a
self-registering image. A cluster with an active managed node group, or
with neither node groups nor Auto Mode, runs user pods on the node as
before, unless control-plane-runs-pods-without-nodes is false, which
leaves them Pending as on EKS. The taint is decided and written under
one lock per cluster, and Auto Mode's pass moves it with the NodePools.
2026-12-02 06:52:30 -04:00
武田隆志 b54ef994a2 fix(s3): name the caller and the setting when BlockPublicPolicy refuses a policy (#9968)
When BlockPublicPolicy, on the bucket, on the account or applied by
default, refused a public bucket policy, PutBucketPolicy answered
AccessDenied with the message "Access Denied". It now names the caller
and the setting as AWS does: "User: <caller> is not authorized to
perform: s3:PutBucketPolicy on resource: "<bucket ARN>" because public
policies are prevented by the BlockPublicPolicy setting in S3 Block
Public Access." The caller is resolved as for bucket policy evaluation.
The code, the 403 status and the Resource element are unchanged, and a
request without an access key, and the CloudFormation path, keep the
bare message.
2026-12-02 06:49:33 -04:00
mrfelek c914a196f9 fix(ec2): start again a running instance whose container a Docker or host restart stopped (#9922)
An EC2 instance recorded running whose container exited while Floci was
down, as a Docker daemon or host restart kills every container, stayed
running with a dead container, so EKS Auto Mode nodes on it stayed
NotReady. On startup, a running record whose container Docker reports
stopped is now started again, as EC2 recovers an instance whose host
failed, whatever its exit code, since a systemd guest stopped by a
restart exits 0 just as after a poweroff. Its port forwards are
unpublished before the start and reconciled once it runs, its volumes
are restored, and a protected instance's firewall helper is started
again with its default-deny table before the firewall is restored.

Part of #8914
2026-12-02 06:46:35 -04:00
Hector Ventura 1c9ed3f706 test(storage): pin the on-disk storage formats with files the current code wrote (#9976)
Adds fixtures written by the current code (Jackson 2) for every on-disk
storage format, and a test that reads them back and writes them again,
so a dependency change that alters what is on disk fails the build
instead of shipping. The fixtures cover write-ahead logs with their
snapshot, persistent and hybrid JSON files, partitioned shards and their
journal, and real stored models from Secrets Manager, SQS, S3 and
DynamoDB across two accounts and an unprefixed key. Each fixture's
SHA-256 is checked, WAL and journal records must match byte for byte,
and JSON files must match line for line and as a tree.
2026-12-02 06:43:38 -04:00
Priamo Germosen 03e1a53d2e fix(iam): read the passed roles and creation tags of REST services Floci already routes (#9962)
regen_iam_passed_roles.py left Access Analyzer, Bedrock, CloudFront, FIS, GuardDuty and Macie out as "REST routes no
rule maps yet", and regen_iam_tag_on_create.py Inspector2 the same, but the request-resources table has read their
vendored REST routes since Floci began routing their requests by operation, so the reason no longer held: a request
passing a role to one of them needed no iam:PassRole, and an Inspector2 create's tags needed no inspector2:TagResource.

They move into each generator's NAMESPACES, and the generic rules read them with no correction: 23 role-passing
operations (Bedrock's model customization, evaluation, import and invocation jobs, agents, flows and knowledge bases;
FIS's experiment templates; GuardDuty's malware protection plans and scans; CloudFront's realtime log configs, from the
RoleARN of each endpoint in the XML body; Access Analyzer's policy generation and Macie's reveal configuration) and five
Inspector2 creates. Each operation is read whether or not Floci serves it, so one Floci adds is checked from the start.
No entry moves.

Floci's CloudFront parser took the first EndPoints anywhere in a realtime log config's body, and every child of it as an
endpoint, while the role is read from the request's own EndPoints, at the <member> botocore serializes each as, so an
<EndPoint>, or an EndPoints nested in another element ahead of the request's own, passed a role unchecked; the parser
now reads the <member> elements of the request's own EndPoints alone, as AWS's deserializer reads no other. IAM reads
the role of every KinesisStreamConfig's every RoleARN and none from a body where one holds elements, so an endpoint
holding more than one KinesisStreamConfig, or a config more than one RoleARN or StreamARN, or an ARN holding elements,
is refused with InvalidArgument rather than saved from one the check did not read. The request-resources table, which
leaves a passed role's member out of the resources a request names, is regenerated with the new passed roles: Bedrock's
evaluation, customization and invocation jobs, agents, flows and knowledge bases and FIS's experiment templates no
longer take their role's ARN as one of their resources.

OpenSearch stays out: AssociatePackage's role is AssociationConfiguration.KeyStoreAccessOption.KeyAccessRoleArn of the
opensearch client's request, while the Service Reference lists only the es client for it, so the generic rule finds no
role member; its reason now says so.

The Service Reference now also lists operations pinned botocore 1.44.14 does not model yet (SageMaker's model monitor
configs, IAM's workload identity creates); both tables are synced with them unread, as the generators record such an
operation.

IamPassRoleEnforcementIntegrationTest checks that creating and updating an FIS experiment template, a GuardDuty malware
protection plan and a CloudFront realtime log config each needs iam:PassRole on its role for the service it is passed
to, and that a realtime log endpoint under another element than <member>, or in an EndPoints nested ahead of the
request's own, saves no role, that a RoleARN holding an element, or doubled ahead of one, is refused, and that a body in
another charset than the UTF-8 both the check and the handler read saves no role.
2026-12-02 02:24:34 -04:00
Hector Ventura 26b97da9ec fix(ci): copy the nightly images to public ECR by digest, with retries (#9972)
Public ECR dropped a blob upload in the nightly run 46814301866 ("The upload with id ... does not exist"). The nightly pushed each image to Docker Hub and public ECR in one buildx step, so the step failed and the compat nightly image was skipped on both registries. This is the failure #9840 fixed in release.yml.

The two pushes now go to Docker Hub only. A step after them copies each image to public ECR by the digest its push produced, with docker buildx imagetools create, and retries a dropped upload. It runs when either push produced a digest, so a failed compat push still leaves the native nightly on public ECR. CI runs the new tests for the script and for the Docker Hub-only pushes.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-12-02 00:20:47 -06:00
Matheus André a61eca22a8 test(ec2): build the mock-mode Ec2Service through mockModeService() (#9965)
Ec2ServiceTest built mockModeService()'s exact service inline in 147
places. Those calls now go through the helper. Follows #9957.
2026-12-01 23:51:23 -04:00
Allen Sanborn 994bc2eff2 feat(config): add configuration aggregator operations (#9963)
AWS Config had no configuration aggregator operations, so Terraform's
aws_config_configuration_aggregator failed on create.
PutConfigurationAggregator, DescribeConfigurationAggregators and
DeleteConfigurationAggregator are now served, with aggregators stored
per account and Region. A second Put with the same name updates in
place, keeping the ARN and CreationTime. The source and region rules
refuse with AWS's messages, Describe pages 100 at a time, and an
unknown name is NoSuchConfigurationAggregatorException. Tags given on
the first Put work with the tagging operations, and IAM checks an
aggregator against its stored ARN and tags.

Closes #7019
2026-12-01 23:49:53 -04:00
Priamo Germosen 2e1f9d2ffc feat(iam): build access denied messages from the decision record (#9964)
The last step of #7887. A request a policy refused was answered with
"User is not authorized to perform: <action>" for every service but S3,
and the services that did name the policy type (S3, Athena's statements,
Lambda's network connectors) asked a second path, firstRefusal, which
re-ran the evaluation one policy type at a time.

The evaluator's DecisionRecord now carries the refusal an access denied
message names, worked out in the same decide() pass: the first policy
type that refuses, by its explicit deny or the allow it lacks, in the
order AWS was recorded naming them for lambda:PassNetworkConnector
(#6699): organization levels, identity policies, permissions boundary,
session policy. A resource policy's explicit deny comes first and its
missing allow across accounts last, as S3 names them (#9281). The SCP walk
keeps the first level that refuses.

AccessDeniedMessages.reason builds the phrase from that refusal, naming
the managed policy that holds the denying statement, or the boundary, by
its ARN. firstRefusal is gone. The enforcement filter explains each
decision instead of only evaluating it, and every policy refusal now
answers in the IAM User Guide's format, "User: <caller> is not
authorized to perform: <action> on resource: <resource> because no
identity-based policy allows the <action> action", in each protocol's
envelope. Refusals no policy made keep the old sentence.

Closes #7887
2026-12-01 23:49:10 -04:00
Andre Kurait 6c74189064 feat(elbv2): add an optional local health probe interval ceiling (#9961)
FLOCI_SERVICES_ELBV2_MAX_HEALTH_CHECK_INTERVAL_MILLIS caps the interval
Floci schedules target health probes at, for faster local health
transitions. The default 0 keeps each target group's requested interval;
a positive value lowers only the scheduled interval, leaving the API
settings, probe timeouts and healthy and unhealthy thresholds as the
target group has them. A negative value is refused at startup when
ELBv2 is enabled, before any runtime is restored.
2026-12-01 23:46:36 -04:00
Jackson PriceandAndre Kurait 98158aacff feat(cloudformation): provision CodeDeploy deployment configurations (#9940)
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-12-01 23:45:19 -04:00
Hector Ventura 7a50d75d10 feat(sns): retry HTTP and HTTPS deliveries by the subscription delivery policy (#9960)
An http or https notification was posted once and dropped on any
failure. It is now retried, as SNS does, when the endpoint answers 5xx
or 429 or cannot be reached, following the effective delivery policy:
the subscription's healthyRetryPolicy, the topic's
defaultHealthyRetryPolicy when overrides are disabled or the
subscription sets none, and otherwise the default of 3 retries 20
seconds apart. The no-delay, pre-backoff, backoff and post-backoff
phases, the delay targets and the backoff function are honoured, and
retries are scheduled rather than slept on a thread.

Any other answer is a permanent failure. A notification that fails
permanently or runs out of retries goes to the subscription's
RedrivePolicy dead-letter queue when one is set. Pending retries are
bounded per message by the policy, as on AWS, and a reset, shutdown,
Unsubscribe or DeleteTopic cancels them.
2026-12-01 23:39:57 -04:00
Hector Ventura 1067c9a823 chore(docker): pin the k3s, Redpanda and SQL Server image defaults (#9959) 2026-12-01 23:18:27 -04:00
TATSUNO “Taz” Yasuhiro 05e47455a1 feat(eventbridgev2): retry a failed Lambda invocation and dead-letter it (#9955)
A subscriber with a Lambda target now applies its RetryPolicy and
OnFailureConfiguration. A failed invocation, a function error or a
function that does not exist, is retried after about 0.5 s and then four
times longer each time, until MaxRetryAttempts is used up or the next
retry would start after MaxEventAgeInSeconds from the event's ingestion;
a FIFO subscriber's later batches wait meanwhile. The batch then goes to
the OnFailureConfiguration queue as one record. Pending retries are kept
in memory, and a reset or deleting the subscriber drops them.

CreateSubscriber and UpdateSubscriber refuse an OnFailureConfiguration
queue of another Region or account, or an ARN outside the model's queue
pattern. A FIFO dead-letter queue gets the first event's group id and
event id as its message group and deduplication ids.
2026-12-01 23:17:36 -04:00
Dmitri Samoilov ab6a3b3dd7 fix(eventbridge): evaluate anything-but prefix, suffix, equals-ignore-case and wildcard objects (#9906) 2026-12-01 23:02:58 -04:00
Matheus André 9e1962772c test(ec2): build the real-catalog Ec2Service through one helper (#9957) 2026-12-01 22:47:27 -04:00
mrfelek 5bc31a1ef4 feat(eks): honour pods' zone topology spread constraints in EKS Auto Mode's room and launches (#9894)
EKS Auto Mode ignored pods' zone topology spread constraints: withoutRoom
counted a node in any zone as room for a pod the scheduler then refused
for its skew, and a new node went to the first zone that fit, so pods
that must spread kept getting nodes in one zone.

Auto Mode now reads each DoNotSchedule zone constraint and checks the
skew as the scheduler does, counting only pods on nodes the pod's node
selector and required affinity accept, over the zones the pool can
launch in. Room counts only in a zone the spread allows, and a spreading
pod's node goes to the allowed zone with the fewest matching pods, a
group sharing one node of the type that holds it. Pods without a spread
are placed as before.

Part of #8914
2026-12-01 22:42:27 -04:00