Four members EMR accepted and ignored now act as AWS documents them.
ModifyInstanceGroups' ReconfigurationType MERGE merges the group's new
Configurations into its own, as the Release Guide's "Reconfigure an
instance group in a running cluster" has it: "This option only adds or
modifies the new configurations that you submit. It preserves existing
configurations." A classification it names takes its properties over
the group's, nested configurations merged the same way, and the others
stay; OVERWRITE, the default, still replaces them. MERGE is "supported
for Amazon EMR releases 5.35.0 and 6.6.0 and later", so an earlier
release refuses it with ValidationException, in Floci's wording, and a
type that is neither gets the framework's enum message.
A step's StepMonitoringConfiguration sends its logs, and its
applications' container logs, to its own LogUri from release 7.11, as
its options "take precedence over any cluster-wide logging settings",
still only on a cluster with a LogUri. The guide gives no layout under
the step's destination, so it is the cluster's. A node removed while
such steps run puts its containers' logs there when they share one.
DescribeStep and ListSteps give the step's LogUri and EncryptionKeyArn
back.
A managed scaling policy's UtilizationPerformanceIndex is one of 1, 25,
50, 75 and 100: "If you set the index to values other than these, it
results in a validation error." One outside the model's 1 to 100 gets
the framework's ValidationException, another Floci's wording.
A session whose Spark Connect server answers reports ServerUrl, Floci's
own address in Spark Connect's sc:// form, where a call still needs
GetSessionEndpoint's token to reach the server; an ended session has
none.
An application's schedulerConfiguration was stored and echoed, and no
run was ever QUEUED: every run started at once. The user guide's "Job
concurrency and queuing for an EMR Serverless application" has only
maxConcurrentRuns runs going at a time, "Remaining jobs are queued
until one of the running jobs terminates. If queue timeout is reached
earlier, your job times out."
A run beyond the limit is now QUEUED, in either runner mode, and the
first queued run starts the moment a running one ends or is cancelled.
A run still queued after queueTimeoutMinutes is CANCELLED, as the job
run states give a run that "has timed out" as a reason to be cancelled;
its stateDetails is Floci's wording. A run that leaves the queue
reports queuedDurationMilliseconds. A queued run is cancelled at once,
and keeps StopApplication from stopping the application. In the docker
runner mode a queued run's container starts only once it leaves the
queue.
Queuing is "supported on Amazon EMR release 7.0.0 and higher" and
"enabled by default on Amazon EMR release 7.3.0 and higher", the AWS
runtime for Apache Spark's releases included; an application on 7.3.0
or later that sets no limits runs with the defaults, 15 runs and 360
minutes. Terraform's acceptance tests, run against AWS, recorded how
the configuration is kept: a member a request leaves out takes its
default, and here keeps the value already set where there is one; an
empty one turns queuing off, and the application then has none.
maxConcurrentRuns outside 1 to 1000 and queueTimeoutMinutes outside 15
to 720 are refused with ValidationException. A STARTED application
takes a new maxConcurrentRuns, as "You can update maxConcurrentRuns for
an application in the STARTED state", and a higher one starts queued
runs at once; any other scheduler change still needs it stopped.
A virtual cluster's schedulerConfiguration was stored and its
schedulerStatus reported, but StartJobRun ignored the limits: every run
started at once and no submission was refused. The development guide's
"Concurrent job limits for virtual clusters" has them "enforced at
StartJobRun, before any pods are created".
At most maxConcurrentJobRuns runs are RUNNING at once, 1000 when it is
not set, the guide's default. A run beyond that waits PENDING in the
queue, and when a running slot frees up, the run first in the queue
starts: "As running slots free up, queued job runs start
automatically." Once maxInQueueJobRuns runs wait, StartJobRun refuses
another with ValidationException, as the guide and the model say;
neither gives its message, so the wording is Floci's. A run still
queued 30 minutes after it was submitted is FAILED, as "buffered jobs
fail after 30 minutes if no slot frees up".
A higher or cleared limit, or a cancelled run, starts queued runs at
once. The runs are replayed in the order things happened, so a run
leaving the queue starts the moment the slot it takes frees up, and
schedulerStatus counts the queued runs.
* fix(ssm): serve the EKS optimized AMI recommended release_version parameter
* fix(ssm): answer ParameterNotFound for a release_version of an unsupported Kubernetes version
ListReleaseLabels, DescribeReleaseLabel and ListSupportedInstanceTypes
knew five releases, the newest emr-7.5.0, so they refused emr-7.13.0
and the emr-spark-8.x releases Floci runs clusters on. The catalogue
now holds every emr-7.x release, emr-7.0.0 to emr-7.14.0, and the AWS
runtime for Apache Spark's emr-spark-8.0.0, 8.1.0 and 8.2.0, beside
emr-6.15.0, emr-6.14.0 and emr-5.36.2. Each release's applications,
versions and Amazon Linux releases come from its Release Guide page,
as before; the emr-7.14.0, emr-spark-8.1.0 and emr-spark-8.2.0 pages
list no Amazon Linux release, so those report none.
Application names are spelled as AWS answers them, Spark, HBase,
ZooKeeper and JupyterHub, where they were lowercased; each page lists
them that way too, with Trino for "Trino (PrestoSQL)". The Application
filter of ListReleaseLabels still matches without regard to case.
ListReleaseLabels lists the numbered releases newest first, and the
emr-spark ones after them oldest first, the order AWS answered for
that family. DescribeReleaseLabel without a label describes the first
release listed, now emr-7.14.0.
An unknown release label gets AWS's recorded answers, which differ by
operation: DescribeReleaseLabel "The release label isn't valid." with
ErrorCode InvalidInputParameter, and ListSupportedInstanceTypes "The
supplied release label is invalid: <label>." with ErrorCode
INVALID_RELEASE_LABEL, a missing label reading null. A blank label is
refused there too, and a blank default-release-label setting no
longer adds an empty release to the list.
The generated request resources give Pricing Calculator's workload
estimate type the aws:ResourceTag/ key, but no service answered the bcm-
pricing-calculator namespace's stored tags, so a condition on an
estimate's tags saw none. BcmPricingCalculatorService now answers it: a
workload estimate records no ARN, so storedTags takes the ARN only when
it is the one the estimate's account and id give in the request's
partition, which has no Region, then reads the estimate by its id, in
the request's account, in place. An estimate's tags are the ones it was
created with, which nothing changes. The package now builds that ARN to
compare, so partition/smoke-exemptions.tsv gets a row saying why it
needs no partition smoke case.
CloudWatch Logs was built by hand: ResourceArnBuilder built a group or
stream ARN for six operations and resolved the tag operations' ARN
itself, every other Logs operation was checked on *, and only the
vended-log delivery operations and PutDestination were read from the
request resources table, through READ_IN_HAND_BUILT. logs moves from
HAND_BUILT to NAMESPACES, so the table gives each of its 118
operations the log group, stream, destination or delivery resource its
request names, from botocore and the Service Reference: PutLogEvents,
FilterLogEvents, metric and subscription filters, StartQuery and the
other operations on a group or stream are checked on it, no longer on
*. READ_IN_HAND_BUILT, whose only entries were Logs', goes with its
checks and tests. ResourceArnBuilder's buildLogResources and the
filter's Logs case go; the tagged CreateLogGroup check reads the
table's bare group ARN, which the evaluator already matches with or
without the trailing :* for the group's management actions.
CloudWatchLogsStoredResourceArns answers the stored tags of a log
group, a destination and the delivery family; IamConditionContextResolver
keeps only the request tags of Logs' create and tag calls. Log group
tag writes give the group a new map under the lock creating and
deleting a group take, so one racing a delete cannot put the group
back, and its tags field is volatile. Only Logs' operations change in
the table.
RunJobFlow's uniform form, MasterInstanceType, SlaveInstanceType and
InstanceCount in place of InstanceGroups or InstanceFleets, made no
instance groups, so ListInstanceGroups listed none, ListInstances no
instances, and with runner-mode docker the cluster ran on its primary
node alone. It now makes the groups the API reference describes: "If
the value is 1, the same instance serves as both the master and core
and task node. If the value is greater than 1, one instance is the
master node and all others are core and task nodes."
That is a MASTER group of one MasterInstanceType instance and, for a
count above 1, a CORE group of the rest as SlaveInstanceType, both
ON_DEMAND. The master group is named "Master InstanceGroup", as in
DescribeJobFlows' sample response; no source names the core group, so
Floci names it "Core InstanceGroup". A request that gives
InstanceGroups or InstanceFleets keeps its own.
A request for more than one instance without SlaveInstanceType is
refused with a ValidationException, as JobFlowInstancesConfig says "all
three must be present"; a single instance needs none, as AWS runs one
without it. However many instances a cluster asks for, in this form or
any other, its core and task nodes are now built no further than
yarn-max-worker-nodes, where every one asked for was built before the
rest were dropped.
SetTopicAttributes and CreateTopic stored any Policy, so a topic policy
granting an action SNS does not have, such as sns:PublishBatch, was kept
and an AWS::SNS::TopicPolicy carrying one reached CREATE_COMPLETE. Both
now check every sns: Action of every statement against the list
AddPermission uses, ignoring case, and answer the same InvalidParameter
("Policy statement action out of service scope!"). A refused
SetTopicAttributes keeps the old policy and a refused CreateTopic creates
no topic. Receive, which AWS's former default topic policy granted, is
added to that list. Wildcards, NotAction, other services' actions and a
value that is not JSON are left unchecked.
Closes#8897
A circuit breaker sits under the retry layer of both Docker clients and
counts consecutive transport failures: an I/O error or an unusable
socket, never an HTTP response or a wait for a pooled connection. After
floci.docker.breaker-failure-threshold (3) of them it pings the daemon
off the caller's thread, over a one-connection transport of its own;
only when that ping fails too does every Docker call fail at once with
DockerUnavailableException, which the retry layer never replays. While
open it pings every floci.docker.breaker-probe-interval-seconds (5), and
the first answer closes it. Any HTTP status to the ping is an answer,
and a ping that never reaches the daemon neither opens nor closes the
breaker. A threshold of 0 turns it off.
GenerateAs2805KekValidation is served on the Payment Cryptography data
plane. Two AS2805 nodes prove they hold the same key encryption key: the
request form makes a random number with Single DES odd parity and returns
it enciphered under one variant of the key, and the response form
deciphers a number, inverts it and returns it enciphered under another
variant. The key is a Triple DES TR31_K0 key encryption key; the request
form needs Encrypt and the response form both Decrypt and Encrypt.
The AS2805 Triple DES check and the key lookup now live in
PaymentCryptographyKeyRules, shared with the key exchange, card
validation, authorization cryptogram and PIN operations.
A Service Connect service that offers endpoints now has them in the
Cloud Map namespace it joined. CreateService and UpdateService create an
HTTP Cloud Map service for each services[] entry, named by its
discoveryName or else its portName, and one for a client configuration,
aws-ecs-sc.client.<UUID>.<service name>, described "Managed by" the ECS
service and tagged AmazonECSManaged=true. Each deployment reports them
as serviceConnectResources. UpdateService keeps, creates and deletes them
to match, turning Service Connect off or DeleteService deletes them all,
and a circuit-breaker rollback brings them back in line.
Discovery names are checked before anything is created, under a lock per
namespace: one outside ECS's naming rule, one named twice, one another
ECS service holds and one a Cloud Map service created outside ECS holds
are refused with ECS's messages, ClientException on CreateService and
InvalidParameterException on UpdateService. ECS only reuses or deletes
Cloud Map services it made. Cloud Map's duplicate-name check moves into
CloudMapService.findServiceByName, shared with the registrar.
A target group with a TCP health check was probed with an HTTP GET and
judged on the response code, so a target that accepts connections but
does not answer HTTP stayed unhealthy. A TCP check now opens a
connection to the target and passes once it is accepted, without
consulting the path or matcher, which AWS scopes to HTTP and HTTPS
checks. The ELB docs describe the TCP check.
Closes#9031
AgentCore TagResource accepted any tags map. It now validates the map
before dispatch with the same rules create and update use: at most 50
entries, keys of 1 to 128 characters and values of 0 to 256 in the
AgentCore tag pattern. The handler opts into the strict tag payload
parser, so a malformed or non-object body is refused without changing
stored tags, while an empty map and an empty untag request stay valid.
Closes#7894
Resource Groups was built by hand: ResourceArnBuilder read a group from
the body's Group or GroupName, or CreateGroup's Name, the request
resources table held no Resource Groups operation, and nothing gave a
policy condition a group's tags. resource-groups moves from HAND_BUILT
to NAMESPACES, so the table gives each operation the group its Group
names, by its name or its ARN, and the ARN a tagging route carries;
CreateGroup, for which the Service Reference lists no resource type, is
checked on *, as AWS checks it. ResourceArnBuilder's Resource Groups
branch goes. ResourceGroupsStoredResourceArns answers a group's stored
tags, read in place from the group record the service stores whole. Only
Resource Groups' operations change in the table.
EKS was built by hand: ResourceArnBuilder walked an EKS path, looked
each resource up through EksService, and checked a tagging route on the
caller's cluster named after the ARN's last segment; the request
resources table held no EKS operation, and nothing gave a policy
condition an EKS resource's tags. eks moves from HAND_BUILT to
NAMESPACES, so the table gives each operation the cluster its path
names, the node group, add-on or Fargate profile EksStoredResourceArns
finds by its cluster and name, the ARN a tagging route carries, and
parts of an ARN the request does not give open. CreateCluster, for which
the Service Reference lists no resource type, is checked on the cluster
its body names from a MEASURED entry quoting the EKS user guide's
example policy for creating a cluster. ResourceArnBuilder's EKS section
and its EksService dependency go. EksStoredResourceArns answers the
stored tags of a cluster, node group, Fargate profile, add-on, Pod
Identity association or access entry; EKS's tag changes take one lock
and give a cluster, node group or Fargate profile a new map, whose tags
field is now volatile, and a cluster is tagged only when its ARN is the
whole ARN the request names. Tag changes and tag reads find a cluster,
node group or Fargate profile through one lookup, and an ARN with a part
left open is not looked up. Read from its model, EKS tags only on
/tags/{resourceArn} with the ARN encoded, as the SDKs send it, so the
tagging tests that sent it unencoded now encode it. Only EKS's
operations change in the table.
S3 Vectors buckets and indexes now support TagResource, UntagResource and
ListTagsForResource through the shared tag routes. A tag call reads the
resource ARN in the request's Region, partition and account as the other
ARN operations do, merges tags by key, and holds the 50-tag limit under
the bucket lock. Create, replace and TagResource validate tags the same
way, with the service's not-found wording and modeled constraint errors.
Strict tag handlers reject trailing JSON before calling their service.
Adapted from AndreKurait/floci#815.
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
STS was built by hand: ResourceArnBuilder checked AssumeRole on the role
its RoleArn named and every other operation on *, IamEnforcementFilter
sent STS requests there by action, and the request resources table held
no STS operation. sts moves from HAND_BUILT to NAMESPACES, so the table
gives each operation what the Service Reference and botocore give it:
AssumeRole the role its RoleArn names, as before, GetFederationToken the
federated user its Name names and AssumeRoot the root user, where the
hand builder checked both on *, and the operations that act on no
resource type * as before. StsStoredResourceArns answers that a role IAM
holds in the account its ARN names is assumed there, as the handler
finds it, so a cross-account AssumeRole is checked on that role alone
and not also on the caller's role of that name. ResourceArnBuilder's STS
section and the filter's STS case go. Only STS's operations change in
the table.
RestoreDBClusterFromSnapshot and RestoreDBClusterToPointInTime now read
DeletionProtection and set it on the new cluster before it is stored.
The AWS::RDS::DBCluster provisioner reads DeletionProtection, creates the
cluster with it, and applies a changed value on stack update. A stack
delete of a protected cluster is refused by DeleteDBCluster and reported
as the resource's DELETE_FAILED, as on AWS.
A restore, or a CloudFormation role attach, that fails after creating the
cluster goes through one cleanup that clears the flag and always attempts
the delete, adding any failure to the original error.
Closes#9056
An ENI could have IPv6 addresses assigned while its top-level
ipv6Address was missing from CreateNetworkInterface and
DescribeNetworkInterfaces. The shared serializer now reports the first
assigned address there, keeps the ipv6AddressesSet list, and omits the
field when the interface has none.
Ported from Emanuel Aseghehey's AndreKurait/floci#1239.
* feat(iot): support SetV2LoggingOptions and GetV2LoggingOptions
* fix(iot): keep omitted V2 logging options and require role and level on first set
* fix(iot): validate SetV2LoggingOptions log level and member types
* fix(iot): answer SetV2LoggingOptions with an empty body
* test(iot): cover V2 logging setup, updates, errors and account scoping in the SDK suite
* test(iot): sign V2 logging requests with the shared EnforcementFixtures.auth helper
* test(iot): cover V2 logging persistence and document eventConfigurations and verbose limits
* docs(iot): count the V2 logging routes in the service matrix
* fix(iot): reject a SetV2LoggingOptions body that is not a JSON object
* fix(iot): reject a blank roleArn in SetV2LoggingOptions
* fix(iot): serialize the SetV2LoggingOptions read-merge-write
* test(iot): share one IoT client builder in the SDK fixtures
* fix(iot): stop refusing a blank roleArn in SetV2LoggingOptions
* fix(iot): build the V2 log level refusal with SmithyValidationErrors
* refactor(iot): share IoT request body readers between logging and fleet indexing
A role's trust policy now reaches IAM enforcement through a
ResourcePolicyProvider, the path every other resource-based policy
takes, instead of a branch on sts:AssumeRole in the enforcement filter.
RoleTrustPolicyProvider answers an STS action on a role ARN with the
role's stored trust policy, each statement that names no Resource given
the role's ARN, and with the account in the role's ARN as its owner.
IAM actions on the role, such as iam:GetRole and iam:PassRole, get
nothing from it.
evaluateResourcePolicyFor already returns ALLOW_DIRECT_IAM_USER for an
Allow naming the caller's user ARN, so a same-account grant to a user
is unchanged, and AssumeRolePolicyEvaluator.grantsToIamUser and its
request-key helper are removed. Within the role's account, an Allow
naming a role session's role, or "*", now grants the call too, as any
same-account resource-based policy does. Across accounts the filter
needs the trust policy's Allow beside the caller's identity policy, so
it refuses an IAM user or a role session the trust policy does not
allow before STS does, with its own AccessDenied message;
AssumeRoleTrustConditionsIntegrationTest checks that message for those
callers.
The STS guide's sentence that the caller's identity policy must allow
sts:AssumeRole now names the same-account exception.
Each MicroVM image version now keeps its own updatedAt instead of
reporting the parent image's. Building another version leaves older
versions' timestamps alone, and a status update advances only the
version it changes. A stored version without the field reports its own
createdAt, including after a restart, and reading it does not rewrite
storage.
Closes#8616
Derive INFERENCE_PROFILE support from existing system profile routes
while preserving regional ON_DEMAND support and request-filter
validation. Cover Get and List metadata through raw SDK strings,
including profile-only and unavailable regions.
Closes#8450
With IAM enforcement on, the caller's identity-based policy, permissions boundary, session
policy and SCPs were evaluated for sts:AssumeRole without the request's sts:RoleSessionName
and sts:ExternalId, which the role's trust policy already sees, so a condition on either never
matched. The Service Authorization Reference lists both among the condition keys of
AssumeRole. STS now joins the generated request condition key table, which reads them from the
AssumeRole form; an AssumeRole without ExternalId names no sts:ExternalId. AssumeRoleWithSAML
carries no session name member, so it is listed as not reading it from the request.
sts:SourceIdentity, sts:TransitiveTagKeys and the session tag keys are not read: Floci does not
model source identity or session tags, as the STS page already says.
Closes#8921
Aurora DSQL was built by hand: ResourceArnBuilder read a cluster or
stream from its path, or a tagging route's ARN, IamEnforcementFilter
sent DSQL requests there without their operation, the request resources
table held no DSQL operation, and nothing gave a policy condition a
cluster's tags. dsql moves from HAND_BUILT to NAMESPACES, so the table
gives each operation the cluster or stream its path names, or the ARN
its modeled /tags/{resourceArn} carries, from botocore's REST model;
ListClusters, for which the Service Reference lists no resource type, is
checked on cluster/* from a MEASURED entry citing the AccessDenied
message AWS returned in #6328. ResourceArnBuilder's DSQL branch, with
the path and tagged-ARN helpers only it still used, and the filter's
DSQL case go, and the shared tags controller now serves DSQL's
tagging on its modeled route only, refusing the bare /tags. Only DSQL's
operations change in the table. DsqlStoredResourceArns answers a
cluster's stored tags; TagResource and UntagResource give the cluster a
new map under its lock, and its tags field is volatile.
CreateDBInstance and ModifyDBInstance accepted Iops and StorageThroughput but dropped them, and DescribeDBInstances returned neither, so a Terraform aws_db_instance that set iops or storage_throughput never converged. Both are now stored from Create and Modify. Describe reports Iops on io1, io2 and gp3 and StorageThroughput on gp3, with the RDS User Guide's gp3 baseline when an instance named neither (12,000 IOPS and 500 MiB/s from 400 GiB, 200 GiB for Oracle, never for SQL Server; 3,000 and 125 otherwise), and StorageThroughput 0 on every other type. Iops on a type without provisioned IOPS, Iops=0 aside, and StorageThroughput off gp3 are refused with InvalidParameterCombination, a create naming Iops and no type defaults to io1, and a type switch drops values the new type does not carry.
Pipes was built by hand: ResourceArnBuilder read a pipe's name from its
path or a tagging route's ARN, IamEnforcementFilter sent Pipes requests
there without their operation, the request resources table held no Pipes
operation, and nothing gave a policy condition a pipe's tags. pipes
moves from HAND_BUILT to NAMESPACES, so the table gives each operation
the pipe its path's Name names, or the ARN a tagging route carries, from
botocore's REST model, and ResourceArnBuilder's Pipes branch and the
filter's Pipes case go. Only Pipes' operations change in the table.
PipesStoredResourceArns answers a pipe's stored tags; TagResource and
UntagResource give the pipe a new map one call at a time, and its tags
field is volatile.
* fix(cloudwatch): preserve weighted samples on public metric APIs
* fix(cloudwatch): index Query fields before weighted parsing
* fix(cloudwatch): include datum paths in weighted length errors
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
The Kubernetes Lambda executor built every pod without a nodeSelector or tolerations, so on a cluster whose node groups are all tainted the pods stayed Pending until the cold-start timeout. FLOCI_SERVICES_LAMBDA_KUBERNETES_NODE_SELECTOR takes key=value entries with label syntax for spec.nodeSelector, and an invalid entry fails the cold start rather than letting the pod land on nodes it was meant to avoid. FLOCI_SERVICES_LAMBDA_KUBERNETES_TOLERATIONS takes the tolerated taints in kubectl taint syntax (key=value:Effect, key:Effect, or a key alone for every effect), and an invalid entry is dropped with a warning, as an invalid label is. A repeated key now logs which value replaced which. The Helm chart, now 0.2.0, renders both from floci.lambda.kubernetes.nodeSelector and tolerations.
Closes#8992