CloudOps Tools

init

Generate a comprehensive cross-region AWS inventory scan with advanced configuration options.

Usage

cloudops-tools init [options]

Description

The init command performs a full inventory scan across multiple AWS regions. Unlike the basic scan, it supports different scanning modes optimized for various use cases like security auditing or cost analysis.

Options

OptionAliasDescriptionDefault
--account-aAWS account or profile nameAuto-detected
--region-rAWS region(s), comma-separatedAll regions
--limit-regionsLimit scan to specific regions-
--export-format-fExport format (csv, xlsx, json, both, all)csv
--modeScan mode (basic, detailed, security, cost)basic
--services-sComma-separated list of servicesAll services
--skip-globalSkip global servicesfalse
--only-globalScan only global servicesfalse
--debugShow raw error outputfalse

Scan Modes

basic

Standard inventory scan with essential resource information.

detailed

Extended scan with additional metadata and relationships.

security

Security-focused scan emphasizing:

  • Security groups and NACLs
  • IAM policies and roles
  • Encryption settings
  • Public accessibility

cost

Cost-optimization focused scan including:

  • Resource utilization metrics
  • Reserved instance coverage
  • Savings opportunities

Examples

# Full cross-region scan (all regions)
cloudops-tools init

# Security-focused scan with Excel export
cloudops-tools init --mode security --export-format xlsx

# Scan only specific services across regions
cloudops-tools init --services Lambda,DynamoDB,SQS

# Limit to specific regions
cloudops-tools init --limit-regions us-east-1,us-west-2,eu-west-1

# Cost analysis mode
cloudops-tools init --mode cost --export-format xlsx

# Skip global services for faster regional scan
cloudops-tools init --skip-global --region us-east-1

# Scan only global services
cloudops-tools init --only-global

Output

The command generates inventory files in the inventory-output/{account-id}/ directory with the format:

  • inventory-{date}-{time}.csv (or .xlsx, .json)