mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
ModifyCluster, the four Set* setters, and Put and Remove of a cluster's managed scaling, auto-termination and automatic scaling policies all changed a TERMINATED cluster, and AddTags and RemoveTags its tags. AWS documents these for running clusters, but no answer for an ended one is recorded. So they give the one AWS gives AddJobFlowSteps and ModifyInstanceFleet, "A job flow that is shutting down, terminated, or finished may not be modified.", in the code each operation's model points at, as AddInstanceGroups and AddInstanceFleet already did for a TERMINATING cluster: InvalidRequestException with ErrorCode INVALID_JOB_SHUT_DOWN for ModifyCluster, ValidationException for the others, whose models declare no InvalidRequestException. A Set* request naming such a cluster changes none of the clusters it names. AddInstanceGroups and AddInstanceFleet now answer a TERMINATED cluster that way too, in place of "Cluster <id> is terminated.", which no source has. The Management Guide says "you cannot add, edit, or remove tags from a terminated cluster" and names no error. AddTags and RemoveTags refuse an ended cluster with InvalidRequestException "Tags cannot be modified on terminated clusters.", the message a tagging tool matches from AWS.