The empty or blank position check lived in getRestApiPage alone, so GetRestApis refused position= while the other collections paged by pageById served their first page for it. The rule now lives in pageById, so GetRestApis, GetResources, GetDeployments, GetAuthorizers, GetRequestValidators, GetModels, GetDocumentationParts, GetUsagePlans, GetUsagePlanKeys, GetBasePathMappings and GetVpcLinks all answer BadRequestException: Invalid position parameter, and the controller reads an explicitly empty position from the URI for each of them through one requestedPosition helper.
IamActionRegistry kept 70 hand route rules for EKS. The generated REST routes, read from botocore, map every EKS route to the same action, except the access entry routes Floci's controller serves with the principal ARN unencoded: it takes the principal as {principalArn: .+} and a cluster access policy ARN after it with its slash sent as it is or encoded, where the model gives each one segment. Those six operations join ARN_SPANNING_ROUTES, as API Gateway v2's and OAM's tag routes are, so their labels span the slashes.
A DELETE on a principal whose IAM path holds an access-policies segment matches both DeleteAccessEntry's route and DisassociateAccessPolicy's, which outranks it, while EKS's router takes it as a disassociate only when a cluster access policy ARN follows. A request is now matched, of the routes it matches, to the one whose labels the path gives the values the router gave the path parameters of the method it dispatched to, when there is one: the route of the operation that runs. With that, the rules go, and none of EKS's is left.
Renaming an AWS::RDS::DBSubnetGroup created the new group in the stack's
Region but deleted the old one through the region-less overload, which
uses the default Region. A stack outside the default Region left its old
group behind and could delete a same-named group in the default Region.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Cloud Map lists were filtered by region, but every operation that names a namespace, service or operation by id or ARN fetched it by the bare id, so a request signed for one region read, changed or deleted another region's resource. AWS keeps Cloud Map resources per account and region. GetNamespace, DeleteNamespace, CreateService, GetService, DeleteService, the instance operations, GetOperation and the tag operations now answer a record only in the region recorded for it, with the not-found error each operation declares (NamespaceNotFound, ServiceNotFound, OperationNotFound, ResourceNotFoundException). A record stored without a region is answered in every region, as it was.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Wait for the busy container's first stop worker to exit before releasing it. The shutdown deadline can expire while that worker still owns cleanup, so the retry check could run before the failed removal was recorded.
Co-authored-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
S3 answers a bucket only in its own Region. A SigV4 request signed for
another Region now gets 301 PermanentRedirect with the bucket's Region in
x-amz-bucket-region and Bucket and Endpoint in the error, and a HEAD gets
the status and header with no body, which is what the SDKs' redirect
handling follows. ListBuckets, GetBucketLocation and CreateBucket are served
from every Region, and unsigned, presigned and SigV4A requests and buckets in
another partition are served as before. A bucket stored without a Region is
redirected from the default one, where ListBuckets reports it.
floci-duck now signs each bucket's requests for that bucket's Region through
temporary DuckDB secrets that end with the request, so Athena, S3 Select,
Redshift and the CUR reports keep reading and writing buckets outside the
default Region.
floci.services.s3.region-redirect (FLOCI_SERVICES_S3_REGION_REDIRECT,
default true) turns the redirect off.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Each EKS Auto Mode node now has a karpenter.sh/v1 NodeClaim, as Karpenter
keeps one on AWS, so kubectl get nodeclaims and tools that watch claims see
Auto Mode's nodes.
The claim is named after its pool with a five-character suffix, chosen at
launch so no other instance's claim has it and kept in the instance's
karpenter.sh/nodeclaim tag. It is owned by its NodePool, held by the
karpenter.sh/termination finalizer and labelled as its node is. Its spec
carries the pool's requirements, its pods' requests, and expireAfter and
terminationGracePeriod (336h and 24h0m0s when the pool doesn't say). Its
status goes Launched, then Registered, Initialized and Ready once the node
joins.
A claim whose instance is gone loses Karpenter's finalizer and is deleted, and
a missing one is made again without a new launch. Deleting a claim drains and
removes its node and terminates its instance, as deleting a pool does. A
NodePool being deleted launches nothing more. Only claims labelled
app.kubernetes.io/managed-by: eks are touched.
GetTemplateSummary now returns each parameter's AllowedValues under ParameterConstraints, and an empty ParameterConstraints element when the template sets none, as AWS does.
Closes#9510
MySQL authentication can forward a backend verdict before resetting its
socket timeout, so the fixture could close that socket while the driver still
used it. Close the client first, await the authentication and backend
drivers, then release their sockets. Driver failures are captured in
FutureTask results, so they fail the test that owns them.
ProxyTestTask now holds the task result, bounded await and cleanup for both
the MySQL and PostgreSQL protocol fixtures, and ProxyTestTaskTest checks its
failure propagation and virtual thread once.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
IamActionRegistry kept 38 hand route rules for EventBridge Scheduler, EventBridge Pipes and Aurora DSQL. The generated REST routes, read from botocore, map every one of their modeled routes to the same action, so the rules only reached the bare /tags path beyond them. The shared tags controller refuses that path for these three services, as their models give tagging on /tags/{resourceArn} alone, so the rules go.
The tests that expected IAM to check the bare /tags for them now check the route each model gives, and the body-versus-query check of POST /tags moves to FIS, whose generated routes give the bare path the shared controller serves.
A states:startExecution task (and its .sync forms), or an aws-sdk:sfn startExecution or startSyncExecution task, whose StateMachineArn names a state machine in another Region started it with an execution ARN in the parent's Region. AWS documents that "Cross-Region AWS SDK integration and cross-Region AWS resource access aren't available in Step Functions" (Developer Guide, "Accessing cross-account AWS resources in Step Functions"), so the task now fails before anything starts. AWS does not name the error; the task fails with the one it reports for a state machine of an account it cannot reach.
The Region check sits in NestedTaskCredentials.validateTarget, beside the account check, and takes its error name from accessDenied. validateTarget strips .waitForTaskToken before it parses the resource, so every callback form, optimized or AWS SDK, gets the Region check too; the account check still skips callback tasks, as before.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Exercise DescribeDocument after updating a document and reading it back by version in commercial and GovCloud regions. The SDK decodes the creation timestamp of both $LATEST and version 1, and version 1 keeps its original timestamp.
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
The concurrent COPY JOB capacity test polled pg_stat_activity through the transaction holding the conflicting lock, and PostgreSQL keeps one view of the current queries for the whole transaction, so the competing session's lock wait could stay hidden. It now observes from a separate autocommit connection, releases the locking transaction before draining its own executor, and requires the SQLSTATE 54000 rejection; the capacity assertions are unchanged.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
The test stubbed FlociDuckClient.execute a second time after releasing the first query's worker, which could still be calling the mock. Mockito's doAnswer().when() stubbing is not thread safe, so a concurrent call left the stubbing unfinished (UnfinishedStubbing). One answer now blocks the first execution and fails every later one, so nothing is restubbed while a worker is live.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Three background workers ran outside any request scope, so their calls went to the default account and a resource in any other account was never served. Each now runs as the account that owns its resource, in that resource's region.
The alarm evaluator lists the metric alarms of every account with the account that owns each, and evaluates each one as that account in the alarm's region, so its metric, its state change and its SNS or scaling actions are that account's.
A CodeDeploy deployment's state machine thread captures the creating account at submit and runs as it in the deployment's region, so the Lambda alias shift, the ECS task-set calls and the EC2 and SSM lookups act on that account's resources. The in-memory deployments are keyed by account and region, so another account can no longer read them.
The MWAA DAG-sync poller runs each environment's sync as the environment's account in its region, so the DAG prefix and requirements file come from that account's buckets.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
With floci.services.rds.endpoints-in-vpc on, a DB proxy's default endpoint
is served at its own address in the first of its subnets, under the name
RDS gives it, <proxy>.proxy-<identifier>.<region>.rds.<dnsSuffix>, and each
endpoint added to it at its own address in its own subnets, under
<endpoint>.endpoint.proxy-<identifier>. Each serves the engine family's
port, as "all proxies listen on port 5432 for PostgreSQL" and "on port
3306 for MySQL", so two proxies can both serve 5432; a relay forwards to
the proxy's listener, which takes a free port in the proxy range.
DescribeDBProxies and DescribeDBProxyEndpoints report the names, which
Floci's DNS server answers as soon as the proxy or endpoint exists. An IAM
token generated for any of a proxy's endpoints is good at the proxy, and
the proxies' certificate covers the names. A renamed endpoint answers by
its new name. Deleting an endpoint or the proxy removes its names and then
its relays; one Docker does not confirm removed stays tracked, keeping its
port from other databases, until Floci stops or restarts. A restart serves
them again at the addresses they had, and moves them in or out of the VPC
as the setting now says.
RdsEndpointAddresses gains a relay and name API for endpoints that are not
an instance's, with a best-effort discard, and reaches() replaces
namesCluster() for both clusters and proxies.
Closes#6273
An edge-optimized custom domain reports only its CloudFront distribution: the AWS CLI's create-domain-name example 1 (an EDGE domain) returns distributionDomainName and distributionHostedZoneId and no regional field. Floci wrote regionalDomainName and regionalHostedZoneId, and any regional certificate, on every domain. They are now serialized for regional domains only; the stored regional name is kept, because the custom domain filter still routes on it.
The two routing tests that address a domain through its .regional.local host now create a REGIONAL domain. The GetDomainNames assertion now finds the domain under item, and a new case creates an EDGE domain with a regional certificate name and ARN and checks that CreateDomainName, GetDomainName and GetDomainNames leave all four regional fields off. The custom-domain guide no longer says every domain reports a regionalDomainName and both certificate ARNs.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Use the established signal-aware sleeper so discovery assertions do not wait for a 30-second Docker stop grace period. Production behavior and assertions are unchanged.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
AWS's Service Reference lists iam:PassRole for twelve API Gateway
operations, each passing its roles to apigateway.amazonaws.com. Floci
checked none: API Gateway is authorized by HTTP method, the passed-roles
table left the namespace out, and no member naming a role has a name the
table's rule knows (credentials, authorizerCredentials, credentialsArn,
authorizerCredentialsArn). An update names its role as a patch
operation's value, and an import inside its OpenAPI definition.
The roles are now checked for the operation the request's route resolves
to, which the table is keyed by, from three readings. A new vendored
source, tools/aws/sources/apigateway-roles.json, written by its own
script from the API references and developer guide, gives what they
read:
- The members that take a role, by the resource type each describes:
"To specify an IAM role for API Gateway to assume, use the role's
Amazon Resource Name (ARN)". PutIntegration, CreateIntegration,
CreateAuthorizer, CreateApi and UpdateApi read them, REST APIs' and
HTTP APIs' alike.
- A REST API update's patch operation, which names the property it
changes by its path ("the path for this property is /name"): the
value of the one whose path names a role member of the resource the
update returns, so UpdateIntegration reads
patchOperations[path=/credentials].value, UpdateAuthorizer
/authorizerCredentials and UpdateAccount /cloudwatchRoleArn. The
table gains a list step selecting the elements whose field holds a
value.
- An import's OpenAPI definition, JSON or YAML: the
x-amazon-apigateway-integration credentials of each Operation object,
the ANY method's included, and the x-amazon-apigateway-authorizer
authorizerCredentials of each security scheme, OpenAPI 2's and 3's,
where the guide says each extension sits. ImportRestApi and PutRestApi
take the whole body as the definition, ImportApi and ReimportApi a
body member. The definition is read as its service takes
and reads it, through a new PassedRoleLookup hook given the whole body:
API Gateway resolves a REST API definition's ${AWS::Region},
${AWS::AccountId} and ${AWS::Partition} before importing it, so a role
written with them is checked too, and takes an HTTP API's from its
body's body (the REST route's envelope) or Body (the JSON 1.1
handler's), or else the whole body, which the REST route also takes.
A REST JSON model's member is also read by its botocore name where its
wire name differs: Floci serves HTTP APIs over JSON 1.1 too
(AmazonApiGatewayV2.*), whose bodies name members as botocore does
(CredentialsArn, Body), and its handler takes either spelling as the
same member.
apigateway joins the passed-roles namespaces with all twelve operations
read and nothing added to the hand lists.
A v1 error message that quotes request input, such as the template name or the unsupported operation message, could carry U+FFFE, U+FFFF or a surrogate without its pair into the error document. XML 1.0 forbids those, so an XML-parsing client could not read the error at all. They are now spelled out in the same 0x%04x form already used for control characters. That form was observed on SES only for control characters; what SES writes for these characters is not known, so using it here is Floci's choice, made so the error document always parses.
The XML 1.0 forbidden-character test now lives in XmlBuilder.isForbiddenAt, beside escape, and both the SES error messages and RDS log file data call it. SES still spells out every control character, and RDS still keeps tabs and writes U+FFFD. RDS now also replaces a surrogate without its pair, which it used to pass through and the UTF-8 encoder wrote as '?'.
Use the existing bounded TLS readiness helper before traffic assertions.
Retain all initial-health scenarios and request assertions.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
#9531 added SshDockerEndpointTest and SshStdioSocketTest, which name
SshDockerEndpoint and SshStdioSocket, the classes that start ssh. #9596
landed alongside it and has ParallelLocksInventoryTest count a plain class
that names a class starting a child process as one that needs
ParallelLocks.PORTS, so the inventory has failed on main since both merged.
SshStdioSocketTest starts child Java processes itself.
Both take the lock in READ mode, as #9596's classes do: neither releases a
port and binds or dials it later, so they only need to stay apart from the
classes that do.
The WAF association integration test read WAF as soon as DeleteStack returned, while the stack's resources were still being deleted in the background, so it could see the old association or either WebACL. It now waits for the deletion with CfnStackWaits.awaitStackDeleted before checking all three resources, the same way it already waits for the create and the update.
Use a shared task result for all mock-backend failures without changing
their scripts, the two role-default lookup scripts included, and retrieve
each result in the test that started it.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Retrying a failed zero-ETL destination reloaded it through the admin connection without checking the caller, so a role that could not create the database still got it back. The retry now checks the caller's own privileges first: it goes ahead only for a superuser, or a role with CREATEDB that is a member of the database's owner, and otherwise refuses with PostgreSQL's own "permission denied to create database". The database name is quoted with PostgresWire.quoteLiteral. A nightly Docker check runs each condition against a real PostgreSQL 16, and both test classes share one fixture.
A child process holds a copy of every socket the JVM has open until it
execs, so a listener a test has just closed keeps its port bound for that
moment. S3DistCpProgramTest starts python3 while RdsProxyManagerTest
rebinds one port two hundred times, and the rebind failed with "Address
already in use" on main and on open pull requests.
ParallelLocksInventoryTest now counts a plain class that starts a process,
directly or through a src/test or src/main class that does, as one that
needs ParallelLocks.PORTS, and the fifteen classes it finds take it in
READ mode. ParallelLocks and AGENTS.md say why.
GetUsagePlanKeys ignored limit and position and returned every key attached to the plan in one response. It now pages with the same id-ordered pageById helper and pageResponse envelope GetUsagePlans and GetAuthorizers use: 25 keys by default, 500 at most, limit=0 rejected, position on nonterminal pages only, and an unknown position rejected with BadRequestException. GetUsage and the data plane keep the unpaged list.
Closes#9062
AWS::S3::BucketPolicy resolves its PolicyDocument through resolveJsonAttribute before storing it, so a Ref or Fn::Sub that returns the policy as text is stored as written instead of being serialized again into a quoted string. AWS::ECR::Repository's RepositoryPolicyText uses the same resolver in place of its own copy of the unwrap. An SDK test covers a policy written as an object, as a string and through Fn::Sub, checking the stored JSON and the denied read after create and after an unchanged update.
With floci.services.rds.endpoints-in-vpc on, each instance of an Aurora DB
cluster gets its own address in its VPC, as a standalone instance does, and
serves the cluster's port, which the API reference says "is managed by the
cluster". The cluster reports the names the Aurora user guide gives its
endpoints, <cluster>.cluster-<identifier>, <cluster>.cluster-ro-<identifier>
and <endpoint>.cluster-custom-<identifier>, and Floci's DNS server resolves
them to the instances as Aurora points them: the cluster endpoint to the
writer, following a failover; the reader endpoint to another instance, or
the writer when none is served; a custom endpoint to one of the instances it
holds, picked at random, and none once its static members are all deleted.
Answers live five seconds, the TTL of Aurora's DNS zones. A Multi-AZ DB
cluster, whose instances Floci does not create, and an Aurora Serverless v1
cluster, which has none, keep the proxy endpoint.
The names are routed again whenever a cluster's instances, writer or custom
endpoints change, under one lock, and are restored at restart. An IAM token
generated for any of a cluster's names is good at each of its instances, and
the proxies' certificate covers the names. StopDBCluster removes the
instances' relays and StartDBCluster serves them again; a failed instance
create forgets its name and leaves the names as they were; a cluster
restored from a snapshot serves the snapshot's port.
Refs #6273
Step Functions tasks that pass a role now get the iam:PassRole checks a direct request of the same operation gets: ECS RunTask and UpdateService, Scheduler CreateSchedule and UpdateSchedule, the CloudFormation stack and StackSet operations, and EMR createCluster, which takes the passed-role table's RunJobFlow reading, the JobFlowRole instance profile passing its roles to EC2. The role lookups move from IamEnforcementFilter to PassedRoleLookups, shared by the filter and the task checks. DynamoDB tasks offer the condition keys a direct request gets (dynamodb:LeadingKeys, dynamodb:Attributes, dynamodb:Select) from the extraction moved to DynamoDbConditionKeys, a write is checked once per return mode, and optimized getItem and scan tasks return only the projection they were checked for.
AWS's Service Reference lists iam:PassRole for RunJobFlow, passing its
roles to application-autoscaling.amazonaws.com, ec2.amazonaws.com and
elasticmapreduce.amazonaws.com without saying which member's role goes
where, and JobFlowRole names an instance profile rather than a role.
The passed-roles table left the operation unread, so a caller allowed
elasticmapreduce:RunJobFlow could launch a cluster with any service role
and any instance profile.
A new vendored source, tools/aws/sources/emr-roles.json, written by its
own script from the EMR API reference, management guide and AWS CLI
reference, gives each member's role. The guide's page of each role names
its default role ("The default role name is EMR_EC2_DefaultRole"), and
the full access policy it gives users passes each default role to one
service ("iam:PassedToService": "ec2.amazonaws.com*"). The API reference
calls JobFlowRole an instance profile ("Also called instance profile and
Amazon EC2 role"), and the CLI reference's create-cluster examples give
the roles by name (--service-role EMR_DefaultRole). The steps' runtime
role, StepExecutionRoleArn, is not passed: "You can control access to
the runtime role with the condition key elasticmapreduce:ExecutionRoleArn."
The generator reads the source through ROLE_SOURCES, as it reads EKS's,
now taking a documented iam:PassedToService over a trust policy, a member
by name or as an instance profile where the source says so, and leaving
out a member whose role a condition key controls. RunJobFlow moves out of
notRead: ServiceRole to elasticmapreduce.amazonaws.com and AutoScalingRole
to application-autoscaling.amazonaws.com, each by name or ARN, and the
roles of the instance profile JobFlowRole names, by name or ARN, to
ec2.amazonaws.com, found with the instance-profile lookup RunInstances
already uses. A profile IAM does not hold passes no role, as Floci's EMR
already reads JobFlowRole. An instance-profile member is not read for a
call with no request of its own, which has no such lookup.
The instance profile is now found one way everywhere it is used
(IamService.instanceProfileNamed): by its name, or by its own ARN, path
and account included. IAM's passed-role check, EMR's step role and an
EC2 instance's credentials each read it their own way, and EMR kept only
the name after an ARN's last slash. A JobFlowRole ARN of another account
or path then found no role to check but ran the steps as the local
profile's role.
A member's JSON value is now read as the text a handler reads it as, a
number or a Boolean included, as the request resources and condition
keys already read a body's values. The passed-roles reader took strings
alone, while EMR takes "JobFlowRole":123456 as the profile 123456, so a
role named by a number went unchecked.
BatchIsAuthorized and BatchIsAuthorizedWithToken share one requireBatchSize check against MAX_BATCH_REQUESTS = 30, the API reference's "An array of up to 30 requests", in place of an inline copy in each action. Behavior is unchanged. Tests cover 30 requests accepted and 31 refused on both actions, a missing, empty or non-array batch, and the refusal end to end.
PutEvents counts each entry's size as the EventBridge User Guide gives it: 14 bytes for an explicit Time, plus the UTF-8 bytes of Source, DetailType, Detail and every Resources entry. A request whose entries total more than 1 MiB is refused with ValidationException "Total size of the entries in the request is over the limit." before any entry is published.
An EventBridge rule's EventPattern is read through CloudFormationTemplateEngine.resolveJsonAttribute, as the archive provisioner's is, in place of the rule's own resolve, null check and text-or-JSON step. A string pattern still reaches PutRule as written and an object is serialized once. The rule provisioner and AppSync target fixtures call the real conversion on their mocked engines.
A v2 SendEmail or SendBulkEmail naming a stored template was not checked
on that template, so a policy granting or denying ses:SendEmail on one
template did not reach a v2 send with it. The request-resources generator
now reads, from botocore's shapes, the name and ARN members of a structure
named after a resource type inside a request structure
(Content.Template.TemplateName and TemplateArn, DefaultContent.Template
for bulk sends), and the table and its reader accept a field of a
structure inside a structure.
With TLS on, CreateEventSource and DescribeEventSource add *.c01.events-webhook.<region>.<host> to Floci's generated server certificate, so a client that verifies the certificate accepts a source's webhook URL. One wildcard covers every source of a Region. The source is stored under the service lock and the certificate is reissued outside it, as the API Gateway, Cognito and IoT custom domain operations do. A user-provided certificate is not changed. The TLS handshake test helper is shared through TlsTestSupport.
With the new opt-in floci.services.rds.endpoints-in-vpc, a standalone DB
instance gets its own address in the subnet of its Availability Zone, as on
RDS, and serves the Port it was created with, or its engine's default, under
the name RDS gives it: <instance>.<identifier>.<region>.rds.<dnsSuffix>, with
one identifier per account and Region. Floci's DNS server answers the name
with the address, so two instances can both serve 5432.
A relay container at the address forwards each connection to the instance's
auth proxy, so IAM authentication, TLS and the master login are unchanged;
IAM tokens bind to the name and port the proxy binding publishes. The
address follows the instance through create, stop and start, a backend
started on retry, a move to another DB subnet group, a blue/green
switchover, delete, a failed create and a restart, and keeps its subnet and
VPC in use for DeleteSubnet and DeleteVpc.
VpcAddressRelays serves any endpoint this way next to VpcContainerLeases,
which now takes back a preferred address; RdsDnsRecordSource answers the
names, and AwsEndpoints builds them. Clusters and DB proxies keep the proxy
endpoint for now.
Refs #6273
CreateCluster and UpdateClusterConfig take EKS Auto Mode's node role in
computeConfig.nodeRoleArn. AWS's Service Reference lists iam:PassRole
for both operations, with iam:PassedToService ec2.amazonaws.com and
eks.amazonaws.com, but not which member's role goes to which service.
Floci never checked the node role: CreateCluster read only its cluster
role, by hand, and UpdateClusterConfig was left out of the table.
A new vendored source, tools/aws/sources/eks-roles.json, written by its
own script from the EKS API reference and user guide, gives each member's
role and the service its trust policy is for. CreateCluster's roleArn is
the cluster IAM role ("provides permissions for the Kubernetes control
plane"), whose page links from the member and whose trust policy names
eks.amazonaws.com. nodeRoleArn is "the IAM Role EKS will assign to EC2
Managed Instances", whose description names the EKS Auto Mode IAM
reference, whose node IAM role section links the guide's page of that
role, whose trust policy names ec2.amazonaws.com. The generator reads
the source (ROLE_SOURCES) to choose, among the services the Service
Reference names for an operation, the one each member's role is for. It
fails on a vendored role for a service the reference does not name, and
on one no operation reads. --verify checks the source against the live
pages.
So CreateCluster now needs iam:PassRole on roleArn for eks.amazonaws.com
and on computeConfig.nodeRoleArn for ec2.amazonaws.com, and
UpdateClusterConfig on its node role for ec2.amazonaws.com. Both move
into the generated table. So do CreateNodegroup, CreateFargateProfile,
CreateAddon and UpdateAddon, whose roles PassedRoles read by hand, the
same members to eks.amazonaws.com the generator gives from botocore and
the Service Reference. Their hand readers are gone, and Step Functions'
EKS tasks now check them as a direct request does.