montecarlo discovery (CLI v1)

montecarlo discovery is part of v1 of the Monte Carlo CLI, the Python CLI (montecarlo, installed with pip install montecarlodata). This page covers its subcommands, usage and options.

Display information about resources.

montecarlo discovery [OPTIONS] COMMAND [ARGS]...

montecarlo discovery athena-policy-gen

Generate an IAM policy for Athena. After review, output of this command can be redirected into montecarlo integrations create-role or montecarlo discovery cf-role-gen if you prefer IaC.

montecarlo discovery athena-policy-gen [OPTIONS]

Options

  • --database-name <database_names>: Required Glue/Athena database name to generate a policy from. Enter '*' to give Monte Carlo access to all databases. This option can be passed multiple times for more than one database.
  • --data-bucket-name <bucket_names>: Name of a S3 bucket storing the data for your Glue/Athena tables. If this option is not specified the bucket names are derived (looked up) from the tables in your databases. This option can be passed multiple times for more than one bucket. Enter '*' to give Monte Carlo access to all buckets.
  • --workgroup-name <workgroup_name>: Required Athena workgroup for Monte Carlo to use when performing queries. The "primary" workgroup for the region is used if one is not specified. Default: primary.
  • --resource-aws-region <resource_aws_region>: Override the AWS region where the resource is located. Defaults to the region where the collector is hosted.
  • --resource-aws-profile <resource_aws_profile>: Required AWS profile for the resource.
  • --agent-id <agent_id>: ID for the agent. To disambiguate accounts with multiple agents. This option cannot be used with 'dc-id'.
  • --collector-id <dc_id>: ID for the data collector. To disambiguate accounts with multiple collectors. This option cannot be used with 'agent-id'.

Source: montecarlo discovery athena-policy-gen in the CLI reference

montecarlo discovery cf-role-gen

Generate a CloudFormation template to create a resource access IAM role. After review, this template can be deployed using CloudFormation. The Role ARN and External ID for onboarding can be found in the stack outputs.

montecarlo discovery cf-role-gen [OPTIONS]

Options

  • --policy-file <policy_files>: Required File containing an IAM policy to generate an IAM role from. This option can be passed multiple times for more than one policy.
  • --agent-id <agent_id>: ID for the agent. To disambiguate accounts with multiple agents. This option cannot be used with 'dc-id'.
  • --collector-id <dc_id>: ID for the data collector. To disambiguate accounts with multiple collectors. This option cannot be used with 'agent-id'.

Source: montecarlo discovery cf-role-gen in the CLI reference

montecarlo discovery glue-policy-gen

Generate an IAM policy for Glue. After review, output of this command can be redirected into montecarlo integrations create-role or montecarlo discovery cf-role-gen if you prefer IaC.

montecarlo discovery glue-policy-gen [OPTIONS]

Options

  • --database-name <database_names>: Required Glue/Athena database name to generate a policy from. Enter '*' to give Monte Carlo access to all databases. This option can be passed multiple times for more than one database.
  • --data-bucket-name <bucket_names>: Name of a S3 bucket storing the data for your Glue/Athena tables. If this option is not specified the bucket names are derived (looked up) from the tables in your databases. This option can be passed multiple times for more than one bucket. Enter '*' to give Monte Carlo access to all buckets.
  • --resource-aws-region <resource_aws_region>: Override the AWS region where the resource is located. Defaults to the region where the collector is hosted.
  • --resource-aws-profile <resource_aws_profile>: Required AWS profile for the resource.
  • --agent-id <agent_id>: ID for the agent. To disambiguate accounts with multiple agents. This option cannot be used with 'dc-id'.
  • --collector-id <dc_id>: ID for the data collector. To disambiguate accounts with multiple collectors. This option cannot be used with 'agent-id'.

Source: montecarlo discovery glue-policy-gen in the CLI reference

montecarlo discovery list-emr-clusters

List details about EMR clusters in a region.

montecarlo discovery list-emr-clusters [OPTIONS]

Options

  • --aws-profile <aws_profile>: Required AWS profile.
  • --aws-region <aws_region>: Required AWS region.
  • --only-log-locations: Display only unique log locations
  • --created-after <created_after>: Display clusters created after date (e.g. 2017-07-04T00:01:30)
  • --state <state>: Cluster states Options: active | terminated | failed.
  • --no-grid: Do not display as grid and print as results are available, useful when the cluster list is large
  • --option-file <option_file>: Read configuration from FILE.

Source: montecarlo discovery list-emr-clusters in the CLI reference

montecarlo discovery msk-policy-gen

Generate an IAM policy for MSK. After review, output of this command can be redirected into montecarlo integrations create-role or montecarlo discovery cf-role-gen if you prefer IaC.

montecarlo discovery msk-policy-gen [OPTIONS]

Options

  • --resource-aws-region <resource_aws_region>: Override the AWS region where the resource is located. Defaults to the region where the collector is hosted.
  • --resource-aws-profile <resource_aws_profile>: Required AWS profile for the resource.
  • --agent-id <agent_id>: ID for the agent. To disambiguate accounts with multiple agents. This option cannot be used with 'dc-id'.
  • --collector-id <dc_id>: ID for the data collector. To disambiguate accounts with multiple collectors. This option cannot be used with 'agent-id'.

Source: montecarlo discovery msk-policy-gen in the CLI reference

montecarlo discovery network-recommender

Alpha network recommender. Attempts to analyze and makes recommendations on how to connect a resource with the Data Collector.

montecarlo discovery network-recommender [OPTIONS]

Options

  • --resource-identifier <resource_identifier>: Required Identifier for the AWS resource you want to connect the Collector with (e.g. Redshift cluster ID).
  • --resource-type <resource_type>: Required Type of AWS resource. Options: redshift.
  • --collector-aws-profile <collector_aws_profile>: Required AWS profile for the Collector.
  • --resource-aws-region <resource_aws_region>: Override the AWS region where the resource is located. Defaults to the region where the collector is hosted.
  • --resource-aws-profile <resource_aws_profile>: Required AWS profile for the resource.
  • --agent-id <agent_id>: ID for the agent. To disambiguate accounts with multiple agents. This option cannot be used with 'dc-id'.
  • --collector-id <dc_id>: ID for the data collector. To disambiguate accounts with multiple collectors. This option cannot be used with 'agent-id'.
  • --option-file <option_file>: Read configuration from FILE.

Source: montecarlo discovery network-recommender in the CLI reference

Source: montecarlo discovery in the CLI reference

This page is generated from the CLI's help text on each release. Changes made in ReadMe are overwritten.


Did this page help you?