RDS accepted a cluster's CopyTagsToSnapshot and CloudWatch log exports and an Aurora member's PromotionTier but returned none of them, so Terraform planned changes right after a successful apply. CreateDBCluster and ModifyDBCluster now keep CopyTagsToSnapshot, an explicit false included, and the enabled log exports, with a modify applying CloudwatchLogsExportConfiguration as enable and disable deltas and leaving omitted fields alone. PromotionTier is kept from CreateDBInstance and ModifyDBInstance, defaults to 1 and is refused outside 0 to 15 before anything changes, and both the instance and the cluster member list report it. The new fields persist, and state saved before them loads with the defaults.
Closes#8418
LazyMqttTestProfile only moved the broker to port 18838, off the shipped 1883
a developer's running Floci may hold; the test config already leaves
auto-start off. Both classes stop the broker before and after each test, so
they need no application of their own, and no class on
ServicesOffSettingsProfile reaches the broker or calls IoT. The port becomes
ServicesOffSettingsProfile.MQTT_PORT.
The generated request resources give EMR's session type the
aws:ResourceTag/ and elasticmapreduce:ResourceTag/ keys, but
EmrService.storedTags answered clusters, Studios and notebook executions
and nothing for a session's ARN, so a condition on a session's tags saw
none. It now reads the session stored under the id the ARN ends in, in
the account the ARN names, in place, matched on the whole ARN, giving
the tags it started with.
An instance profile holds one role and both halves of that were wrong.
Adding a second answered prose where AWS names the quota that fired,
'Cannot exceed quota for InstanceSessionsPerInstanceProfile: 1', which is
the form this package already writes for nine other quotas. Removing a
role the profile never held removed nothing and answered 200 where AWS
answers 404 NoSuchEntity naming the role and the profile.
The tolerance the remove path was written for is kept and pinned: a role
deleted while the profile still lists it stays removable, which the
profile's own list decides. Whether the pairing is there and the removal
of it are one decision, taken on the monitor the attach path already
held, so a concurrent attach cannot land between them.
Both CloudFormation callers remove roles they read from the profile's
list, and a caller outside the stack can detach one in between, so each
tolerates a pairing that is already gone rather than leaving a stack
delete or a reconcile part way through. A profile that has itself gone is
a different case and still propagates, so the delete ends where it always
did.
EksKubeletRegistrationIntegrationTest's profile only named the kubelet image
catalog. The catalog replaces EC2's built-in one, so it can only share an
application with classes that launch no instance and look up no image, which
holds for the four classes on IamEnforcedServiceSettingsProfile. The kubelet
class's one request through the HTTP layer signs with a 12-digit account id
as the access key, which IAM enforcement passes through, and it creates its
cluster through the service directly.
The generated request resources give EMR on EKS's virtualCluster,
jobRun, managedEndpoint, jobTemplate and securityConfiguration types the
aws:ResourceTag/ key, but no service answered the emr-containers
namespace's stored tags, so a condition on their tags saw none.
EmrContainersService now answers it: storedTags reads the resource
stored under its ARN in the store its kind names, in the request's
account, where the handlers read, in place, and matches the ARN it
records. Every write already stores a new copy, so no lock change.
Both classes ran on a profile of their own for real ECS containers, as
ScopedServiceSettingsProfile already does for the image pull class, with the
startup sweep off. The Linux parameters class's two switches, /dev/null as
the one host path a device may take and privileged containers allowed, move
there: only a task definition that asks for a device or privilege reaches
them, and only that class asks. Their tasks run in bridge mode, which
security-group enforcement never protects, and the pull on every launch the
image pull class needs runs their busybox tasks the same way, falling back to
the cached image when a pull fails.
Dropping the essential-exit class's own namespace would leave its containers
labelled by the port alone, so the profile now names its containers in this
run's sidecar namespace, which also covers the image pull class.
The member's pattern admits anything word-shaped, so a value like
amazon-s3 satisfied everything the model declares and was answered 200
with an empty policy list, telling a caller the identity reaches nothing
rather than that the question was wrong.
Both operations that take a namespace hold it to the vendored catalog now,
through AwsServiceNamespaces.isPublished so nothing keeps a second list,
and each answers the sentence recorded for it: the list operation names
the rejected values inside AWS's own brackets, and the entity reader
carries AWS's own misspelling of namepace.
ServiceNamespaces is vendored for that to hold. The generator held the
whole member back because the operation answered an empty list with a
sentence of its own, and the cost was that no value in the list was read
at all: one breaking the published pattern reached the catalog check and
was answered InvalidInput where AWS answers ValidationError. The member
is read now, each value held to serviceNamespaceType and the list to its
bounds of 1 to 200, which also retires two answers that were this
package's own: an absent list is the required member the model declares,
and a list over 200 is the model's bound rather than a check beside it.
A namespace the job itself reports stays readable on
GetServiceLastAccessedDetailsWithEntities whether the catalog publishes it
or not, so the job is read first. The catalog is vendored, and a policy
may grant a service published after it: the report keeps the namespace
that policy names, so refusing it there would be this package disagreeing
with itself. Nothing else is exempt, and the list operation, which takes
namespaces rather than reporting them, holds every value to the catalog.
The generated request resources give EMR Serverless's application,
jobRun and session types the aws:ResourceTag/ key, but no service
answered the emr-serverless namespace's stored tags, so a condition on
their tags saw none. EmrServerlessStoredResourceArns now answers it for
the three services that hold them: storedTags reads the application, job
run or session by its id, in the request's account, where the tag
handlers read, in place, and matches it on its application and on the
whole ARN; a deleted application's resources name nothing. The tags
fields are now volatile.
Eight profiles each carried a switch only their own class reads. Four go into
ServicesOffSettingsProfile, which keeps the ten services ServiceEnablement
switches off, for classes that call none of them: the delegation partner
registration, the S3 restore delay and EC2 vCPU admission join it. The other
four go into ScopedServiceSettingsProfile, whose classes call DynamoDB, ECS and
FIS: ECS image pulls on real containers, the extra CORS settings, strict
partitions and the fixed mock public address. That profile also turns the ECS
startup sweep off, so an application a class without containers starts never
sweeps the Docker daemon. Each profile's Javadoc lists who relies on each
setting and why it never reaches the other classes.
RdsIamEnforcementProfile becomes IamEnforcedServiceSettingsProfile and takes
the classes of DsqlEnforcementProfile, of the nested IamEnforcementProfile of
LambdaExecutionRoleDockerIntegrationTest and of the
GlobalNamespaceIamOnlyProfile of
S3PresignedPostBucketPolicyAccountContextIntegrationTest. Each adds one service
setting, and no other class there calls the service it changes. The Lambda
class's fixed port 4587 becomes a free port chosen when the profile loads.
PartnerPermissionBoundaryEnforcementProfile folds into IamEnforcementProfile:
the partner registration only reaches a delegation request filed as the
partner account, which no other class there files. IamEnforcementProfile's
joining rule now asks that settings be inert both ways, as the other shared
profiles do.
The two EKS Pod Identity Docker classes each declared a profile named Profile
with the same webhook, TLS and port settings. Only the agent class's turned EKS
mocking off, which never reaches the other class: it stores its cluster and
add-on through the services directly. They now share EksPodIdentityProfile.
AppSyncHttpDataSourceSidecarIntegrationTest and
EventBridgeAppSyncSidecarIntegrationTest each declared an EnforcedSidecars
profile, the sidecar namespace and port with IAM enforcement, the first with
signature validation as well. AwsIamHttpDataSourceIntegrationTest declared the
same two switches without the sidecar settings, which never reach it: it starts
no container and sends to the port the application listens on. The three now
share SidecarIamEnforcementProfile. The EventBridge class creates and deletes
its stack through a signed CloudFormation client rather than a hand-written
Authorization header, which signature validation would refuse.
Its cleanup now holds the SDK clients in a try-with-resources, so each closes
whatever the stack and IAM cleanup throws.
Ec2QuotaDefaultOffIntegrationTest's profile set standard-on-demand-vcpus to 5,
the value the test config already has, and the profile of
CloudWatchLogsMetricFilterRetryIntegrationTest set nothing at all: it kept the
class off a shared application because the class resets all state over HTTP,
which many classes on the default application and on shared profiles already
do. Both classes now run on the default application, so two
applications fewer are built.
Every MFA refusal here was this package's own sentence. IAM answers
EnableMFADevice and ResyncMFADevice with 'Authentication code for device
is not valid.' and a duplicate virtual device with 'MFA device already
exists.', both recorded and both wholly fixed text.
STS answers two sentences rather than one, by which half of the claim
failed: a serial no device of the caller's answers to, or a code that
device did not produce. Both are 403 AccessDenied, so the sentence is the
only thing that tells a caller which half to look at, and the whitespace
inside them is AWS's own. RequestMfaClaim carries the reason now, so the
seam both session operations share can word them apart.
* fix(ec2): settle interrupted lifecycle states and prune terminated instances
* fix(ec2): address review findings on lifecycle recovery and pruning
* test(ec2): use Awaitility in the EC2 lifecycle tests
As the next step of #6606, an AWS::EKS::Cluster is now created with its ResourcesVpcConfig, Logging and AccessConfig, a replacement included, and ClusterSecurityGroupId resolves through Fn::GetAtt. A template naming a subnet that does not exist fails the stack, as on AWS, and an EnabledTypes entry with no Type fails the resource. An in-place change to the three is logged and not applied until Floci has UpdateClusterConfig. CreateCluster now also refuses subnets from two VPCs, a PublicAccessCidrs entry that is not a CIDR, and an IPv6 block on an IPv4 cluster, and runs every check before it creates the cluster security group, so a refused request leaves no group behind for a stack's VPC rollback.
A Scan, and a PartiQL statement read as a scan, is now charged for each partition it reads, each at its own 4 KB blocks and at least one even when empty. An on-demand table and its indexes have 4 partitions, so a small one's scan costs 2 units, or 4 with ConsistentRead, where Floci charged 0.5; a provisioned table keeps one. An item's partition comes from the key hash of #8798, each partition holding a quarter of its range. The page that ends a scan also charges each empty partition, and the one it resumed in when it read none. An ordered PartiQL statement charges each read on its own; a parallel scan keeps its single read.
The generated request resources give Global Accelerator's accelerator,
listener and endpointgroup types the aws:ResourceTag/ key, but no
service answered the globalaccelerator namespace's stored tags, so a
condition on their tags saw none. GlobalAcceleratorService now answers
it: it finds the resource under the ARN itself, in the request's
account, in place, as the tag handlers do, and reads the tags stored
under that ARN. TagResource and UntagResource now run one at a time, so
two tag calls never lose one's tags.
`make aws-data-check` failed on a clean main whenever local/aws was present, because the iam-dataset checkout had moved past the vendored managed-policy catalog. The catalog is regenerated from iam-dataset ee63e16 (1,594 policies): 8 added and 44 moved to a newer default version. The dataset now marks AWSIoTEventsFullAccess and AWSIoTEventsReadOnlyAccess deprecated; Floci already served both and AWS keeps a deprecated policy working for the identities it is attached to, so they join AWSLambdaFullAccess in RETAINED and stay unchanged. A failing --check now also prints the dataset commit, when the dataset is a git checkout of its own, and the policies a fresh generation adds, removes and changes, path-only changes included.
EcsBootReconcilerIntegrationTest and EksBootRestoreIntegrationTest each took a
Quarkus profile of their own, an application no other class had sent an ECS or
EKS request to, only to see that EcsService and EksService get created at boot.
EmulatorLifecycleTest already checks that onStart restores ECS and that
onHttpStart restores EKS once the port listens; what the two classes added is
that the container fires those observers at boot. One unit test now checks that
wiring directly (onStart observes StartupEvent, onHttpStart observes
HttpServerStart, on an @ApplicationScoped bean), and the two classes and their
profiles go.
IAM answers two sentences for a managed policy ARN it cannot resolve and
they are not interchangeable: the ARN names nothing, or it names nothing
the call could attach. One sentence served every operation here, and the
three detach paths added a clause naming the user, group or role that AWS
never emits.
PolicyNotFound sites the two per operation, from the recordings: GetPolicy,
TagPolicy and the detach paths answer the plain sentence, while the attach
family, ListEntitiesForPolicy and the version operations carry the
attachability clause, with GetPolicyVersion naming the version inside it.
The operations no recording covers read with their own family, documented
on the IAM page.
The generated request resources give DataSync's agent, location and task
types the aws:ResourceTag/ key, but no service answered the datasync
namespace's stored tags, so a condition on their tags saw none.
DataSyncService now answers it: storedTags reads the resource stored
under the ARN itself, in the request's account, in place, as the tag
handlers find it. TagResource and UntagResource changed the tag map in
place with no lock; they now give the resource a new map one call at a
time, and the tags fields are volatile.
The generated request resources give CodePipeline's pipeline, webhook
and actiontype types the aws:ResourceTag/ key, but no service answered
the codepipeline namespace's stored tags, so a condition on their tags
saw none. CodePipelineService now answers it, in the request's account
and in place: a pipeline under its name and a webhook under its name,
each matched on the ARN it recorded, and a custom action type under the
key its ARN gives, as the tag handlers find it. A stage or an action ARN
reads nothing. Tag writes already replace the map under the resource's
lock; the tags fields are now volatile.
The generated request resources give AWS FIS's experiment-template,
experiment and action types the aws:ResourceTag/ key, but no service
answered the fis namespace's stored tags, so a condition on their tags
saw none. FisService now answers it: storedTags reads the template,
experiment or action tags stored under the Region the ARN names and its
id, in the request's account, where the tag handlers read, in place; a
template or an experiment is matched on the whole ARN it records, an
action on the ARN built for it. Tag calls already run one at a time and
store a new record.
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
ServiceQuotasAppliedValueIntegrationTest's nested profile sets the applied
standard On-Demand vCPU quota, which only Service Quotas reports and EC2 only
enforces with enforce-vcpu-quotas on, so it now shares
IndependentServiceSettingsProfile, whose rule is one class per service setting.
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
EcsServiceDiscoveryDockerIntegrationTest's nested profile (ECS unmocked, security
groups off), also used by EcsLeftoverContainersDockerIntegrationTest, now shares
ValidateSignaturesProfile: the ECS classes drive ECS through its injected services,
so signature validation never sees their requests, and no signature class starts
an ECS task or a container security groups would govern.
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
The profiles nested in EcsBackgroundTaskStopIntegrationTest (ECS in Docker mode
with no boot sweep, also used by EcsBackgroundTaskLaunchIntegrationTest),
KinesisStatusWindowIntegrationTest (minute-long status delays) and
RdsTemplateDatabaseRestoreIntegrationTest (the PostGIS default image) now share
CloudFormationSettingsProfile: each setting is read by one service no other class
here calls, and none names a container namespace.
The generated request resources give Budgets' budget and budgetAction
types the aws:ResourceTag/ key, but no service answered the budgets
namespace's stored tags, so a condition on a budget's or an action's
tags saw none. BudgetsService now answers it: a budget records no ARN,
so storedTags takes the ARN only when it is the one the budget's account
and name give in the request's partition, an action's adding its id,
then reads the record under the key the handlers read, in the request's
account, in place. Tag calls already run one at a time and give the
record a new tag list; the tag fields are now volatile.
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
UnknownServiceScopeGuardDisabledIntegrationTest's nested profile turns the
unknown-service-scope guard off, which only changes the answer to a request
signed for a scope the catalog does not list; no class on RdsMockProfile sends
one, so it now shares that application. RdsMockProfile's Javadoc also states the
joining rule the membership follows, which it got wrong before: every setting
there is one a class relies on or one that never reaches its requests.
With runner-mode docker, GetPersistentAppUIPresignedURL now opens the
persistent application UI's interface for real, SHS the Spark History
Server, YTS the YARN timeline server and TEZ the Tez UI, on a host of
its own as an on-cluster UI does: while the cluster runs, its primary
node's; once it has ended, as "You can access application history and
relevant log files for active and terminated clusters", its kept
history's, for the 30 days for which "The logs are available ... after
the application ends".
The primary node of a cluster that runs either history interface mounts
a volume of its own, which holds the timeline server's store (its
entities kept 30 days rather than Hadoop's 7), and into which, as the
cluster's storage goes, or as a reset or a shutdown removes a node
still running, its Spark applications' event logs are copied out of its
HDFS; the cluster's other storage goes as before, though a copy that
fails keeps it, the event logs in it, for a later try or a restart to
remove. The URL is not
PresignedURLReady while the cluster is ending or its storage is going.
Then a container of the image the cluster ran serves it, on a network
of its own that no step's container is on, started by the first link,
the URL not PresignedURLReady until it answers, and stopped once no
link to it is valid, a later link starting it again; with no
ResourceManager there, the Tez UI's asks for one go to the timeline
server. A kept history goes once its 30 days have passed, whether or
not a link asked for it. A restart keeps the histories of the clusters
that ended within 30 days, a reset or a shutdown removes the
containers, and a reset every history. Elsewhere, the link still opens
Floci's own page.
EmrAppUiNightlyIntegrationTest runs it for real: a persistent UI opens
the cluster's Spark History Server while it runs, and, once it has
ended and its storage has gone, its kept history: the Spark
application, the Hive query's Tez DAG and the Tez UI's page.
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
The profiles nested in Ec2MockPublicAddressIntegrationTest (documentation public
addresses) and GlobalCorsFilterAliasIntegrationTest (the EXTRA_CORS_ALLOWED_ORIGINS
alias) now share DynamoDbPartitionedWalStorageProfile: the address range only
reaches EC2 instances, the origin only requests that send it, and DynamoDB storage
only DynamoDB requests, which no other class here sends.
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
The profiles nested in CloudFormationEcsLinuxParametersIntegrationTest (/dev/fuse
as an ECS host volume root) and IamStsSharedEnablementIntegrationTest (IAM off)
now share PerServicePersistentStorageProfile. No other class here registers an
ECS task definition or calls IAM or STS, and the persistent classes call neither.
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
ContainerDataPlaneProfile, DynamoDbPartitionedStorageProfile and the profiles
nested in CloudFrontDisabledServingTest and SageMakerGpuDockerIntegrationTest now
share CloudFormationSettingsProfile: each setting is read by one service that no
other class in the group calls, and no profile here names a container namespace,
which an EMR cluster's node names need to stay short. The persistent path is the
one setting every class sees, and the Javadoc says what lands under it.
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
RdsAdvertisePortProfile, LambdaDurableScriptedProfile and the profiles nested in
BedrockProxyTimeoutIntegrationTest, EmrTimedLifecycleIntegrationTest and
IotFleetIndexingConnectivityIntegrationTest now share S3EnforceAuthProfile: each
setting is read by one service that no other class in the group calls. The
DynamoDB Local class stays apart: its backend refuses to start without an
endpoint, so an application it shared would fail to boot for every other class.
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
ExtraCorsOriginProfile, LambdaCodeSourcesProfile and the profiles nested in
Ec2CapturedImageReclaimIntegrationTest, Ec2RestoreEveryAccountIntegrationTest
and SqsAwsEndpointStrategyIntegrationTest now share a new ContainerBackedEc2Profile.
Ec2RestoreEveryAccount's profile was the same as Ec2CapturedImageReclaim's, since
security groups are enforced by test default, and the CORS, Lambda and SQS settings
each reach only requests no other class here sends.
Quarkus builds one application per distinct test profile at discovery and keeps
each for the rest of the surefire JVM, so every profile a shard holds costs heap.
DocDbMockProfile and the profiles nested in HttpDataSourceInvokerIntegrationTest
and LogsUnknownRegionAuthorizationIntegrationTest now share IamEnforcementProfile.
No other class here calls DocumentDB or sends a region no partition publishes,
and the DocumentDB classes sign every request as the test root stand-in without a
role, so IAM enforcement passes them. RdsIamEnforcementProfile starts from the new
enforcementOverrides(), so its application keeps the settings it had.
The generated request resources give CloudTrail's trail type the
aws:ResourceTag/ key, but no service answered the cloudtrail namespace's
stored tags, so a condition on a trail's tags saw none.
CloudTrailService now answers it: storedTags reads the trail stored
under its home Region, which its ARN names, and its name, in the
request's account, where the tag handlers read, in place, and matched on
the whole ARN. A tag with no value, which AddTags allows, reads as the
empty string. A trail is stored whole and its tags never change in
place, so no lock change.
On a cgroup v2 host, k3s moves the root cgroup's processes into /init
and then enables the cgroup controllers, which the kernel allows only
while the root cgroup is empty, and k3s does not retry. Floci executed
in the container right after starting it, and an exec landing in
between made kubelet exit with "cgroup ["kubepods"] has some missing
controllers", so the cluster never became ACTIVE.
k3s serves its API only after that step, so a started container now
waits for its API to answer before anything is executed in it:
- The guest setup that ran right after start (the link-local metadata
endpoint, the Pod Identity forward, the VPC routes, the audit log
follower and the node registration listeners, of which a volume
restore makes a device node in the container) is registered before
the container starts and runs once isReady sees the API answer, on a
virtual thread of its own, so neither the CreateCluster request nor
the readiness poller waits on it. A cluster is ready only once its
node is set up. This covers create, restore, an adopted container
and a node capacity swap, all of which the poller checks.
- Node group user data waits for that setup, following a node replaced
meanwhile, since it executes in the container and may read the
metadata endpoint. If the API does not answer within 10 minutes, the
user data fails the node group.
- A route table update, an EC2 instance joining and an
eks-pod-identity-agent add-on change before the API answers leave the
node to its setup and to finalizeCluster, which now registers each
joined node on its own and leaves one that fails to be joined again.
- A delete waits for a setup already running, so it releases the log
follower that setup attached. The control plane log stream, read
through Docker's log API, is still attached at start.
Closes#5389
* feat(paymentcryptography): the Multi-Party Approval team of an operation
* docs(paymentcryptography): what the Multi-Party Approval does not make
* docs(paymentcryptography): the action table in the order the handler names
* style(paymentcryptography): the multi-region work comes with the branch
* fix(paymentcryptography): the tests of the team share the operation they name
* fix(paymentcryptography): the removal does not change what a lookup holds