Skip to main content

@webframp/aws/inventory

v2026.04.14.1

Discover running AWS resources for cost estimation and inventory management.

Authentication

Uses the default AWS credential chain. Requires appropriate IAM permissions for each service being inventoried.

Required IAM Permissions

  • ec2:DescribeInstances
  • rds:DescribeDBInstances
  • dynamodb:ListTables, dynamodb:DescribeTable
  • lambda:ListFunctions
  • s3:ListBuckets

Usage

# Create inventory model
swamp model create @webframp/aws/inventory aws-inventory \
  --global region=us-east-1

# List running EC2 instances
swamp model method run aws-inventory list_ec2

# List RDS databases
swamp model method run aws-inventory list_rds

# Full inventory across all resource types
swamp model method run aws-inventory inventory_all

Supported Resources

  • EC2 - Instances with state, type, tags
  • RDS - Database instances with engine, storage, Multi-AZ
  • DynamoDB - Tables with billing mode, capacity, size
  • Lambda - Functions with runtime, memory, timeout
  • S3 - Buckets (global listing)

Repository

https://github.com/webframp/swamp-extensions

Labels

awsinventorycostfinopscloudinfrastructure

Contents

Install

$ swamp extension pull @webframp/aws/inventory

@webframp/aws/inventoryv2026.03.30.1aws/inventory.ts
list_ec2List running EC2 instances
list_rdsList RDS database instances
list_dynamodbList DynamoDB tables with capacity details
list_lambdaList Lambda functions
list_s3List S3 buckets (global, ignores region)
list_ebsList EBS volumes with attachment status
inventory_allRun full inventory across all supported resource types

Resources

inventory(1h)— Inventory of AWS resources