Commit Graph
6196 Commits
Author SHA1 Message Date
Hector Ventura a84ec2bb2b test: drop duplicate and debug test classes (#9406)
Removes six test classes whose checks are covered elsewhere, moving across the
few checks only they made: S3DumpTest and UriBuilderTest asserted nothing,
FilterTest repeated S3VirtualHostTest, ApiGatewayGetTagsIntegrationTest and
LambdaCodeSigningConfigIntegrationTest repeated stronger siblings,
ApiGatewayUntagResourceIntegrationTest's encoded-ARN UntagResource check moves
into testTagResource, and Ec2Phase2IntegrationTest folds into
Ec2IntegrationTest with its launch-option checks and cleanup.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-24 20:29:52 -04:00
Hector Ventura 06046bf707 docs: point Slack links at floci.io/slack (#9402)
The previous Slack invite expired. Link to floci.io/slack, which redirects to the current invite, so future rotations need no change here.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-24 18:20:42 -06:00
Neil du Toit af0c646abb fix(cognito): pass ClientMetadata to the pre token trigger on GetTokensFromRefreshToken (#9381)
GetTokensFromRefreshToken dropped the request's ClientMetadata, so the PreTokenGeneration trigger (TokenGeneration_RefreshTokens) always received an empty clientMetadata. The request's map now reaches the trigger, as the API reference documents for the action's ClientMetadata. The OAuth token endpoint's refresh_token grant still passes none, since it has no ClientMetadata.

Closes #9278
2026-11-24 20:00:58 -04:00
Jackson PriceandAndre Kurait 615444a2aa test(apigatewayv2): await WebSocket close callbacks (#9391)
Replace seven fixed close sleeps with the existing listener close future, bounded completion and final socket abort. Preserve all integration cases and payload assertions.

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-11-24 19:55:58 -04:00
Priamo Germosen 3442fe0fef chore(iam): refresh Redshift's rows from the Service Reference (#9394)
AWS's Service Reference now gives Redshift's CreateTags, DeleteTags and
DescribeTags the qev2idcapplication and redshiftidcapplication resource
types too, with their tag keys, so the online drift check reported the
vendored Redshift claims that no longer hold. Regenerate
iam-request-resources.json from the live reference: those three operations
and Redshift's resource tag keys change, and nothing else.
2026-11-24 19:24:47 -04:00
Jimmy Liu Jia a8d1208bc8 fix(stepfunctions): decode escaped double-quoted literals (#9397)
The intrinsic argument splitter keeps an escaped double quote inside a double-quoted argument, but resolving the argument returned the backslash with it, so States.Array("a\"b,c", 'x') gave a first element of a\"b,c. A double-quoted argument now decodes \" and \\, and leaves any other backslash sequence as written, as a single-quoted one does with AWS's reserved escapes.
2026-11-24 19:06:33 -04:00
mrfelek deb3865f32 docs(eks): say what Floci does with the EKS Auto Mode configuration and which entries take policies (#9389)
The EKS Auto Mode configuration section said Floci only records the configuration. It now lists what each capability does: the node role's EC2 access entry, provisioning for ebs.csi.eks.amazonaws.com claims and Network Load Balancers for Services, and says the built-in node pools launch no nodes. The access-entry passage now names EC2 with STANDARD and EC2_LINUX, and the access-policy passage says STANDARD and EC2 entries take policies.

Part of #8914
2026-11-24 19:03:22 -04:00
Priamo Germosen 8dd85097f0 feat(emr): run Trino on a docker cluster whose Applications name it (#9382)
A cluster whose Applications named Trino ran none, as no AWS image
carries it. With floci.services.emr.trino.enabled on, off by default, a
docker cluster that installs Trino now runs its coordinator, and its
steps run EMR's trino-cli against it.

- The coordinator, which runs the queries too, runs on the cluster's
  primary node, in a container of its own that shares the node's
  network: from the Trino project's image of the version the release's
  page in the Release Guide gives (trino.image, trinodb/trino:%s, 446
  for emr-7.5.0), with trino.memory-mb of memory (2048), on port 8889,
  EMR's.
- EMR installs hive-client and hcatalog-server with Trino, so the
  cluster's image has Hive and its primary node runs Hive's metastore
  service. Trino's hive catalog is that metastore, or Floci's Glue Data
  Catalog when trino-connector-hive sets hive.metastore to glue, the
  classification's other properties after Floci's. Trino reaches S3 and
  Glue with a session for the cluster's instance profile's role, as the
  metastore does.
- The cluster's image gets Trino's CLI from Trino's image, and a
  trino-cli that runs it on the image's Java 17 against the coordinator,
  whose address the steps get, unless a step names a server of its own.
- The cluster's first step starts Trino with the HDFS and waits for it.
  It goes before the primary node when the cluster ends, on a reset and
  on a shutdown, and one an earlier Floci left goes when the service
  starts.
- A nightly check runs trino-cli steps on a cluster with the metastore
  and on one with Glue. It joins the docker-runner group, whose budget
  grows by its 24 minutes, and the prefetch pulls its Trino image.
2026-11-24 17:17:07 -04:00
Jackson PriceandAndre Kurait 33d873b705 feat(apigateway): generate REST and WebSocket model templates (#9089)
GetModelTemplate now answers for REST and WebSocket models with sample VTL:
the $inputRoot line, two-space indented typed placeholders ("foo", 3.1415),
and an editable ##TODO / #foreach skeleton for arrays, generated from the
latest stored schema. A top-level scalar model is refused with 400
"Unsupported data type for mapping template", a missing WebSocket model with
404 "Invalid model identifier specified: <id>", and HTTP APIs refuse models
at CreateModel.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-24 16:42:19 -04:00
Niels Kootstra bc6a2279d4 fix(cloudformation): apply SSESpecification to a DynamoDB table on create (#9379) 2026-11-24 16:41:13 -04:00
Priamo Germosen 4a9ae4a569 fix(amazonmq): start broker containers again when Floci restarts (#9377)
Floci's shutdown removes every broker container, and nothing started
them again, so after a restart with persistent storage a broker still
reported RUNNING while nothing answered on its endpoints. A new
container would not have helped either: RabbitMQ keeps its data under
the node name, which defaults to the hostname Docker sets to the
container id, so a new container on the same volume started an empty
node without the broker's users.

Broker containers now run as the fixed node name rabbit@localhost. At
startup, each broker that was RUNNING or still starting goes back to
CREATION_IN_PROGRESS, and its container starts in the background. A
container that outlived Floci is kept when it still answers. Otherwise
the broker gets a new container on its volume, without seeding the
admin user, whose password is never stored, and on the host ports it
had when they are free. The readiness poller reports it RUNNING once
the console it probed answers.

A broker from before fixed node names with no surviving container is
reported CREATION_FAILED. One whose restore fails is reported
CREATION_FAILED and tried again at the next start, one CreateBroker
failed for is left as it is, and one a crash left DELETION_IN_PROGRESS
is deleted.

Part of #5664.
2026-11-24 16:17:21 -04:00
Priamo Germosen 08b6339a6a feat(iam): read SageMaker from the generated tables (#9373)
Move `sagemaker` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so SageMaker requests are checked on the
resources they name instead of `*`: a model, an endpoint configuration, an
endpoint, a training job or any other resource by its name, as
<type>/<name>, the ARN Floci mints, and a tag call on its ResourceArn.
CreateEndpoint and UpdateEndpoint are checked on the endpoint and the
endpoint configuration they name. No other namespace's rows change.

The reading of a member that names a type's variable gains its mirror: for
the type an operation is about, a name or id with a word of its own that the
variable's name ends in names it, also where a create leaves its id open, so
SageMaker's JobName names the inference recommendations job
(${InferenceRecommendationsJobName}) of CreateInferenceRecommendationsJob,
DescribeInferenceRecommendationsJob and StopInferenceRecommendationsJob.
Over the whole table it changes these three operations.

CreateEndpoint marked neither of its rows as what it makes, as the stem of
`endpoint-config` is `endpoint` too, so a tagged create needed
sagemaker:AddTags on the configuration it runs as well as on the endpoint.
A create's type is now matched by its whole name before its stem, so the
endpoint alone is made; over the whole table this changes CreateEndpoint.
2026-11-24 16:16:17 -04:00
David 6018a41837 fix(docker): stop closing a Docker stream from reading the rest of its body (#9339)
Closing a stream from a Docker GET read the rest of its body, since httpclient5 drains a response on close to keep its connection, so a caller that stopped after the first bytes of a large body still waited for all of it.

On close the stream now reads at most 64 KiB of what is left: a body that ends there keeps its pooled connection, and a longer one is aborted. Closing it twice does nothing more.

Refs #9244
2026-11-24 16:15:00 -04:00
Jackson PriceandAndre Kurait f5849990e4 fix(cfn): show changed rows when schema verification fails (#9380)
Print a unified diff of the committed schema surface and the document
already used for verification. Keep verification read-only and retain its
nonzero result for changed or missing inventory files. Line endings are
kept in the diff and a missing final newline is marked explicitly.

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-11-24 16:12:40 -04:00
Jimmy Liu Jia 7af9847813 fix(stepfunctions): decode intrinsic literal escapes (#9378) 2026-11-24 16:10:23 -04:00
mrfelek 941a700f60 feat(eks): give an EKS Auto Mode cluster's node role its EC2 access entry (#9371)
CreateAccessEntry accepts the EC2 type (roles only, system:node:{{SessionName}} in system:nodes, AWS's refusals for groups, a username and an IAM user, access policies allowed), and turning Auto Mode compute on makes the node role's EC2 entry with AmazonEKSAutoNodePolicy, as measured on AWS.
2026-11-24 15:49:22 -04:00
Jimmy Liu Jia 54961f0519 fix(eventbridge): match exists only on leaf values (#9372) 2026-11-24 15:06:11 -04:00
Vũ Thế Huy a3a6cef531 feat(redshift): evaluate scalar Lambda UDFs over PostgreSQL wire and Data API (#9336)
Scalar Lambda UDFs created with CREATE EXTERNAL FUNCTION now evaluate in SQL over the PostgreSQL wire protocol, Simple and Extended Query, and through the Data API. LambdaUdfEvaluator collects each statement's calls in rolled-back passes through generated stubs, invokes the functions in batches through LambdaUdfInvoker, and serves the results from a per-statement cache. In autocommit the collect passes and the statement share one transaction, so now() and the other transaction-time arguments stay the same, and volatile arguments such as random() or statement_timestamp() are refused.

PostgresWire.dataRowValues is now the one DataRow decoder for the Spectrum backend session and the S3 COPY simulator.

Closes #7815
2026-11-24 14:59:14 -04:00
Matheus Oliveira d42f29579c perf(lambda): read the working directory's mode without streaming the archive (#9361)
The image function working directory check now reads each parent's mode and symlink target from HEAD /containers/{id}/archive, whose X-Docker-Container-Path-Stat header answers in a few bytes, instead of reading the first tar entry of a GET archive that Docker compressed and streamed in full when it was closed. An image function's first invoke no longer scans all of /var. The probe runs on a small control-plane transport pool of its own, behind the Docker circuit breaker.

Closes #9244
2026-11-24 14:48:02 -04:00
Jackson Price a99d83dcd9 docs(config): link listener parity to the container healthcheck (#9376)
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-24 14:44:43 -04:00
Mario Toffia 398d34239e fix(dns): answer an own-suffix name with the emulator's address when its stored record has no resolvable target (#9360)
Since #8926 a stored public zone under an emulator suffix answers A and AAAA,
and a public alias to a target Floci does not serve, such as a Cognito custom
domain aliased to CloudFront, got REFUSED, so a container asked public DNS and
got its own loopback address. An A or AAAA standard query for a name under an
emulator suffix that the stored zone refuses is now answered as the emulator's
own name, after the VPC forwarding-rule check. A query with more than one
question, a class other than IN, or a non-standard opcode or flag stays
REFUSED. Closes #9359.
2026-11-24 14:42:38 -04:00
mrfelek 5b2fa9a30d feat(eks): give EKS Auto Mode LoadBalancer Services of no class a Network Load Balancer (#9357) 2026-11-24 14:42:08 -04:00
Jimmy Liu Jia 0b12f31467 fix(ecs): preserve omitted deployment settings on update (#9369) 2026-11-24 14:28:32 -04:00
Priamo Germosen 2bcde72f1e fix(sagemaker): start endpoint containers again when Floci restarts (#9367)
Floci's shutdown stops every endpoint container, and nothing started
them again, so after a restart with persistent storage an endpoint
still reported InService while InvokeEndpoint failed with ModelError.

At startup, each endpoint that was InService or still Creating goes back
to Creating and is started again from its endpoint config and model, as
CreateEndpoint starts one, in the account it is stored under. It reports
InService once its container answers /ping, or Failed with the reason.
A Failed endpoint is left as it is, and one a crash left Deleting is
deleted.

Part of #5664.
2026-11-24 13:37:02 -04:00
Priamo Germosen 464aaaf734 feat(iam): read Route 53 Resolver from the generated tables (#9368)
Move `route53resolver` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so Route 53 Resolver requests are checked on
the resources they name instead of `*`: a resolver rule, an endpoint or a
firewall domain list by its id, as <type>/<id>, the ARN the service mints,
and a tag call on its ResourceArn. The reference's DNSSEC configuration
format takes a ResourceId, which the request gives as the VPC's id, so the
DNSSEC calls are checked under the VPC's id.

A member whose botocore pattern is another service's ARN now holds nothing
of the namespace, read where every rule first reads the request's members:
CreateOutpostResolver's OutpostArn, an outposts ARN whose name begins the
outpost resolver's, had taken the place of the resolver it makes, which is
now checked as outpost-resolver/*. Over the whole table that rule changes
this one operation. No other namespace's rows change.

A managed firewall domain list, which AWS owns, was checked under the
caller's account, though the service gives it an ARN of its own, so a grant
on the ARN ListFirewallDomainLists returns was refused. Route 53 Resolver's
request-resource lookup now answers a managed list's ARN for its id, which
the reader already asks a service for for a resource filled from one
member; a custom list stays in the caller's account.
2026-11-24 12:36:27 -04:00
Priamo Germosen e15b64d07b refactor(core): gzip in-memory content through one Gzip.compress helper (#9364)
Four services gzipped a byte array held in memory with their own copy of the same lines: CloudTrail's
log file, a CloudWatch Logs subscription payload, a VPC flow log file and each line of a Redshift
audit log. core.common.Gzip.compress now does it once, and the four call it.

Writing to memory cannot fail, so the helper rethrows the compressor's IOException unchecked rather
than handing it to every caller; each caller already caught it as a runtime failure or had no way to
reach it. Its buffer starts small and grows with the compressed output, as the flow log
and Redshift writers' did, rather than being sized from the input. Writers that compress as they go, into a file or a stream they hand on (DynamoDB's export,
Firehose's per-format encoder, the EMR and Redshift UNLOAD writers), keep their own GZIPOutputStream.
2026-11-24 12:07:41 -04:00
Priamo Germosen bb579d5fe4 fix(identitystore): check an identity store in the account that holds it (#9363)
Under IAM enforcement an Identity Store request was checked on
arn:aws:identitystore::<caller>:identitystore/<id>, whatever account's IAM
Identity Center instance holds the store, so another account of its
organization reading it was checked on a store of its own account, and a
grant there reached it.

Every ARN names the account owning its resource. Identity Store's lookup
now answers the store's ARN in the account whose instance holds it
(SsoAdminService.identityStoreOwner), which the reader already asks a
service for for a resource filled from one member, so the request is checked
on the store where it is. A store no instance holds keeps the caller's
account, as before. No generator or table change.

The lookup a store's owner takes remembers a store no instance holds, so
a request naming one again does not look through every account's
instances again; the record empties whenever an instance is written and on
reset, as only those make a store held that was not, and starts over past
10,000 stores.
2026-11-24 11:58:15 -04:00
Jimmy Liu Jia 93460ae2d9 fix(eks): honor CreateCluster client request tokens (#9111) 2026-11-24 11:46:42 -04:00
James McMahon 65dbaac26a fix: protect host consoles from systemd EC2 guests (#9355)
A privileged systemd EC2 guest could hang up the Docker host's virtual-console sessions. Systemd guests now start /sbin/init with systemd.mask= arguments for the getty units, which systemd reads from PID 1's command line once container=docker marks the guest as a container, and get /dev/null mounted read-only over /dev/console and /dev/tty0 through /dev/tty63. Pseudo-terminals stay available for SSH. Docker applies the mounts when it creates the container, so existing systemd instances need recreating.

Closes #9342
2026-11-24 11:40:25 -04:00
Matheus Oliveira 19d0955c7c feat(lambda): give Unschedulable pods a kubernetes grace period (#9109)
With floci.services.lambda.kubernetes.unschedulable-grace-seconds (FLOCI_SERVICES_LAMBDA_KUBERNETES_UNSCHEDULABLE_GRACE_SECONDS, default 0), a Lambda pod the Kubernetes scheduler reports Unschedulable gets that long before its cold start fails, so a node autoscaler such as Karpenter can add a node. The grace is measured from when Floci first observes the reason, since the PodScheduled condition's lastTransitionTime keeps an older timestamp across a SchedulingGated to Unschedulable flip, and the pod startup timeout still bounds the wait. The default keeps the immediate failure.

Closes #8995
2026-11-24 11:36:23 -04:00
Vũ Thế Huy 6c451bbcc5 refactor(stepfunctions): inject RoleResourceAccessAuthorizer bean into LambdaTaskAuthorizer (#9334) 2026-11-24 11:30:28 -04:00
mrfelek 1adee379fb refactor(eks): take the Auto Mode load balancers as a constructor argument (#9352)
EksService took EksAutoModeLoadBalancers as an injected field. It is now an
Instance<EksAutoModeLoadBalancers> constructor argument, looked up only when a
cluster is deleted; the previous constructor keeps its callers. No behaviour changes.
2026-11-24 11:25:24 -04:00
Tal Efraim c40b11fe9a fix(cloudwatch): bound the datapoints Floci publishes itself (#9348)
The CloudWatch metric store has no size bound, and since SQS publishes AWS/SQS
metrics for every active queue each minute it grows with no PutMetricData call,
until a persisted cwmetrics.json no longer fits the heap on load.

floci.services.cloudwatchmetrics.max-stored-datapoints (default 100000) now caps
the datapoints kept per account in each namespace a MinuteMetricsPublisher
writes (AWS/SQS, AWS/Redshift). After each tick the publisher drops the oldest
over the ceiling, down to nine tenths of it, through the metric key index;
other namespaces are never cut, and 0 or less turns the ceiling off.
2026-11-24 11:20:34 -04:00
Matheus Oliveira cb573492ca fix(s3): refuse a KMS key id without x-amz-server-side-encryption: aws:kms (#9269) 2026-11-24 11:18:52 -04:00
Jimmy Liu Jia 97acf496d9 fix(apigatewayv2): retain integration TLS config (#9354)
API Gateway V2 integrations now store TlsConfig and return it from create,
update, get and list over the REST and JSON paths. An update that omits it
keeps it, and a malformed value is refused before the integration changes.
Closes #9337.
2026-11-24 11:14:13 -04:00
TATSUNO “Taz” Yasuhiro 2f4b2c492a fix(dynamodb): refuse BETWEEN bounds of different types (#9351)
A BETWEEN whose bounds have different types is now refused with DynamoDB's ValidationException in a FilterExpression, KeyConditionExpression, ConditionExpression and PartiQL statement, and PartiQL also refuses reversed bounds. Each check runs with the operand type checks, so the first failing condition in written order wins.

The one-violation envelope moves to SmithyValidationErrors.inEnvelope. PutItem, UpdateItem and DeleteItem condition errors carry it, through the Step Functions tasks too, and TransactWriteItems ones no longer do, as on DynamoDB.
2026-11-24 11:09:30 -04:00
Priamo Germosen 67a619d58e test: build the EmulatorConfig mapping in one plain test class at a time (#9358)
Now that the plain test classes run four at a time, two classes that build
the EmulatorConfig mapping with a SmallRyeConfigBuilder at once fail with
NoClassDefFoundError for a nested group's generated class
(EmulatorConfig$AmazonMqServiceConfig$$CMImpl). ImageResolverEnvConfigTest
and WorkingDirectoryAccessDockerIntegrationTest fail that way whenever a
shard holds both.

The eight plain classes that build it take a new ParallelLocks.CONFIG_MAPPING
lock, and ParallelLocksInventoryTest fails a plain class that builds it
without the lock.
2026-11-24 11:02:42 -04:00
Priamo Germosen c24686a17d feat(iam): read MemoryDB from the generated tables (#9362)
Move `memorydb` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so MemoryDB requests are checked on the
resources they name instead of `*`: a cluster, an ACL or a user by its name,
as <type>/<name>, the ARN MemoryDB mints, and a tag call on its ResourceArn.

A cluster and a multi-Region cluster both call their format's variable
${ClusterName}, so the generator could not tell DeleteCluster's ClusterName
from its MultiRegionClusterName and read no cluster, and filled
CreateCluster's multi-Region cluster from the new cluster's ClusterName. One
generic reading fixes both: a type of one variable is read from the one
top-level member named after the type and ending in the variable's name,
where nothing reads it yet or instead of a member named after something
else, and only when no other type the action acts on could take that member
alone. Over the whole table it changes these two MemoryDB operations and no
other.

CreateCluster marked the multi-Region cluster it may join as what it makes,
so its tags were checked on that, or on its ACL when it names none, not on
the new cluster. Where the namespace has a type named as a create is, that
type, and one whose format's leading word is that name, is what it makes; a
type whose name merely ends in the same word is not, and a related type the
request names by a member of its own is one it joins, so the cluster it
makes is recorded for its tags. Over the whole table this also stops
ElastiCache's CreateReplicationGroup from marking the global replication
group it may join as made, and marks the global replication group
CreateGlobalReplicationGroup makes.
2026-11-24 10:56:22 -04:00
Priamo Germosen 49a59da5e6 fix(identitystore): refuse an identity store to accounts outside its organization (#9346)
Identity Store checked only that an IdentityStoreId was well formed, so any
account could read and change the users, groups and memberships of any
store, the default account's IAM Identity Center store among them.

The IAM Identity Center User Guide says who may use an organization
instance's store: "Member accounts have access to Read actions on both the
sso-directory and identitystore namespaces", while adding, editing or
deleting users or groups is the management account's and a delegated
administrator's. SsoAdminService now answers how an account may use a store
from the instance that holds it: its own account, and a delegated
administrator for IAM Identity Center in an organization instance's
organization, in full; another account of that organization to read; any
other account not at all. Identity Store's handler refuses a store an
account cannot see as ResourceNotFoundException (ResourceType
IDENTITY_STORE) and a change from an account that may only read as
AccessDeniedException. A store no instance holds is used as before.
2026-11-24 10:40:42 -04:00
Priamo Germosen 0c4fa969e3 refactor(tools): run the ECR, Resource Groups and Logs delivery generators through request_shapes.main (#9356)
Three constraint generators still repeated the driver request_shapes.main provides: their own
argparse block, the strip_source comparison for --check and the write. They now hand it their
model, output and operations, the two-line delegation regen_sts_shapes.py and the other
constraint generators use.

The vendored files regenerate byte for byte, _source included. Resource Groups and Logs delivery
gain what the driver gives the rest: main() takes argv, so a test can drive it, --check names the
stale file instead of exiting 1 silently, and a write says where it wrote. The three join the test
that pins each constraint generator's call to the driver.

The driver's module docstring no longer says the three call build_constraints() themselves, and says
which generators take that path through main() rather than naming IAM and STS alone.
2026-11-24 09:42:55 -04:00
Priamo Germosen df8ccd0c52 fix(elbv2): default health checks by target group protocol (#9347)
CreateTargetGroup gave every target group an HTTP health check, so a
Network or Gateway Load Balancer target that does not answer HTTP with
the matcher's code stayed unhealthy. HealthCheckProtocol now defaults
to TCP, except for HTTP and HTTPS target groups and target type alb,
which keep HTTP, as the API reference states.

A health check uses HTTP, HTTPS or TCP. CreateTargetGroup and
ModifyTargetGroup refuse GENEVE, TLS, UDP, TCP_UDP, QUIC and TCP_QUIC,
and TCP for HTTP and HTTPS target groups and alb targets, naming the
protocols the target group takes as AWS does. A TCP check carries no
path or matcher, and moving one to HTTP or HTTPS takes both. A
CloudFormation rollback no longer sends a TCP check's stale path and
matcher back.

Closes #5824.
2026-11-24 08:40:07 -04:00
Priamo Germosen 3fbb0ced10 feat(iam): read Identity Store from the generated tables (#9315)
Move `identitystore` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so Identity Store requests are checked on
the resources they name instead of `*`: the identity store its
IdentityStoreId names, and the group, user or membership its id names, whose
ARNs have no Region and no account; the list calls also on every group,
user or membership, as the Service Reference gives them.

A type an action requires that its request does not name is now read too.
Which types an action requires is what the Service Authorization Reference
marks with an asterisk, which neither botocore nor the Service Reference
says, so fetch_required_resource_types.py vendors that page's actions table
as it stands into tools/aws/sources/required-resource-types.json, granted
for Identity Store alone. Two generic readings use it: a required type the
record of the resource the request names holds is read through that
resource's id (DescribeGroupMembership and DeleteGroupMembership, the
membership's group and user), and a required type whose id a lookup returns
is found by the members its request gives, each way it may give them apart
(GetGroupMembershipId, GetGroupId, GetUserId). The reader lets a find name a
field of a structure at any depth and gives the service the members' paths
with their values, and Identity Store answers both as its handlers find
them. No other namespace's rows change.
2026-11-24 08:25:52 -04:00
Priamo Germosen 8758208313 refactor(core): word a string against its vendored shape once for both constraint checks (#9350)
QueryConstraintCheck and RequestConstraintCheck each held their own copy of how a string breaks its
vendored shape: the length, pattern and enum violations in that order, the values an enum admits,
the member name with its first letter lowered, and the loop compiling every shape's pattern. They
now share VendoredShapes, a package-private helper in core.common, so the Query and JSON protocols
cannot drift apart on how a string is worded.

RequestConstraintCheck's boolean reading of a list element or map side (scalarBroken) goes through
the same helper rather than a third copy of the three checks. The one reading that differed was a
shape declaring an empty enum, which the Query check passed and the JSON check refused; no vendored
file declares one, and both now pass it.
2026-11-24 08:20:50 -04:00
Ignas 75f94407d4 fix(cloudwatch): read one metric's datapoints through a sorted key index instead of scanning the store (#9345) 2026-11-24 07:41:06 -04:00
mrfelek de6aaa4e0a feat(eks): give Services of the EKS Auto Mode NLB class a Network Load Balancer (#9316)
While a cluster has Auto Mode's load balancing capability on, a LoadBalancer
Service whose loadBalancerClass is eks.amazonaws.com/nlb gets a Network Load
Balancer in the cluster's subnets: a TCP target group per TCP port on its
NodePort, with a TCP health check and the cluster's node registered by
instance ID, and a listener on the Service port. Once the node is registered,
the DNS name is written to the Service's status, in a patch that names its UID.

A reconciler reads the Services with kubectl every 10 seconds; each pass makes
whatever a Service's ports lack and removes what dropped ports had. The load
balancers carry eks:eks-cluster-name and service.eks.amazonaws.com/stack, the
only keys AmazonEKSLoadBalancingPolicy lets Auto Mode set, and go with the
Service, with the cluster and when its load balancing is turned off.
ElasticLoadBalancing.loadBalancingOn replaces two copies of the on check.
Part of #8914.
2026-11-24 07:34:34 -04:00
Priamo Germosen fed52ed57a chore(iam): refresh Bedrock's rows from the Service Reference (#9343)
AWS's Service Reference now gives Bedrock a `project` and a
`trusted-access-program` resource type, adds `project` to
InvokeModelWithResponseStream and the tagging calls, gives
ListInferenceProfiles its two inference profile types, and checks
ListTrustedAccessPrograms as its own action, so the online drift check
reported 24 vendored Bedrock claims that no longer hold. Regenerate
iam-request-resources.json from the live reference: those 24 operations
change and no other.
2026-11-24 07:29:53 -04:00
Vũ Thế Huy 660ad99997 feat(rds): add zero-ETL integration control plane (#9335)
RDS now answers CreateIntegration, DescribeIntegrations, ModifyIntegration and DeleteIntegration for zero-ETL integrations from an aurora-postgresql DB cluster or a standalone postgres DB instance into a Redshift Serverless namespace or a provisioned Redshift cluster. It refuses a source or target that does not exist or is of another kind, a duplicate name or source and target pair, an AdditionalEncryptionContext without a KMSKeyId, and a PostgreSQL DataFilter that breaks AWS's rules. DescribeIntegrations takes an ARN, id or name, its filters, MaxRecords and Marker.

No data is copied yet: an integration reports creating, then active. The initial load follows under #7984.
2026-11-24 07:24:26 -04:00
Vũ Thế Huy ab46b4b169 refactor(redshift): build the in-memory streaming views in their own classes (#9327)
SpectrumQueryPreparation's test constructors filled the Kinesis and MSK
streaming views with nulls inline. Each views class now owns an inMemory()
factory, so the null collaborators sit in one documented place.
2026-11-24 07:20:55 -04:00
noy-solvin 7d317fbfa6 fix(ec2): ensure default VPC network resource IDs are unique per account in same region (#9055) 2026-11-24 07:03:14 -04:00
TATSUNO “Taz” Yasuhiro 924040aaa1 chore(eventbridgev2): vendor event source request constraints (#9333) 2026-11-24 06:52:30 -04:00