Commit Graph
6328 Commits
Author SHA1 Message Date
Jackson PriceandAndre Kurait 63ae18c3de test(tls): wait for the loopback listener with Awaitility (#10175)
Use the existing bounded socket probe to poll the IPv4 listener. Keep the startup deadline and include the port in a timeout.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <akurait@amazon.com>
2026-12-04 15:31:39 -04:00
Priamo Germosen cf50025eaa fix(iam): check Amazon MQ by its generated routes, resources and tags (#10172)
Under enforcement a REST route no vendored model names runs unchecked, and Amazon MQ was among them: any caller could
list, create, describe, reboot or delete a broker with no permission at all. MQ's model is vendored now
(regen_rest_routes.MODELS: mq), so each request is checked as its operation's action, and mq joins the generated
tables of request resources, passed roles and tags on create: a broker by the id its path gives, a configuration by
its id, and the tags a create carries, which need mq:CreateTags on the broker of the name it gives. The Service
Reference passes a role to mq.amazonaws.com on CreateBroker and UpdateBroker, which the rule reads from
LdapServerMetadata's roleName and userRoleName by their names. AWS gives LDAP metadata to ActiveMQ brokers alone, which
Floci does not create, and Floci serves no UpdateBroker, so the reading reaches no request Floci serves.

A broker's ARN is broker:${BrokerName}:${BrokerId}, and MQ's requests name a broker by its id alone, so the table
fills only BrokerId, and the reader asks the namespace's service for the resource of the one variable a request fills,
as it does for any type. AmazonMqStoredResourceArns answers it with the caller's broker of the id in the Region, so the
request is checked on the broker's whole ARN rather than broker:*:<id>, which no policy naming a broker matches. It also
answers the tags MQ holds on the broker an ARN names, read in the ARN's account and Region by the id it ends in and
matched on the whole ARN, neither read moving a stored broker.

The table also takes the Service Reference's change to SES since main's sync: TagResource, UntagResource and
ListTagsForResource now act on a multi-region-endpoint too, which the drift check of a change to the table requires.

IamRestRouteEnforcementIntegrationTest checks that with no grant a broker's read is refused, that a grant on one
broker's ARN reads it and refuses another, that a deny on one broker's ARN refuses it and leaves another, that an
aws:ResourceTag condition reads a broker's tags, and that a create carrying tags needs mq:CreateTags on the broker of
its name.
2026-12-04 15:20:38 -04:00
Jeremy Chapeau 743c44a0a4 fix(cloudtrail): record callers as CloudTrail's userIdentity types (#10101)
CloudTrail types the caller as Root for the account's credentials,
IAMUser for a user's key, AssumedRole for a role session and
FederatedUser for a federation token. Floci recorded the account root as
an IAMUser named root, and every session as an unknown "anonymous" user.
The account's credentials are now Root, with the account as principalId
and no userName; a role session is AssumedRole, with the role as its
sessionIssuer and the session's creationDate; a session a user's
GetSessionToken issued is that IAMUser.

Every temporary credential now carries its sessionContext attributes,
creationDate and mfaAuthenticated, which is true for a GetSessionToken
session opened with an MFA code. A session opened with a source identity
names it in sessionContext.sourceIdentity. A federation token's
sessionIssuer is the root or the IAM user that called
GetFederationToken. A session opened with AssumeRoleWithWebIdentity
names its identity provider in webIdFederationData. The root of an
account with an alias is named by it in userName.

Credentials GetDelegatedAccessToken exchanged for a request a role
approved now carry the role session's ID, "role-id:session-name", as
their aws:userid and CloudTrail principalId, with the role's ID as the
sessionIssuer's principalId.
2026-12-04 15:12:13 -04:00
Jeremy Chapeau 7be7949c06 fix(kms): answer ScheduleKeyDeletion with KeyState and PendingWindowInDays (#10099) 2026-12-04 15:11:56 -04:00
Priamo Germosen 817fd45089 test(cloudwatch): wait for the slow account's turn before the next tick (#10174)
AlarmEvaluator takes an account when it hands the account's turn to the
PromQL pool, but the turn's first query starts only when a pool thread
picks it up. anAccountWhoseQueriesAreSlowHoldsOneThreadAndDelaysNoOtherAlarm
ran the second tick as soon as the quick account's query had run, so on a
busy runner the slow account's thread could still be waiting to start,
and the check that its query ran exactly once saw 0.

The test now waits for the slow query to start before the second tick,
so the tick always meets the account still taken.
2026-12-04 14:52:39 -04:00
XuJian b365917f01 fix(route53): refuse a record set type given without a name (#10169)
The reference pairs StartRecordType with StartRecordName, so a type on its own has no name to refine
and AWS answers that request with InvalidInput. Floci read the type only inside the branch that runs
when a name is present, which dropped an unpaired type and listed the whole zone instead.

The check goes at the request boundary, beside the other Route 53 parameter constraints, because the
service already handles a type correctly once a name is given with it.

Closes #10167
2026-12-04 14:38:20 -04:00
Maddog2050 6e71231b98 fix(docdb): return cluster and instance AvailabilityZones as AWS does (#10166) 2026-12-04 14:35:09 -04:00
Priamo Germosen bea07871fb feat(elasticache): emit Valkey replication groups' OpenTelemetry metrics to CloudWatch (#10173)
Node-based Valkey replication groups emit the OpenTelemetry metrics of
the ElastiCache user guide's metrics reference to CloudWatch, where
PromQL reads them: the vended metrics every 60 seconds, and those a
resource metrics configuration selects every 15 seconds as detailed.
Each node's INFO is read straight from its server, as the backend's
administrator once a user group has turned the default user off, and
each command's type and category come from COMMAND INFO and COMMAND
DOCS.

The metric table is vendored from the reference page by
regen_elasticache_otel_metrics.py, checked by aws-data-check and the
drift workflow. VendedOtlpMetrics stores the export requests for the
account and Region. Emission is off by default behind
FLOCI_SERVICES_ELASTICACHE_OTEL_METRICS_ENABLED, since each node adds
about 8 KB to the OTLP store every minute.

Part of #7030.
2026-12-04 14:17:30 -04:00
XuJian c8bd295a4e fix(route53resolver): filter and page the endpoint and association listings (#10136) 2026-12-04 14:15:05 -04:00
Jackson PriceandAndre Kurait 3c1f07307a test(eventbridge): verify the token request when OAuth authorization fails (#10161)
Check that the token endpoint received the request before asserting that the destination received no event. An unmatched rule used to pass this test.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <akurait@amazon.com>
2026-12-04 14:02:37 -04:00
Jackson PriceandAndre Kurait 174741682a test(tls): check disabled and refused listeners before network setup (#10162)
Check that a disabled or refused proxy leaves Vert.x untouched. Both tests used to claim an unused port and probe it after a fixed delay.

Co-authored-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-12-04 14:01:57 -04:00
Niels Kootstra a500e6d407 fix(autoscaling): always describe the EnabledMetrics member (#10156)
DescribeAutoScalingGroups left EnabledMetrics out of a group that had none
enabled. AWS returns the member as an empty list, so a client reading it
directly failed on a group created without EnableMetricsCollection.

The container is now always written: empty for a new group or after
DisableMetricsCollection has removed every metric, and unchanged when
metrics are enabled.
2026-12-04 13:59:29 -04:00
Priamo Germosen e04990a9bb feat(cloudformation): provision CloudWatch resource metrics configurations (#10171)
AWS::CloudWatch::ResourceMetricsConfiguration creates the detailed monitoring
configuration of its ResourceArn and deletes it with the stack. Ref returns
the ARN, and CreatedAt and UpdatedAt return the configuration's timestamps to
the millisecond, as the API answers them.

MetricSelections updates in place, and a dropped list removes the filter. The
resolved selections are compared with the stored ones, so a selection reading
a replaced resource takes its new value. A new ResourceArn replaces the
configuration, and the old one is deleted once the update completes. A failed
update puts the previous selections back, with the timestamps of that write,
and a create for a configured ARN fails with AlreadyExists. CreatedAt and
UpdatedAt are read-only and refused in the template. A configuration already
gone is taken as deleted.

CfnExceptions.alreadyExists builds the resource handler's AlreadyExists answer
and CfnExceptions.refuseReadOnly the read-only refusal, for the provisioners
that spelled them out, and the OTel enrichment snapshot
moves to a __Floci key in CfnRollback, as every other provisioner's does.

Part of #7030.
2026-12-04 12:27:32 -04:00
Priamo Germosen bece631041 feat(cloudwatch): create, read, update and delete resource metrics configurations (#10164)
Add CreateResourceMetricsConfiguration, GetResourceMetricsConfiguration,
UpdateResourceMetricsConfiguration and DeleteResourceMetricsConfiguration
over Query, JSON 1.0 and CBOR: at most one detailed monitoring
configuration per resource ARN, kept per account and Region. Floci stores
the configuration; collecting the selected metrics comes next.

The model is checked first, every violation in AWS's form, the metric
selection list quoted as AWS writes it. Then the ARN must name a resource
type ("ARN is missing resource type") and one with detailed monitoring
("Unsupported resource type"): the guides document only ElastiCache
replication groups. These refusals are ValidationError, the JSON body
naming com.amazon.coral.validate#ValidationException, as recorded from
AWS. A second create is ConflictException (409) and a missing
configuration ResourceNotFoundException (404), each with its exception's
model documentation, as AWS quotes no message. An update replaces the
selections, and one without them collects every metric.

DeleteReplicationGroup fires a ReplicationGroupDeleted event, and the
configuration of the deleted group is deleted with it, as the ElastiCache
user guide says. SmithyValidationErrors.Violations gains sizeOutOfRange, the quoted
twin of the list-size violation.

Part of #7030.
2026-12-04 11:25:25 -04:00
Priamo Germosen 1f5c7abaaf feat(cloudformation): provision CloudWatch OTel enrichment and resource tags for telemetry (#10157)
AWS::ObservabilityAdmin::TelemetryEnrichment starts resource tags for
telemetry in the stack's Region and stops it on delete. Scope must be
ACCOUNT; Ref returns it and Status is RUNNING.

AWS::CloudWatch::OTelEnrichment starts OTel enrichment with its filters,
updates them in place as UpdateOTelEnrichment does (a dropped list is
cleared), and stops it on delete. An update writes the filters when the
template changes them or when they resolve to other values than the
running ones, as a Ref to a resource the update replaces does. Ref and AccountId are the account,
Status is RUNNING, and a failed stack update puts the previous filters
back. Both are singletons: a create while the feature already runs fails
with AlreadyExists, as the CloudFormation handler contract requires, and
the check and the start hold one lock.

Properties go through template validation, then the schema's model
validation, with the two types added to the vendored property types.
The vendored schema data is regenerated from AWS's current archive, which
adds AvailabilityZoneId to AWS::EC2::Instance (recorded as a writable gap,
since the instance provisioner does not read it) and an EBS Throughput, and
drops ElasticGpuSpecifications and ElasticInferenceAccelerators, whose gap
rows go.
2026-12-04 10:41:26 -04:00
Priamo Germosen ebdb9c6615 fix(iam): check Bedrock AgentCore by its generated routes, resources, passed roles and tags (#10153)
Under enforcement a REST route no vendored model names runs unchecked, and Bedrock AgentCore was among them: any caller
could create, read, update or delete its runtimes, runtime endpoints, gateways, gateway targets and rules, memories,
harnesses, browsers, code interpreters, workload identities and credential providers, put a resource policy, write and
read memory events and invoke a runtime, with no permission at all. AgentCore's two models are vendored now
(regen_rest_routes.MODELS: bedrock-agentcore and bedrock-agentcore-control, both signed bedrock-agentcore), so each
request is checked as its operation's action, and bedrock-agentcore joins the generated tables of request resources,
passed roles and tags on create: a resource by the id its path gives, the role each create or update passes, and the
tags a create carries.

The Service Reference passes CreateCapacityProvider's roles to bedrock-agentcore and ec2 without saying which member's
goes where. fetch_bedrock_agentcore_roles.py vendors what AWS says of each into
tools/aws/sources/bedrock-agentcore-roles.json, a ROLE_SOURCES entry as Batch's is: the operator role is "the IAM role
that AgentCore assumes to manage the capacity provider" (Control API reference), which AgentCore's capacity provider
sample says must trust bedrock-agentcore.amazonaws.com, and launchParameters.instanceProfileArn is "the IAM instance
profile to associate with launched instances", whose role the IAM User Guide's trust policy for an EC2 instance's role
gives to ec2.amazonaws.com. That member names an instance profile, which the rule does not read by its name, so the
source lists it in roleMembers, and the check that every vendored role is read now counts such members as the table
does.

BedrockAgentCoreStoredResourceArns answers the tags AgentCore holds on the resource an ARN reaches, in its account and
Region, which an aws:ResourceTag condition reads: a runtime, a runtime endpoint, a gateway, a memory or a harness as
the tag routes read the same ARN (a qualified runtime ARN answers the runtime's), and a custom browser, a custom code
interpreter or a browser profile from the tool. The table asks for a consent portal, a code interpreter by its name or
a configuration bundle to be found, which Floci does not serve, and for the memory an event is in, which the path of
GetEvent and DeleteEvent already names. A runtime endpoint's routes are checked on its runtime and a credential
provider's on *, as the generated table reads them: their ARNs end in a ${Name} beside another variable, which no
reading fills.

The tag routes no longer take the agent/<uuid> and agentEndpoint/<uuid> forms Floci wrote before #8088. They name no
AWS resource, so IAM could only check them as named, past a deny on the runtime or endpoint they reached; they now get
a ValidationException, and a legacy agent/ ARN names no runtime on invoke. A CloudFormation stack that holds an
agentEndpoint/<uuid> physical id still updates and deletes that endpoint.

A namespace the table reads is served on its tag routes only at the ARN its path encodes, as Connect's, MSK's and
MWAA's are, so AgentCore's and CloudFormation's AgentCore tests send the ARN encoded, as the SDKs do, and
docs/services/bedrock-agentcore.md says so.

IamRestRouteEnforcementIntegrationTest checks that with no grant a gateway's read is refused, that a grant on one
gateway reads it and refuses another, and that an aws:ResourceTag condition reads its tags; that a gateway create needs
iam:PassRole on its role and bedrock-agentcore:TagResource for the tags it carries; that a data plane event write is
checked on the memory its path names; that an aws:ResourceTag grant reads a browser's tags; and that a deny on a
runtime's tags holds for its ARN and its qualified ARN while the legacy endpoint form is refused.
2026-12-04 10:30:49 -04:00
Jackson PriceandAndre Kurait 8b48ac5297 test(ses): wait for terminal import and export job statuses (#10155)
Share the job polling across the SES import and export suites. Keep reading while a job is pending and report its request path on timeout.

Co-authored-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-12-04 09:45:47 -04:00
Priamo Germosen 15bcb53828 feat(cloudwatch): republish vended metrics for PromQL through OTel enrichment (#10151)
While OTel enrichment runs in an account's Region, each datapoint Floci
vends there is republished as an OpenTelemetry data point that PromQL
reads, when the CloudWatch user guide's "Supported resources and
metrics" page lists its metric for the resource it measures with exactly
its dimension names, and the enrichment's filters keep it: include
first, then the exclude match set subtracted, empty lists permissive,
names matched exactly. The classic datapoint is stored as before.

The page's tables are vendored as aws/cloudwatch-otel-enrichment.json by
tools/aws/regen_cloudwatch_otel_enrichment.py, which copies each
namespace's scope and, per resource, whether its ARN and tags are added
and each metric's instrument type and dimension sets, and refuses a
reworded page. make cloudwatch-otel-enrichment-check reads the file's
shape offline, in aws-data-check; -verify compares it with the live page,
in iam-data-verify and the weekly drift run.

A republished series carries the guide's labels: the dimensions as data
point attributes, cloud.resource_id, provider, Region and account on the
resource, the namespace's scope with cloudwatch.source and
cloudwatch.solution, and the resource's tags as @aws.tag.<key> with
resource tag enrichment while resource tags for telemetry run. Only a
request enrichment wrote maps tag.* to @aws.tag; one a client sends keeps
@resource.tag.*. A Sum is a delta sum of the datapoint's sum; a Histogram
is a delta one-bucket histogram of its sample count, sum, minimum and
maximum, as CloudWatch does not document that conversion.

SQS queues pass their ARN and tags, and so do paused Aurora Serverless v2
instances and clusters and Redshift clusters; of those the page lists
every AWS/SQS metric and the paused instance's ACUUtilization and
CPUUtilization. A failed republication is logged and never reaches the
classic publication.

Part of #7030.
2026-12-04 09:33:01 -04:00
Jackson PriceandAndre Kurait e32d6cb253 test(codeartifact): check result order when the first sidecar item waits (#10154)
Hold the first item until the other nine have mapped their values. The result must still follow the input list.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <akurait@amazon.com>
2026-12-04 09:31:14 -04:00
Hector Ventura b3082851e1 test(core): enforce the core boundary now that its allowlist is empty (#10150) 2026-12-04 09:23:18 -04:00
Hector Ventura 4f934b16b0 refactor(lifecycle): let services start, restore and stop through hooks (#10149)
EmulatorLifecycle injected every service manager it started, restored
or stopped, and read their settings, which kept it tied to AWS. Services
now register small hook beans in their own packages (ShutdownHook,
StartupHook, HttpStartedHook and BannerContributor), and the lifecycle
runs them sorted by explicit ShutdownOrder and StartupOrder values
instead of CDI's order.

The hooks are beans of their own rather than the services, so reading
their order and name creates no service before the storage load. Every
step keeps its order, name, log message and error handling: synchronous
startup failures still fail the startup, background restore failures
are logged and startup goes on, and shutdown failures are logged per
step. The EKS restore runs as an HttpStartedHook once the HTTP server
listens, and the IAM enforcement banner line comes from a
BannerContributor.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-12-04 08:53:11 -04:00
Priamo Germosen 7064800c45 chore(deps): bump botocore to 1.44.18 (#10128)
Bumps botocore from 1.44.17 to 1.44.18 with its regenerated data. 1.44.18 adds
RDS data groups and DB cluster groups, whose operations the IAM tables now
read from the model rather than marking them as missing from the pinned
botocore.

The Service Reference lists two tagging actions for rds:CreateDataGroup,
rds:AddTagsToDataGroup and rds:AddTagsToResource, without saying whether the
tags a create carries need one or both, so the tag-on-create generator stopped
on it. The Aurora User Guide's prerequisites for data groups answer it: "To add
tags when you create a data group, grant rds:AddTagsToResource and
rds:AddTagsToDataGroup on *". fetch_rds_tag_actions.py vendors that page into
tools/aws/sources/rds-tag-actions.json, and the generator, granted it for RDS
alone (TAG_ACTION_SOURCES), lists both actions for the operation when they are
the ones the reference lists. --verify reads the page again.

That sentence grants both actions "on *", where the guide grants adding
tags to a data group that exists "on data-group:*", so the fetcher copies
that resource too and the table marks the operation anyResource: Floci
checks the create's tagging actions on *, not on the DB cluster the create
itself is checked on.

The tag-on-create table and TagOnCreate now carry each operation's tagging
actions as a list, and the enforcement filter, RequestChecks and STS's trust
policy check every action an operation's tags need. An operation with one
tagging action is checked as before. verify_role_sources' body becomes
verify_vendored_sources, which both generators use to verify their vendored
sources.

The guide's IAM page for database cluster groups authorizes
rds:CreateDBClusterGroup against "* (the group doesn't exist yet)", where the
Service Reference lists cluster-group for it and a group's ARN holds a
resource ID the request does not carry. fetch_rds_cluster_group_permissions.py
vendors that page's table as RDS's permission source, and the request
resources generator checks an action its row authorizes against * alone
there.

fetch_dms_arn_formats.py refreshes its botocore examples at the new pin, and
the authorized-actions table takes the Service Reference's new mapping of
budgets:DescribeBudgetSpendForPrincipal to budgets:ViewBudget.
2026-12-04 08:28:12 -04:00
Ignas ba5da89f87 fix(ecr): run the backing registry with an init so exec'd commands are reaped (#10140) 2026-12-04 07:37:19 -04:00
Jimmy Liu Jia c518e8deac fix(lambda): handle Function URL CORS and OPTIONS (#10142) 2026-12-04 07:27:11 -04:00
XuJian 2841047e09 fix(route53): page record sets by set identifier too (#10147)
ListResourceRecordSets resumed a page on the record name and type only, so a
page cut inside a group of weighted, latency, failover or geolocation record
sets sent the next request back to the first record set of that group and the
walk never advanced. Route 53 keys a record set on name, type and SetIdentifier,
and names the record set a page resumes at through NextRecordIdentifier when it
shares the name and type of the last record set on the page.

The handler now reads the identifier query parameter, the listing orders record
sets that share a name and type by their routing set identifier, and
NextRecordIdentifier is written only when the next page starts inside such a
group.

Closes #10145
2026-12-04 07:26:54 -04:00
Kenshin Okinaka 5c4108b1dc test(athena): add a rows helper for the sidecar tests that read every row (#10137) 2026-12-04 07:22:25 -04:00
Oleksandr Nikolaichuk b1c9107526 refactor(cloudformation): IoT Authorizer takes replacement from the engine (#10144) 2026-12-04 07:18:54 -04:00
Niels Kootstra f0cd34cfbd fix(lambda): honour a response Content-Type header of any case in the local proxy (#10141) 2026-12-04 07:14:23 -04:00
Oleksandr Nikolaichuk c68a08388e refactor(cloudformation): Events Archive takes replacement from the engine (#10143) 2026-12-04 07:13:34 -04:00
Jackson Price 810027bcd2 test(dynamodb): reuse the shared request helper in import tests (#10135) 2026-12-04 07:00:25 -04:00
Jackson Price f6de4caa5e test: share monitor waits across EKS, Lambda and ECS tests (#10127)
Use the shared thread-state poller for layer policy calls and task
startup. Keep the held monitor and fail if the worker exits before
blocking.

Move the EKS state check into ThreadStates and pass each caller's
timeout through to the shared poller.

Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-12-04 07:00:01 -04:00
Hector Ventura d08b578474 refactor(core): untangle TLS and DNS from AWS service code (#10134) 2026-12-04 06:58:54 -04:00
Kenshin Okinaka 21e89fe7ff test(athena): share the Trino query helpers across the sidecar tests (#10131)
The date-time and JSON function tests each had the same private
row(sql) helper, and jsonResultColumnsAreTypedAsAthenaTypesThem ran
the same translated DESCRIBE and athenaType mapping as the date-time
tests' types(sql). Both helpers move to TrinoSidecarQueries, which the
two classes call.
2026-12-04 00:13:35 -04:00
XuJian 83f600dc3f feat(route53resolver): answer GetFirewallConfig for a VPC (#10073) 2026-12-04 00:12:00 -04:00
Jackson PriceandAndre Kurait 29616491c8 test(dynamodb): wait for import completion and reuse the export check (#10129)
Wait through CANCELLING in the import tests and report the import ARN on timeout. Use the same DescribeExport check in the round-trip and export tests.

Co-authored-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-12-04 00:04:13 -04:00
Priamo Germosen a0a382b59a fix(iam): check Amazon Connect by its generated routes, resources and tags (#10125)
Under enforcement a REST route no vendored model names runs unchecked, and Amazon Connect was among them: any caller
could create, describe, update or delete an instance, its attributes or its storage configs. Connect's model routes are
vendored (regen_rest_routes.MODELS, signed connect), so each request is checked as its operation's action, and connect
joins the generated tables of request resources and tags on create: an instance by the id its path gives, each of
Connect's other resources by the members its request names, and the tags a create carries.

ConnectStoredResourceArns answers the tags Connect holds on an instance, read in place in the ARN's account and Region,
which an aws:ResourceTag condition reads. The table asks for a traffic distribution group or a data table to be found,
which Floci does not serve, so there is nothing to find. The table's integer variables now include Connect's
customer-managed-view-version ViewVersion, which test_regen_iam_request_resources pins.

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

IamRestRouteEnforcementIntegrationTest checks that with no grant an instance's read is refused, that a grant on one
instance reads it and refuses another, and that an aws:ResourceTag condition reads its tags.

ConnectService named an instance by any ARN, reading the text after its first slash, so an ARN of another shape
(arn:aws:connect:us-east-1::other/<id>) reached an instance IAM had not checked the request on, past a deny on it. It
now takes an instance's own ARN alone, the one IAM checks, refuses an ARN of any other shape, and looks one of another
account or Region up as given, which finds nothing; storedTags answers an instance's own ARN alone, so another
partition's gets no tags. ConnectStoredResourceArnsTest covers both, IamRestRouteEnforcementIntegrationTest checks that
an instance deny holds for each form the path gives it and that a tagged CreateInstance needs connect:TagResource, and
docs/services/connect.md says which ARNs are taken.
2026-12-04 00:02:50 -04:00
Hector Ventura ae9b7962ef refactor(docker): make the Docker client connect timeout configurable (#10132) 2026-12-04 00:01:53 -04:00
Priamo Germosen 00230a3612 feat(cloudwatch): start, read, update and stop OTel enrichment (#10130)
Add StartOTelEnrichment, GetOTelEnrichment, UpdateOTelEnrichment and
StopOTelEnrichment over Query, JSON 1.0 and CBOR, with one configuration
per account and Region as the user guide scopes it. Floci stores the
configuration; enriching vended metrics comes next.

Resource tag enrichment, the default, needs ObservabilityAdmin's resource
tags for telemetry running in the Region: a start without it is the
modeled ValidationError with the API reference's sentence, as AWS quotes
no message. EnableTagEnrichment false needs nothing. A start while
running changes nothing, an update replaces both filter lists as a pair
and keeps the stored tag setting it omits, and an update while stopped is
AWS's ResourceNotFoundException "OTel enrichment is not enabled for this
account". A stopped enrichment reads as its status alone.

Filters are validated as the model gives them, every violation listed in
AWS's form, then against the 100 selectors allowed across both lists. A
selector naming metrics without a namespace is refused as a null namespace
over Query too, for metric streams as well, rather than read as no selector.
Over JSON, a filter list sent as something else is refused with the
deserializer's SerializationException, and EnableTagEnrichment sent as a
string is read as the boolean it names or refused, so a malformed update
changes nothing.
Over Query, a filter name XML cannot carry is written as U+FFFD, for
metric streams too.

Part of #7030.
2026-12-03 22:58:23 -04:00
Hector Ventura 570c8357a2 refactor(lifecycle): let services contribute their /_floci/info fields (#10126) 2026-12-03 22:32:39 -04:00
Jackson PriceandAndre Kurait 29dcba08c2 test(redshift): distinguish port conflicts from other socket errors (#10122)
Keep each test socket open only for its bind probe and retry only bind conflicts while waiting for release.
Share the listener port checks between the Redshift and RDS proxy tests through FreePorts.

Co-authored-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-12-03 22:06:58 -04:00
Jackson PriceandAndre Kurait 77f22686c4 test(ssm): verify contention on the command during status updates (#10121)
Observe the command monitor before releasing the status writer. Release the writer and join each worker even when an assertion fails.
Share the wait for a worker blocked in a method through ThreadStates.awaitBlockedIn.

Co-authored-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-12-03 22:00:05 -04:00
Hector Ventura b83b9346ab refactor(core): give ContainerLogStreamer a log sink instead of CloudWatch Logs (#10123) 2026-12-03 21:56:39 -04:00
Daniël van Ziel 9d93fee08d fix(appsync): return the raw SDL from GetIntrospectionSchema (#10124) 2026-12-03 21:48:05 -04:00
Priamo Germosen ae99b5a874 feat(observabilityadmin): serve resource tags for telemetry with its Resource Explorer managed view (#10075)
CloudWatch's OTel enrichment reads resource tags through ObservabilityAdmin's
resource tags for telemetry feature, which has to be running before
StartOTelEnrichment enables tag enrichment. Add the ObservabilityAdmin service
with StartTelemetryEnrichment, StopTelemetryEnrichment and
GetTelemetryEnrichmentStatus, one feature per account and Region.

Starting the feature has Resource Explorer create a LOCAL index when the
Region has none and a managed view that includes tags, as the CloudWatch user
guide describes. GetManagedView and ListManagedViews now answer the views
Floci's services create. A status read before the first start is the modeled
ResourceNotFoundException, and a stop of a stopped or never-started feature
changes nothing.

The passed-roles table now reads ObservabilityAdmin. A vendored source,
written from the CloudWatch user guide and the Observability Admin API
reference, gives a dataset integration's role to CloudWatch Logs, whose trust
policy it names, and gives where a telemetry pipeline's YAML configuration
names its roles: its source's and its Secrets Manager extension's, each going
to the service its source type's role trusts, and to CloudWatch Logs as well
with a lookup processor or a conditional route.

Part of #7030.
2026-12-03 21:35:28 -04:00
Stefan Dobrovolny 5576c5080b fix(dynamodb): compare an export ClientToken retry as the first call resolved it (#10120) 2026-12-03 20:53:44 -04:00
Lucien 803c814468 feat(iot): add the software package catalog (#10028) 2026-12-03 20:47:25 -04:00
Jackson PriceandAndre Kurait ef42ed081c test(dynamodb): require exports to complete before checking results (#10119)
Check the terminal status in the shared export test helper.
Fail at the wait when an export fails or stays in progress.

Co-authored-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-12-03 20:21:19 -04:00
Jackson PriceandAndre Kurait a3542e47f4 test(glue): verify delete waits for the job run write (#10118)
The Glue race test now waits for the delete worker to identify itself and
then for that thread to block on the service monitor before releasing the
paused job-run write. Both waits fail on timeout, so a slow-to-start delete
worker can no longer miss the overlap and still pass.

Co-authored-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-12-03 20:06:20 -04:00
Priamo Germosen ed36acd1d9 chore(deps): bump botocore to 1.44.17 (#10117)
Bumps botocore from 1.44.14 to 1.44.17 with its regenerated data. 1.44.18 waits: it adds RDS data groups, and the
Service Reference lists two tagging actions for CreateDataGroup, rds:AddTagsToDataGroup and rds:AddTagsToResource,
while no AWS page says which one the tags a create carries need, so the tag-on-create generator stops on it.

botocore 1.44.17 moves Athena to REST-JSON ("The AWS SDKs for Athena now use the REST-JSON format"), and Floci serves
Athena as JSON 1.1 under the AmazonAthena target prefix. regen_rpcv2_cbor_shapes reads Athena's model under that prefix
as a JSON facade, as it reads API Gateway V2's, so Athena's shapes there are unchanged but for GetQueryResultStream.
The request-resources table now locates Athena's members in its REST paths (WorkGroup in /workgroups/{WorkGroup}),
and a member is read from a request's path only when the request came over REST: a JSON, CBOR or Query request carries
every member in its body or form, so RequestResources locates none for it. Without that, a JSON 1.1 Athena request lost
the WorkGroup its body names and was checked on the primary workgroup. RequestResourceMembersTest sends a request whose
members its path carries as REST, and RequestResourcesTest sends Athena's StartSession as JSON 1.1.

The other changes follow the models and the Service Reference: IAM's workload identity operations are read now that
botocore has them, its five new paged lists join regen_iam_shapes' operations so their requests are held to the model as
every paged list's is (Floci does not serve them, so IamListPaginationIntegrationTest pages the lists it serves, those
that do not answer UnsupportedOperation), and its condition keys carry their tagging actions (twenty now, with the
workload identity providers and templates); SageMaker, Redshift Serverless, EKS, Bedrock and ECR rows, the service
namespaces and the DynamoDB and S3 Control condition keys follow theirs, and fetch_dms_arn_formats refreshes its
botocore examples at the new pin.
2026-12-03 20:00:26 -04:00
Ridwan 8655fcf3cd chore(storage): add scanInAccount and remove duplicate account helpers (#10116) 2026-12-03 19:25:47 -04:00