Commit Graph
2692 Commits
Author SHA1 Message Date
Priamo Germosen 94c0504bca fix(rds): initialize PostgreSQL as rdsadmin, with the master user in rds_superuser (#9182)
A PostgreSQL backend started with the master user as POSTGRES_USER, so the master was the bootstrap superuser and owned the system catalog: REASSIGN OWNED BY <master> failed with "required by the database system", and rds_superuser did not exist.

A new backend is now initialized as rdsadmin, as RDS initializes one. A first-boot script creates the master as LOGIN NOSUPERUSER INHERIT CREATEDB CREATEROLE NOREPLICATION VALID UNTIL 'infinity' in rds_superuser (RDS User Guide, "Understanding the rds_superuser role"). The master owns postgres, template1 and the instance's database. rds_superuser holds rds_password, rds_replication and the predefined pg_* roles RDS grants it, with ADMIN OPTION, and ADMIN OPTION alone on rds_iam on PostgreSQL 16 and later, so the master can grant rds_iam without becoming an IAM-only member. The rdsadmin database is closed to PUBLIC.

rdsadmin gets a random password on every start, which only the auth proxy uses: an IAM session for a role other than the master is opened as rdsadmin and handed over, since only a superuser can SET SESSION AUTHORIZATION. No client may log in as rdsadmin. The proxy's rds_iam walk skips grants of ADMIN OPTION alone, such as the one PostgreSQL 16 gives the master on each role it creates. Snapshots, restores, exports and database renames run as rdsadmin; a restore applies the RDS roles and ownership again and gives rdsadmin back its password.

A data volume first initialized by an earlier Floci keeps its master as the bootstrap superuser, and a master named rdsadmin stays one. Two tests leaned on a superuser master: the IAM replication test now turns logical replication on through rds.logical_replication in a parameter group instead of ALTER SYSTEM, and the startup-parameters test stores its superuser-only role defaults as rdsadmin and gives app_user its schema with GRANT USAGE.

Closes #5885
2026-11-22 07:31:26 -04:00
Priamo Germosen d63ad7c226 fix(emr-serverless): scope a job run's credentials by its execution IAM policy (#9190)
StartJobRun kept a run's executionIamPolicy only to give it back: its
credentials had every permission of its execution role, and the policy
was stored as sent, members it does not have included.

- A run's inline policy now scopes the session its containers get, as an
  assumed role's session policy does, so with IAM enforcement on "The
  resulting job IAM role permissions will be an intersection of this
  policy and the policy associated with your job execution role". Its
  policyArns are kept and given back but not applied, as Floci's IAM
  applies no managed session policy, an assumed role's included.
- The policy keeps only its two members. An inline policy outside 1 to
  2,048 characters, more than 10 policy ARNs, or one outside 20 to
  2,048 characters is refused with the framework's ValidationException,
  and either member of another JSON type with SerializationException.
2026-11-22 05:02:40 -04:00
Priamo Germosen a1f3379198 fix(emr-serverless): report a Spark job run's total and billed resource utilization (#9187)
GetJobRun gave an ended run no totalResourceUtilization or
billedResourceUtilization, which a cost or usage report reads.

- An ended Spark run gives both, reckoned from the workers it asks for:
  its driver and the executors it starts with, sized as the user
  guide's supported worker configurations size them. A worker has the
  vCPUs its cores ask for, and memory for its Spark memory and its 10%
  overhead, at least 384 MB, rounded up to the sizes its vCPUs allow.
  Unset, a worker has 4 vCPUs, 14G and 20G of disk, and a run starts 3
  executors, as the Spark job properties give them; spark-submit's
  sizing options set over --conf, as Spark takes them. Sizes are read
  as the executors' capacity reads them, which a size too large for a
  long no longer breaks.
- The total covers the time "from the time the job starts to execute,
  until the time the job terminates, rounded up to the nearest second";
  the billed figure includes "a 1-minute minimum usage for workers,
  plus additional storage over 20 GB per worker".
- Its driver's worker counts for the whole attempt. Executors with
  containers of their own count for the time each container ran, as
  they come and go with Spark's target; otherwise the executors it
  starts with count for the whole attempt.
- Each attempt gives its own, and one that never started used nothing.
  A Hive run gives none, its Tez tasks coming and going with its query.
  A Spark run stored before this gets its workers as it ends.
2026-11-22 04:00:01 -04:00
Priamo Germosen 8bc759420f fix(emr-serverless): honour a cancel's grace period, keep flexExecution and check architecture (#9184)
CancelJobRun ignored its shutdownGracePeriodInSeconds and stopped a
run's driver at once, StartJobRun dropped flexExecution, and
CreateApplication and UpdateApplication took any architecture.

- From emr-7.9.0 a RUNNING run in the docker mode gets the grace
  period it is cancelled with, "during which the job can perform
  cleanup operations prior to final termination". Its driver gets
  SIGTERM through an init process, the run is CANCELLING until the
  driver ends, and a driver still running when the period ends is
  stopped. A batch run has none by default and a streaming run 120
  seconds; a run not yet RUNNING, or on an earlier release, is stopped
  at once, and a value other than 0 or 15 to 1800 is refused with
  ValidationException, in Floci's words. Step Functions' cancelJobRun
  passes its ShutdownGracePeriodInSeconds on, read in either case.
- A run keeps its flexExecution's one member, enabled, which GetJobRun,
  ListJobRuns and ListJobRunAttempts give back; an enabled that is not
  a boolean is refused with SerializationException.
- An architecture other than ARM64 or X86_64 is refused with the
  framework's ValidationException, from the one list CloudFormation's
  application provisioner checks too.
2026-11-22 02:57:31 -04:00
Priamo Germosen a9bea6567c fix(emr): give back a cluster's Kerberos realm, OS release, root volume, placement groups and logging settings (#9183)
RunJobFlow dropped the cluster's KerberosAttributes, OSReleaseLabel,
EbsRootVolumeIops, EbsRootVolumeThroughput, PlacementGroupConfigs,
LogEncryptionKmsKeyId, RepoUpgradeOnBoot and MonitoringConfiguration,
so DescribeCluster gave back none of them.

- DescribeCluster gives each back as it was asked for, the placement
  group configs as its PlacementGroups.
- OSReleaseLabel is the one asked for, else the latest Amazon Linux
  release DescribeReleaseLabel lists for the cluster's release, as "If
  no Amazon Linux release was specified, the default Amazon Linux
  release is shown in the response".
- RepoUpgradeOnBoot is SECURITY for a cluster with a custom AMI that
  names none, as "If omitted, the default is SECURITY".
- Of KerberosAttributes only the Realm is kept and given back, never a
  password, and a cluster without them answers an empty structure, as
  AWS does.
- A member the model requires, or a value outside its enum, is refused
  with the framework's ValidationException. So are two placement groups
  for one instance role, and one for the primary nodes of a cluster
  without three of them (three on-demand and no spot for a fleet), in
  the words AWS answers them with.
- As only the primary nodes take a placement group, with SPREAD or NONE,
  another role or strategy is refused, in Floci's words, and a group
  without a strategy gets SPREAD, as the Management Guide says.
- AWS::EMR::Cluster passes these properties to RunJobFlow rather than
  warning that they are not stored.
2026-11-22 01:54:11 -04:00
Priamo Germosen eb6998ed2e fix(iam): answer an assumed-role session's ChangePassword as AWS does (#9181)
ChangePassword answered 400 InvalidUserType to every caller with no
stored user behind the signing key, reading the CLI reference's sentence
for account root credentials. An assumed-role session is not that
caller: recorded against a real account on 2026-10-29, it is answered
NoSuchEntity 404, a code this operation's model declares alongside
InvalidUserType, so the two are not one case and that session was being
given root's error.

The recording is the whole of the change. That session answers the
missing key, with the message this package already gives wherever a
signing key resolves to no user, which keeps one situation to one
wording rather than minting a second. Every other caller keeps
InvalidUserType: a session AssumeRoot minted acts as the account root,
which is what that error is published for however root signs, and what
AWS answers the remaining session kinds is not recorded.
2026-11-22 01:32:18 -04:00
TATSUNO “Taz” Yasuhiro 48b95fc8c7 fix(pipes): send an SQS target's MessageGroupId and MessageDeduplicationId (#9178)
A pipe with an SQS queue target ignored SqsQueueParameters, so a FIFO queue target failed every
delivery for want of a group id. MessageGroupId and MessageDeduplicationId now reach SendMessage,
each a literal or a JSON path read off the event before the InputTemplate renders, as the event bus
target already does for Source and DetailType. A number becomes its text and an object its compact
JSON, and a path that names nothing fails the delivery.

CreatePipe and UpdatePipe check them as AWS does: a target whose queue name ends in .fifo needs
SqsQueueParameters and a MessageGroupId, MessageDeduplicationId is refused on a standard queue, and
a value that starts with $. but is not a valid JSON path is refused. The errors are reported
together, in AWS's order, as a ValidationException with fieldList; UpdatePipe checks against the
stored target when the request leaves it out.

Part of #7481.
2026-11-22 01:12:40 -04:00
Priamo Germosen 11b66161cd feat(dynamodb): opt-in TransactionConflict emulation for contending transactions (#9179)
With floci.services.dynamodb.transaction-conflicts-enabled on, a
TransactWriteItems keeps its items busy from the moment its conditions
hold until 10 ms after it commits, and answers when that time is up.
While an item is busy, a PutItem, UpdateItem, DeleteItem or single-item
PartiQL write on it fails with TransactionConflictException, and another
TransactWriteItems or a TransactGetItems that reaches it is cancelled
with the reason TransactionConflict, as the developer guide describes.
GetItem, Query, Scan and BatchWriteItem are unaffected, and a
transaction that is cancelled holds nothing.

The busy mark is a deadline kept beside the item, so no item lock is
held during the wait. Off, the default, transactions keep serializing on
their item locks as before. The switch is refused at startup on the
local backend.

Closes #4523
2026-11-22 01:03:17 -04:00
Priamo Germosen 0171af4bce fix(emr): give back the subnets, zones, instance profile and security groups a cluster asked for (#9180)
DescribeCluster's Ec2InstanceAttributes kept only the key name, subnet,
zone and managed security groups. The JobFlowRole, the instance fleets'
Ec2SubnetIds and Placement.AvailabilityZones, and the additional master
and slave security groups that RunJobFlow took were dropped, so a client
reading the cluster back, as Terraform's aws_emr_cluster does, saw none
of them.

- IamInstanceProfile is the JobFlowRole, "The IAM role that was
  specified when the cluster was launched".
- RequestedEc2SubnetIds and RequestedEc2AvailabilityZones are the ones
  requested, an empty list when none was, as AWS gives them. The subnet
  is the one Ec2SubnetId names, else the first of Ec2SubnetIds, and the
  zone the one Placement names, else the first of its AvailabilityZones.
- A request naming both subnets and zones is refused with
  ValidationException, as "RequestedEc2SubnetIDs and
  RequestedEc2AvailabilityZones cannot be specified together".
- AdditionalMasterSecurityGroups and AdditionalSlaveSecurityGroups are
  the ones given, and a list member of another JSON type is refused
  with SerializationException.
- AWS::EMR::Cluster no longer warns that Instances' Ec2SubnetIds and
  additional security groups are not stored.
2026-11-22 00:48:38 -04:00
Hector Ventura b3374d073a chore(lambda): bound the warm pool to 128 idle containers by default (#9173) 2026-11-22 00:47:29 -04:00
Hector Ventura c4238de1c1 feat(docker): read Docker streams on virtual threads (#9174)
docker-java read every stream (a log follow, a container wait, an exec's output, the events stream)
on a platform thread of its own, so the threads grew with the containers. Floci now builds its
DockerClients with FlociDockerCmdExecFactory, adapted from docker-java 3.7.1's
DefaultDockerCmdExecFactory, DefaultInvocationBuilder and FramedInputStreamConsumer (Apache License
2.0), whose one change runs each stream on a virtual thread. Closing a stream still interrupts its
thread and closes the response, and the client is still built over the launch bulkhead, the circuit
breaker and the retry layer.

The pool gauge's stream-thread count, which listed threads by name and cannot see virtual ones, now
counts the running stream callbacks.
2026-11-22 00:23:45 -04:00
Vũ Thế Huy a9d0aab496 feat(redshift): register scalar Lambda UDFs with CREATE EXTERNAL FUNCTION (#9172)
CREATE [OR REPLACE] EXTERNAL FUNCTION and DROP FUNCTION are now handled on Redshift clusters.
Each function's Lambda name, IAM role, volatility and batch options are kept in
ExternalFunctionRegistry, and a plpgsql stub of the same signature is created in the backend, so
name clashes, overloads, ownership and OR REPLACE return-type rules come from PostgreSQL. OR REPLACE
replaces only a function the registry made. Calling the function raises 0A000 until the evaluator
lands.

IMMUTABLE, IAM_ROLE default and types outside the documented Lambda UDF list are refused with
0A000, malformed clauses with 42601 and out-of-range options with 22023; the clause defaults and
bounds follow the CREATE EXTERNAL FUNCTION reference. A DROP FUNCTION of a function Floci does not
track is left to PostgreSQL. Both statements fail with 25001 inside a transaction block, and an
unqualified name is created in public.

Part of #7815.
2026-11-22 00:18:55 -04:00
Priamo Germosen 5b4bc0e44e feat(iam): read Bedrock from the generated tables, its routes vendored (#9169)
Bedrock leaves ResourceArnBuilder's own branch and the registry's three resource-policy rules: its
requests are matched on their botocore routes and checked on the resources the request-resources table
reads. regen_rest_routes.py vendors the bedrock, bedrock-agent and bedrock-runtime models, all signed
for the bedrock scope; bedrock-agent's are needed because its PutResourcePolicy carries resourceArn in
its path where bedrock's carries it in its body, a member the two clients locate apart.
regen_iam_request_resources.py reads bedrock instead of leaving it to the builder, so a guardrail
request is checked on the guardrail its path names and a resource-policy request on the ARN it carries.
The generator's reader of an ARN pattern's type words also reads one whose account is optional, so the
tag actions are checked on the guardrail or application inference profile ARN they carry, and
regen_iam_tag_on_create.py reads bedrock, so a create carrying tags also needs bedrock:TagResource.

BedrockStoredResourceArns gives IAM the tags Bedrock holds on a guardrail or an application inference
profile, for aws:ResourceTag, read in place and matched on the whole ARN; a guardrail's untag now
replaces its tag map rather than editing it, so a reader never sees half of one, and both models keep
their tags volatile.
2026-11-22 00:01:33 -04:00
Priamo Germosen cff222a6f1 fix(emr): keep instance fleets' launch and resize specifications, and modify their configs (#9168)
An instance fleet dropped the LaunchSpecifications, ResizeSpecifications
and Context that RunJobFlow and AddInstanceFleet gave it, and
ModifyInstanceFleet changed its target capacities alone, ignoring the
ResizeSpecifications, InstanceTypeConfigs and Context it took.

- A fleet keeps its LaunchSpecifications, ResizeSpecifications and
  Context, and ListInstanceFleets gives them back.
- ModifyInstanceFleet changes the ResizeSpecifications, InstanceTypeConfigs
  and Context it gives. The configs replace the fleet's own, as the
  Management Guide warns that "Not including fields can result in
  overwriting specifications you declared at launch", and must name
  every instance type the fleet has, as "You must include all instance
  types that are part of your instance fleet in the modify request". A
  request that leaves one out is refused with InvalidRequestException.
  Its configs are checked as AddInstanceFleet checks them, and on both
  calls specifications that are not an object, or a Context that is not
  a string, are refused with SerializationException.
- AWS::EMR::Cluster no longer warns that a fleet's launch and resize
  specifications are not stored, and AWS::EMR::InstanceFleetConfig now
  applies a change to InstanceTypeConfigs or ResizeSpecifications in
  place rather than warning. A rollback puts them back, but not an
  instance type the update added, which every later request must
  include, nor resize specifications where the fleet had none, which no
  request can clear. The update is checked as ModifyInstanceFleet checks
  its request, before anything changes, and dropped configs or resize
  specifications are kept.
2026-11-21 20:29:04 -04:00
Priamo Germosen 1c47f1b4ce fix(iam): name one broken password rule the way AWS names it (#9166)
Every write that stores a password composed one sentence listing every
rule the password broke, "Password does not conform to the account
password policy. It must contain: ...", which AWS writes nowhere. AWS
answers one fixed sentence naming one rule, and two of the five are
recorded against a real account on CreateLoginProfile, both 400
PasswordPolicyViolation with a sender fault and neither ending in a
period: 'Password should have a minimum length of 24', the policy's own
minimum substituted, and 'Password should have at least one symbol',
where this package enumerated a symbol set AWS does not put in the
message.

The three character classes left carry no recording and take the same
shape, as does the order a refusal picks a rule in, no recording covering
a password that breaks more than one: the length first, then the
character classes in the order the policy declares them.

The reuse window keeps a sentence of its own. AWS publishes no wording
for a reused password and nothing records one, so that one site is left
as it was and the page says why.
2026-11-21 20:06:39 -04:00
Priamo GermosenandChuck Swanberg 543a236747 feat(cloudformation): provision Verified Permissions policy stores, templates and policies (#9162)
A template declaring AWS::VerifiedPermissions::PolicyStore, PolicyTemplate or Policy failed its stack
as unsupported, although Floci serves the API behind them. VerifiedPermissionsCfnProvisioner now
provisions the three over VerifiedPermissionsService.

A policy store answers Ref with its id and sets Arn, PolicyStoreId and EncryptionState; its schema is
put once the store stands, and deletion protection is turned on only after that, so a store whose
schema the Cedar sidecar refuses is still removed. A template answers Ref with
PolicyStoreId|PolicyTemplateId and a policy with its id alone, as the Template Reference documents
each; a policy's store is found from its id, and Cloud Control names a policy
PolicyId|PolicyStoreId. PolicyStoreId is create-only on both, and a template or a policy is replaced
in the new store when the engine says the update replaces it. A schema, Description,
DeletionProtection or Name the template drops is cleared, what the stack never declared is left as
the service has it, and a create leaves out an optional field the template does not give. An update
of a stack from before this provisioner, which holds the dispatcher's stub, creates the entity.

An in-place change of a store, a template or a static policy is snapshotted first, so a step that
fails is undone and a later resource failing the update puts it back. A store's settings are
written before its schema, its tags are reconciled only over the keys the stack owns, and a change
of its EncryptionSettings is refused, since Verified Permissions sets encryption at create. Cloud
Control's model names a store by PolicyStoreId and a template by PolicyTemplateId.

Co-authored-by: Chuck Swanberg <cswanberg@mad-swan.com>
2026-11-21 19:47:19 -04:00
Priamo Germosen 5a912d5263 fix(emr): keep instance groups' volumes, AMI and shrink policy, and list instances' volumes and public address (#9163)
An instance group dropped the EbsConfiguration and CustomAmiId that
RunJobFlow and AddInstanceGroups gave it, and ModifyInstanceGroups its
ShrinkPolicy, and ListInstances gave no instance an EbsVolumes or a
PublicIpAddress.

- A group keeps its EbsConfiguration and CustomAmiId, and
  ListInstanceGroups gives them back as its EbsBlockDevices, one per
  volume named /dev/sdb on as a fleet's are, its EbsOptimized and its
  CustomAmiId, under the same limit of 25 volumes per instance.
- ModifyInstanceGroups keeps a group's ShrinkPolicy, which
  ListInstanceGroups gives back, and a shrink it comes with follows its
  InstanceResizePolicy: the instances it names to terminate end first,
  then the group's last instances, passing the protected ones. They end
  as EC2InstanceIdsToTerminate ends them, so their ids are not taken
  again, and a later entry for the same group counts from what an
  earlier one leaves. An id to terminate that is not a running instance
  of the group is refused, as EC2InstanceIdsToTerminate refuses it, and
  so is a shrink the protected instances leave short.
- ListInstances gives each instance the PublicIpAddress its
  PublicDnsName names, in 203.0.113.0/24 for a cluster's first 254
  instances and in 100.64.0.0/10 past them, and an EbsVolumes entry for
  each device its group or instance type config gives it, with volume
  ids that differ between clusters. A group's instances' EC2
  descriptions give its CustomAmiId as their image.
- AWS::EMR::Cluster no longer warns that a group's EbsConfiguration and
  CustomAmiId are not stored.
2026-11-21 19:32:36 -04:00
Priamo Germosen 6fe1da3219 fix(iam): word the account property key refusal as AWS does (#9161)
A key that satisfies the published shape and is not Namespace/PropertyName
answers 'Property key must be in format Namespace/PropertyName: <key>',
recorded for a key carrying no separator, with the key as the request sent
it. This package described the rule in a sentence of its own instead.

The rule itself is unchanged, and the layer AWS applies after it is left
out on purpose rather than guessed: an unrecognised namespace is refused
there, and building that check needs the set of namespaces AWS recognises,
which the recordings do not give. The IAM page says so.
2026-11-21 19:25:01 -04:00
Priamo Germosen 5db8d098e7 feat(cloudformation): provision EMR steps, instance groups and instance fleets (#9159)
A template can now create AWS::EMR::Step, AWS::EMR::InstanceGroupConfig
and AWS::EMR::InstanceFleetConfig. None was served, so the stack
reported CREATE_COMPLETE with nothing behind it. EmrCfnProvisioner adds
them through AddJobFlowSteps, AddInstanceGroups and AddInstanceFleet,
reading each as those calls read their requests, from methods EmrHandler
now shares, and against the registry schemas, now in the vendored
property types.

- A step's Ref and Id are its id, and its LogUri and EncryptionKeyArn
  are its StepMonitoringConfiguration. Every property is create-only,
  so a change adds a new step, and a step stays in its cluster's
  history when deleted, as the schema's delete handler calls nothing.
- An instance group's Ref and InstanceGroupId are its id. Its
  InstanceCount and AutoScalingPolicy change in place, and the delete
  removes its policy and shrinks it to nothing, as a group cannot be
  removed from its cluster.
- An instance fleet's Ref and InstanceFleetId are its id. Its target
  capacities change in place through ModifyInstanceFleet, and a change
  to InstanceTypeConfigs or ResizeSpecifications is accepted with a
  warning and not applied, as Floci's ModifyInstanceFleet changes the
  capacities alone. The delete shrinks it to nothing.
- A create-only change adds a new group or fleet; a later resource's
  failure, or a failure of the update itself, puts back what it had
  changed; and a group or fleet whose cluster has ended is left alone.

A group's role and a fleet's type must be TASK, the one value the
template reference allows, and a delete shrinks one once its cluster
is running or waiting, waiting for one still starting, and removes a
policy the group has.
2026-11-21 18:36:49 -04:00
Priamo Germosen 1bcd7620bb fix(sts): answer a disabled federation feature with AWS's sentence (#9158)
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.
2026-11-21 18:11:03 -04:00
Priamo Germosen 4735606fb9 feat(iam): read S3 and S3 Control from the generated tables (#9155)
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.
2026-11-21 17:44:36 -04:00
Priamo Germosen 546770ab69 feat(cloudformation): provision AWS::EMR::Cluster (#9156)
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.
2026-11-21 17:31:03 -04:00
Priamo Germosen 37bf8f90d2 fix(iam): hold a policy document to three rules AWS applies (#9153)
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.
2026-11-21 16:53:54 -04:00
Priamo Germosen 1fe555fbc2 feat(cloudformation): provision EMR security configurations, Studios and session mappings (#9152)
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.
2026-11-21 16:34:12 -04:00
Paulo CostaandPriamo bd58181a41 feat(cloudformation): provision AWS::Events::Connection (#7718)
* 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>
2026-11-21 15:55:42 -04:00
rajp33 c6824948dd fix(iot): authorize MQTT publish, subscribe and receive against session policies (#8660)
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
2026-11-21 15:45:32 -04:00
Tyler Webb 27de6fd46e fix(lambda): enforce function policies when API Gateway invokes a function (#8786)
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
2026-11-21 15:19:56 -04:00
Priamo Germosen 5b9e842cd9 feat(cloudformation): provision AWS::EMRContainers::VirtualCluster (#9150)
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.
2026-11-21 15:03:44 -04:00
Priamo Germosen 84cea7714a feat(iam): read S3's actions from its user guide, by model and by version (#9147)
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.
2026-11-21 14:13:43 -04:00
Priamo Germosen 858bf8d2db feat(cloudformation): provision AWS::EMRServerless::Application (#9148)
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.
2026-11-21 13:59:46 -04:00
jibin-jusdb 4d9c5faf56 fix(elasticache): restore a snapshot by file before the server starts on every path (#7879)
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
2026-11-21 13:19:39 -04:00
Vũ Thế Huy 3d6a05d656 feat(redshift): add external schemas over Amazon MSK (#9091) 2026-11-21 12:40:26 -04:00
Niels Kootstra 7706e5705d fix(eks): label a node group's nodes with its recommended AMI, not its releaseVersion (#9144) 2026-11-21 12:30:16 -04:00
Hector Ventura 6de2461693 feat(docker): limit concurrent container creates and starts (#9049) 2026-11-21 12:24:20 -04:00
Priamo Germosen 4595e8d1ef fix(emr): terminate the instances ModifyInstanceGroups' EC2InstanceIdsToTerminate names (#9142)
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.
2026-11-21 11:45:08 -04:00
Priamo Germosen 8a0112d9c5 fix(emr): honour CancelSteps' StepCancellationOption, SIGTERM by default (#9139)
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".
2026-11-21 10:40:56 -04:00
Allen Sanborn 347e2abd89 fix(rds): store and return VpcSecurityGroupIds, windows and DeletionProtection on DB clusters (#8042)
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.
2026-11-21 10:01:54 -04:00
Kenshin Okinaka 2b9ed9cd55 fix(ses): check the TemplateArn of a v1 templated send as SES does (#9131)
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.
2026-11-21 09:37:57 -04:00
Oleksandr Nikolaichuk 9b19f17fe7 fix(cloudformation): update an EKS cluster's logging, authentication mode and endpoint access in place (#8871)
* 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
2026-11-21 09:37:14 -04:00
Niels Kootstra 896a5cde34 fix(eks): default a node group's releaseVersion to its recommended AMI release (#9134)
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.
2026-11-21 09:35:38 -04:00
Matheus André e725ed6e9a feat(cloudformation): store Tags on AWS::BedrockAgentCore::RuntimeEndpoint (#8510)
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
2026-11-21 09:18:38 -04:00
Priamo Germosen 7ae2339100 fix(emr): apply MERGE reconfigurations, step log locations, the scaling index and ServerUrl (#9129)
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.
2026-11-21 09:11:48 -04:00
Priamo Germosen a87e8e47e0 fix(emr-serverless): queue job runs beyond an application's maxConcurrentRuns (#9124)
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.
2026-11-20 22:43:18 -04:00
Ahmed khaled 3a0abefc7a feat(dynamodb): make the stream record cap configurable and read pages without copying the shard (#9121) 2026-11-20 22:42:51 -04:00
Jonathan Morley 16ca3a5a7d fix(cloudformation): provision AWS::CodeDeploy::Application (#8882) 2026-11-20 22:10:47 -04:00
Priamo Germosen cb5b25821b fix(emr-containers): enforce a virtual cluster's concurrent job limits (#9120)
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.
2026-11-20 21:40:37 -04:00
Ignas d427b31e07 fix(apigatewayv2): store and apply integration ResponseParameters (#9090) 2026-11-20 20:19:51 -04:00
Jeremy Chapeau 7b88a31956 fix(sts): give web identity and SAML trust policies the sts:RoleSessionName key (#8920) 2026-11-20 20:14:00 -04:00
Niels Kootstra 91ed539910 fix(ssm): serve the EKS optimized AMI recommended release_version parameter (#9110)
* fix(ssm): serve the EKS optimized AMI recommended release_version parameter
* fix(ssm): answer ParameterNotFound for a release_version of an unsupported Kubernetes version
2026-11-20 20:12:47 -04:00
Priamo Germosen 89e0242167 fix(emr): list every emr-7.x and emr-spark release, as AWS names and orders them (#9114)
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.
2026-11-20 18:08:32 -04:00