Add monitoring configuration to emr create-cluster #9892
+99
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: This is a cherry-pick of #9891 to the v2 branch.
Description
Add support for the
--monitoring-configurationparameter to theemr create-clustercommand, enabling users to configure CloudWatch logging for EMR clusters through the CLI.Motivation
This change exposes an existing EMR API feature (
MonitoringConfiguration) through the AWS CLI, allowing users to configure cluster-level CloudWatch logging without needing to use the AWS SDK or Console.Changes
MONITORING_CONFIGURATION_SCHEMAtoargumentschema.pyMONITORING_CONFIGURATIONhelp text tohelptext.py--monitoring-configurationparameter increatecluster.pytest_create_cluster_with_monitoring_configurationTesting
Example Usage