Modifies the cluster attributes ‘visible-to-all-users’ and ‘termination-protected’.
See ‘aws help’ for descriptions of global parameters.
modify-cluster-attributes
--cluster-id <value>
[--visible-to-all-users | --no-visible-to-all-users]
[--termination-protected | --no-termination-protected]
--cluster-id (string)
A unique string that identifies a cluster. The
create-clustercommand returns this identifier. You can use thelist-clusterscommand to get cluster IDs.
--visible-to-all-users | --no-visible-to-all-users (boolean)
Specifies whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If a user has the proper policy permissions set, they can also manage the cluster.
Visibility is on by default. The
--no-visible-to-all-usersoption is no longer supported. To restrict cluster visibility, use an IAM policy.
--termination-protected | --no-termination-protected (boolean)
Set termination protection on or off
See ‘aws help’ for descriptions of global parameters.
The following command sets the visibility of an EMR cluster with the ID j-301CDNY0J5XM4 to all users:
aws emr modify-cluster-attributes --cluster-id j-301CDNY0J5XM4 --visible-to-all-users