Skip to content

runbooks inventory draw-orgΒΆ

Auto-generated from runbooks inventory draw-org --help on 2026-05-21. Source of truth: runbooks PyPI package v1.3.22

Usage: runbooks inventory draw-org [OPTIONS]

  Visualize AWS Organizations structure with multiple output formats.

  Generates organization diagrams showing accounts, OUs, and policies with
  support for Graphviz (PNG), Mermaid, and Diagrams library formats.

  Examples:     # Basic diagram with default profile     runbooks inventory
  draw-org

      # With specific management profile     runbooks inventory draw-org
      --profile $MANAGEMENT_PROFILE

      # Include policies and AWS managed SCPs     runbooks inventory draw-org
      --policy --show-aws-managed

      # Start from specific OU in Mermaid format     runbooks inventory draw-
      org --ou ou-1234567890 --output-format mermaid

      # Diagrams library format with timing     runbooks inventory draw-org
      --output-format diagrams --timing

      # Multi-level verbosity     runbooks inventory draw-org -vv
      # WARNING level     runbooks inventory draw-org -vvv                 #
      INFO level

      # Skip accounts/OUs (large organizations)     runbooks inventory draw-
      org --skip-accounts 123456789012 987654321098

      # Custom output filename     runbooks inventory draw-org --output prod-
      org

Options:
  -p, --profile TEXT              AWS profile name (default: from AWS_PROFILE
                                  env var)
  --policy / --no-policy          Include policies in organization diagram
  --show-aws-managed / --hide-aws-managed
                                  Show AWS managed SCPs (hidden by default)
  --ou, --starting-ou TEXT        Starting organizational unit ID (defaults to
                                  root)
  -f, --format, --output-format [graphviz|mermaid|diagrams]
                                  Diagram format: graphviz (PNG), mermaid
                                  (text), diagrams (Python library).
                                  (-f/--format preferred, --output-format
                                  legacy)
  -v, --verbose                   Increase verbosity: -v (WARNING), -vv
                                  (INFO), -vvv (DEBUG). Default: ERROR level
  -d, --debug                     Enable DEBUG level logging (equivalent to
                                  -vvv)
  --timing                        Show performance metrics
  --skip-accounts TEXT            Exclude AWS account IDs from diagram (space-
                                  separated)
  --skip-ous TEXT                 Exclude organizational unit IDs from diagram
                                  (space-separated)
  -o, --output TEXT               Custom output filename (without extension).
                                  Default: aws_organization
  --help                          Show this message and exit.

ExamplesΒΆ