Skip to content

runbooks inventory list-org-policiesΒΆ

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

Usage: runbooks inventory list-org-policies [OPTIONS]

  List AWS Organizations policies (SCP, Tag, Backup, AI Opt-Out).

  When --policy-type=ALL (default), writes 4 files:   scp-policies.json, tag-
  policies.json, backup-policies.json, chatbot-policies.json

  'chatbot-policies.json' corresponds to AISERVICES_OPT_OUT_POLICY (HITL
  naming convention).

  Exit codes: 0=success, 1=AWS auth/permission error, 2=unexpected error.

  Examples:     runbooks inventory list-org-policies --profile
  $AWS_MANAGEMENT_PROFILE     runbooks inventory list-org-policies --profile
  $AWS_MANAGEMENT_PROFILE \         --policy-type SERVICE_CONTROL_POLICY
  --json     runbooks inventory list-org-policies --profile
  $AWS_MANAGEMENT_PROFILE \         --output-dir
  tenants/b2b-energy/raw/organizations/

Options:
  --profile TEXT                  Management account profile (defaults to
                                  $AWS_MANAGEMENT_PROFILE).
  --region TEXT                   AWS region for client (Organizations is
                                  global).
  --policy-type [ALL|SERVICE_CONTROL_POLICY|TAG_POLICY|BACKUP_POLICY|AISERVICES_OPT_OUT_POLICY]
                                  Policy type to fetch (default: ALL β€” writes
                                  4 separate JSON files).
  --json                          Print results as JSON to stdout.
  --output-dir DIRECTORY          Write policy JSON files to this directory (4
                                  files when --policy-type=ALL).
  --help                          Show this message and exit.

ExamplesΒΆ