GetWebIdentityToken answered the error shape's own @documentation prose,
which the model carries to describe the error rather than to be sent as
one: the model states this refusal's code and status and not its message,
so documentation was what the wording fell back to. AWS answers
'OutboundWebIdentityFederation is disabled.', wholly fixed text.
S3 leaves the registry's hand rules and ResourceArnBuilder's S3 branch: its requests are matched
on their botocore routes, checked as the actions the authorized-actions file gives them, on the
resources the request-resources table reads. regen_rest_routes.py no longer lists s3 as hand-routed,
and regen_iam_request_resources.py reads s3 instead of leaving it to the builder; the tables gain
S3's and S3 Control's 195 operations and nothing else changes. Operations sharing a route are told
apart by the query parameters and headers botocore requires, an S3 Control request by its route's
model, which also picks S3 Control's error envelope (isS3ControlRequest), and a member the two
clients locate apart is read for the client whose route the request matched.
An object key is read as S3 reads it, keeping the slashes it was sent with, through
RequestPathLabels, a per-namespace hook S3 implements with S3ObjectKeys. DeleteObjects names its
keys in its XML body, so it takes s3:DeleteObject's types from the S3 user guide's Either row and is
unread: the filter leaves it to S3, which checks each key.
The registry's S3 rules, S3 Control rules and sub-resource overrides are deleted, with the tests of
Floci's own handler order, the regional S3 Control ARN form, and a version for HEAD, HEAD
?annotation and Select, none of which an AWS source gives.
S3 also runs only what botocore routes, so what runs is what is checked: a request naming annotationName
is GetObjectAnnotation and a HEAD naming one HeadObject, SelectObjectContent runs on
?select&select-type=2 and reads the current version, the S3 Control tagging handler decodes its ARN
once, and a request two operations' routes take alike is refused under enforcement.
A template can now create an EMR cluster. It was not served, so the
stack reported CREATE_COMPLETE with nothing behind it. EmrCfnProvisioner
creates it through RunJobFlow, reading the template as RunJobFlow reads
its request, from a method EmrHandler now shares.
- The properties are read as model validation reads them, against the
registry schema, now in the vendored property types, and a template
that sets the read-only Id or MasterPublicDNS is refused.
- Ref is the cluster id; Fn::GetAtt gives Id and MasterPublicDNS.
- The master, core and task groups or fleets become RunJobFlow's
InstanceGroups or InstanceFleets with their roles, a configuration's
ConfigurationProperties its Properties, and a step's StepProperties
its Properties. The create completes once the cluster is waiting or
running, and a cluster that terminates first fails it and is
terminated again, its termination protection cleared first.
- The properties, and members of Instances, its groups and its fleets,
that Floci's RunJobFlow keeps nothing of are accepted with a warning,
and recorded as ignored. Task groups and fleets need unique names, as
the reference says, and a cluster that ran its steps and ended came
up, so its create completes.
- An update applies in place what the reference and the update handler
let change: AutoTerminationPolicy, ManagedScalingPolicy,
StepConcurrencyLevel, VisibleToAllUsers, TerminationProtected,
UnhealthyNodeReplacement, a core or task group's InstanceCount and
AutoScalingPolicy, a core or task fleet's target capacities, and the
tag keys the stack owns. They are compared with the values the stack
last applied, resolved, so one a parameter changes counts. Any other
change, within Instances included, replaces the cluster: the master
group's count and the master fleet's capacities among them, which
the API refuses to change.
- A later resource's failure, or a failure of the update itself, puts
back what it had applied. A terminated cluster fails an update, and a
termination-protected one refuses the delete, as TerminateJobFlows
does.
No write here read any of them. An identity policy carrying a Principal
was stored, where AWS answers 'Policy document should not specify a
principal.'; a trust policy naming no principal was stored, leaving a role
assumable by nobody with no signal, where AWS answers 'Missing required
field Principal'; and a trust policy granting another service's actions
was stored, where AWS answers 'AssumeRole policy may only specify STS
AssumeRole actions.' All three are 400 MalformedPolicyDocument and all
three are read before the document is stored.
Neither rule about principals reads NotPrincipal as one, the IAM reference
saying neither policy may carry that element at all, and the trust rule
asks that a principal is named rather than that the element is present: a
null or an empty Principal names nobody, which is what the evaluator makes
of it too. The action rule stays narrower than AWS's may be, so that it
cannot refuse a document AWS accepts: it is read on the namespace, case
insensitively as AWS reads any action, and on Action alone, so every sts:
spelling passes and a statement excluding actions grants the assume actions
among the rest. Three existing fixtures used a trust policy naming no
principal and now use the shared one that does.
A template can now create AWS::EMR::SecurityConfiguration,
AWS::EMR::Studio and AWS::EMR::StudioSessionMapping. None was served,
so the stack reported CREATE_COMPLETE with nothing behind it. They go
through the services the EMR API uses, and the properties are read as
model validation reads them, against the registry schemas, now in the
vendored property types.
- A security configuration's Ref is its name, generated when the
template gives none; its JSON is taken as an object or its text. Both
properties are create-only, so a change replaces it, and one that
keeps a template's own name is refused, as for every custom-named
resource.
- A Studio's Ref is its id; Fn::GetAtt gives StudioId, Arn and Url, and
a template that sets one of them is refused. UpdateStudio applies the
Name, Description, SubnetIds and DefaultS3Location the template
changes, and the tags change for the keys the stack owns. A change to
IdpAuthUrl or IdpRelayStateParameterName is accepted with a warning
and not applied, as no Studio API changes them, and a create-only
change replaces the Studio.
- A session mapping's Ref is StudioId|IdentityType|IdentityName, its
primary identifier; SessionPolicyArn updates in place, and another
identity replaces it.
- A later resource's failure, or a failure of the update itself, puts
back what the update changed, but a Studio's added subnets, which
UpdateStudio cannot take away. A gone resource fails an update and
counts as deleted.
Two shared fixes go with them. Model validation now looks for a schema
pattern in a value, as the validator CloudFormation runs does, instead
of matching the whole value, so a Studio named with spaces passes. And
CreateSecurityConfiguration, from the API or a stack, refuses a
configuration that is no JSON object, which a cluster naming it could
not read.
* feat(cloudformation): provision AWS::Events::Connection
* feat(cloudformation): roll back an AWS::Events::Connection updated in place
* feat(cloudformation): address review of the Connection provisioner
* fix(cloudformation): match AWS when an AWS::Events::Connection drops a description
* fix(cloudformation): clear a stale Connection rollback snapshot before any check
* test(cloudformation): add AWS::Events::Connection's change-exempt row
Co-authored-by: Priamo <pgermosen@gmail.com>
A session admitted on 8883 by its certificate, or by a custom authorizer (the default one for unsigned MQTT over WebSocket), is now authorized per packet: iot:Subscribe on topicfilter/<filter>, iot:Publish and iot:Receive on topic/<topic>, with the connect's condition keys and policy variables. A certificate's policies are re-read on every check, so an attach, a detach or a new default version reaches an open session.
A denied SUBSCRIBE or PUBLISH closes an MQTT 3.1.1 connection with the lifecycle reason AUTH_ERROR and gets reason code 0x87 on MQTT 5 (SUBACK, QoS 1 PUBACK, or DISCONNECT for QoS 0). A denied publish is not recorded, run through topic rules or delivered, and iot:Receive is checked on every delivery, retained messages and those stored for a resumed persistent session included.
Closes#8643
With IAM enforcement on, a REST API AWS_PROXY or AWS Lambda integration invoked the function whatever its function policy said. On AWS API Gateway invokes the function as apigateway.amazonaws.com and only the function policy decides the call, so a missing or mis-scoped AddPermission breaks the integration.
Before invoking, the integration now asks ServiceCallAuthorizer whether apigateway may perform lambda:InvokeFunction on the function, with aws:SourceArn set to the request's execute-api ARN, carrying the concrete request path and the function's Region, and aws:SourceAccount to the API's account. For an ANY method the ARN carries the request's verb, as a Lambda authorizer's methodArn does. A refused call answers 500 {"message": "Internal server error"} through the API_CONFIGURATION_ERROR gateway response, and the function is not invoked. A function that does not exist is refused the same way, since Lambda authorizes before it checks existence. An integration with credentials invokes as that role and is not checked.
With enforcement off nothing changes: a missing function still answers 404 Function not found.
Part of #4898
A template can now create an EMR on EKS virtual cluster. It was not
served, so the stack reported CREATE_COMPLETE with nothing behind it.
The provisioner goes through the service the EMR on EKS API uses, and
does what AWS's own resource handler does:
- The properties are read as the handler's model validation reads them,
against the registry schema, now in the vendored property types, and
a template that sets the read-only Arn or Id is refused in the
handler's words.
- Ref is the virtual cluster id; Fn::GetAtt gives Id and Arn.
- A create sends Name, ContainerProvider, SecurityConfigurationId,
SessionEnabled and the tags to CreateVirtualCluster.
- Every property but the tags is create-only: a change replaces the
virtual cluster, and the old one is terminated once the update
commits.
- A tag change drives the tags to the template's, removing any other
but an aws: one; a later resource's failure, or a failure of the
change itself, puts them back.
- An update of a virtual cluster that is terminated or gone fails as
the handler's does, and the delete of one is taken as done.
Where the Service Reference gives an S3 operation no one answer, S3's user guide does.
tools/aws/fetch_s3_required_actions.py copies its "Required permissions for Amazon S3 API operations"
rows unchanged into tools/aws/sources/s3-required-actions.json, and the authorized-actions generator
reads them: an operation's one required action (ListObjectsV2 is s3:ListBucket, CopyObject
s3:PutObject), the action for one model's requests of an operation S3 and S3 Control both have
(authorizedByModel: S3 Control's account-level GetPublicAccessBlock is s3:GetAccountPublicAccessBlock),
and an Either row's choice by versionId where botocore gives it in the query (versioned). Measured
entries quote the Service Authorization Reference for the account-level GetPublicAccessBlock the page
mislabels and the version annotation actions it omits. The one answer the reference gives an operation
several clients list goes to the namesake client (S3's GetBucketLifecycleConfiguration is
s3:GetLifecycleConfiguration), and the file records the reference's spelling of an action named as its
operation in another case (MemoryDB's CreateACL is memorydb:CreateAcl).
IamAuthorizedActions reads the new sections and gives an action for a route's model and query, which
IamActionRegistry uses wherever it reads a route's action. S3 stays hand-routed, so its rules still
decide its requests; only the spellings show, in the action an AccessDenied message names. A hand-routed
scope's routes list what their requests must carry, for the coverage test, which now also checks each
model-specific action against that model's routes.
A template can now create an EMR Serverless application. It was not
served, so the stack reported CREATE_COMPLETE with nothing behind it.
The provisioner goes through the services the EMR Serverless API uses,
so a stack and a direct call see the same application, and it does what
AWS's own resource handler does:
- The properties are read as the handler's model validation reads them,
against the registry schema, now in the vendored property types; an
Architecture outside its enum and a read-only ApplicationId or Arn
are refused.
- Ref is the application id; Fn::GetAtt gives ApplicationId and Arn.
- A create sends every property to CreateApplication, the Key/Value
lists of InitialCapacity and LogTypeMap as the API's maps.
- An update sends UpdateApplication the settings the template changed
and drives the tags to the template's, removing any other. A dropped
setting stays as it is, but for InitialCapacity, which the handler
sends as an empty map, and so clears.
- Name and Type are create-only: a change replaces the application, and
the old one is deleted once the update commits.
- A later resource's failure puts back the settings and tags the update
changed; a failure of the update itself puts back what it had changed
by then, nothing when UpdateApplication refused it, and a restore that
fails keeps its snapshot for ContinueUpdateRollback.
- Neither an update nor a delete stops a STARTED application, so one
the API refuses fails the resource, as on AWS.
The vendored create-only properties and schema surface also take AWS's
new AWS::CertificateManager::Certificate properties, RootHierarchyType
and CertificateUsage, which their drift checks on this change asked
for; the ACM provisioner accepts and ignores both.
Every Redis/Valkey backend on the default path started with --enable-debug-command local so a snapshot could be loaded into the running server with DEBUG RELOAD NOSAVE. A Redis before 7.0 refuses to start with that flag, so an image forwarding VALKEY_EXTRA_FLAGS to one no longer started, and the official redis:* images, which ignore VALKEY_EXTRA_FLAGS, kept DEBUG off on 7.0 or later and could not be seeded.
The default path now seeds a group the way the shell-less path already did: the snapshot file is placed in the data directory before the server starts, and the server's dir and dbfilename are checked once it is up. No backend gets --enable-debug-command, and the DEBUG RELOAD restore is gone.
Closes#7878
ModifyInstanceGroups ignored EC2InstanceIdsToTerminate, "The Amazon EC2
InstanceIds to terminate. After you terminate the instances, the
instance group will not return to its original requested size." Floci's
instances had no identity of their own: their ids and addresses
followed their place in their group, so a group could only shrink from
its end.
Each instance group now keeps the ordinals of the instances those ids
ended, and its instances take the first ordinals that are not among
them. The named instances leave ListInstances and, in the docker runner
mode, take their core or task node with them, HDFS moving its blocks
first, as nodes are named by group and ordinal. The group's requested
and running counts go down by as many. Its other instances keep their
ids, addresses and nodes, as do the cluster's other groups', and an
instance the group gets later takes a new ordinal, not an ended one's.
An InstanceCount beside them is the group's size after that.
An id that is not one of the group's instances is refused with
ValidationException, as ModifyInstanceGroups' other refusals are
recorded, and a MASTER group's with the refusal its count gets; AWS's
wording for these is not documented, so it is Floci's.
CancelSteps took no StepCancellationOption: a cancelled RUNNING step's
container was killed at once, which is TERMINATE_PROCESS. The
Management Guide's "Cancel steps" makes SEND_INTERRUPT the default:
"EMR sends a SIGTERM signal to the step", which may catch it "to
terminate descendant step processes or wait for them to complete";
with TERMINATE_PROCESS "EMR sends a SIGKILL signal to the step and all
its descendant processes which terminates them immediately".
With SEND_INTERRUPT the step's container now gets SIGTERM and the step
stays CANCEL_PENDING until its command ends on its own, CANCELLED then,
without its ActionOnFailure. A step's container runs under an init
process, as Docker's --init runs one, so that the signal reaches its
command: a container's first process ignores SIGTERM unless it handles
it. A step whose container is not running yet has nothing to
interrupt, and is stopped as before. TERMINATE_PROCESS kills it at
once, as every cancel did, with SIGKILL alone, as Docker's own stop
would send SIGTERM first and the init would pass it on; it also kills
a step a SEND_INTERRUPT cancel left running, and a cluster's end kills
such a step too. An option that is neither gets the framework's enum
message.
A CancelSteps request takes at most 100 steps from release 7.14.0, and
256 before it, as "With Amazon EMR releases 7.14.0 and later, the
maximum number of steps you can cancel per request is 100".
Store and return VpcSecurityGroupIds and the preferred backup and
maintenance windows on create, modify, restore and CloudFormation cluster
paths, validating them before any mutating call. A cluster that names no
group gets its VPC's default group. The window resolution moves into
BackupWindows, shared with DB instances and DocumentDB.
An update whose template no longer carries DeletionProtection leaves the
stored value alone, as the provider's null does, instead of turning it off.
SendTemplatedEmail and SendBulkTemplatedEmail now check TemplateArn with the
parser the v2 sends use: partition, service, region and resource type each
answer their own "Invalid template ARN" message, a value without "arn:" and an
empty template name are rejected, and the account is not checked. The v1-only
parser that looked for ":template/" is removed, and the name/ARN alignment
check moves into SesTemplateService for both protocols; the v2 controller's
remap keeps its BadRequestException.
Both v1 sends require Template whatever TemplateArn holds, as the model does,
and answer "Template cannot be empty" ahead of the ARN checks;
SendBulkTemplatedEmail treats a whitespace-only Template as empty. The Java and
Python compatibility tests build the template ARN in the client's partition and
region.
* fix(cloudformation): update an EKS cluster's logging, authentication mode and endpoint access in place
* test(cloudformation): pin an EKS cluster's config updated in place and rolled back
* fix(cloudformation): fail an EKS cluster update that drops its subnet or security group list
* test(cloudformation): pin a refused EKS subnet or security group change
* fix(cloudformation): restore only the EKS cluster settings an update changed
* test(cloudformation): pin an EKS rollback that keeps settings the update did not change
A managed node group created without a releaseVersion reported
<version>-eks-1, while AWS reports the release of its AMI in the
<patch version>-<build date> shape SSM publishes under
recommended/release_version. The release is now built in one place,
EksAmiReleaseVersions, which SSM and EKS both call, from the recommended
EKS optimized AMI the image catalog holds for the node group's Kubernetes
version and AMI type (AL2_x86_64, AL2023_x86_64_STANDARD,
AL2023_ARM_64_STANDARD).
A node group whose launch template names a custom AMI reports that AMI id,
as the Nodegroup reference describes; an explicit releaseVersion is still
echoed, and an AMI type the catalog has no recommended AMI for keeps
<version>-eks-1.
The provisioner passes the endpoint's resolved tags to CreateAgentRuntimeEndpoint,
reconciles tag-only changes and removals in place without touching the endpoint
configuration, and restores the prior tags on a failed update and on stack rollback.
The runtime, endpoint and memory reconcile their tags through CfnRollback.reconcileTags.
A failed undo's snapshot is carried onto the restored resource by the new
CfnRollback.carryFailedUndoSnapshot, now shared by AppConfig, AppSync, the REST API,
ELBv2 and Bedrock AgentCore, so ContinueUpdateRollback retries the restore.
The RuntimeEndpoint Tags gap row and the "accepted and not stored" notes are removed.
Closes#7893
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