Skip to content
aws avatar

Querying Aws S3

Queries S3 object metadata, audits bucket changes, and analyzes storage metrics via Athena SQL.

CCM score
77 of 100
skills.sh installs
6.5K
GitHub stars
3.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers object counts, recent uploads and deletions, writer audit trails, storage class breakdowns, tag lookups, annotation search, and Storage Lens metrics
  • Uses S3 Metadata journal, inventory, and annotation tables plus Storage Lens tables, which are read-only and queried through Athena
  • Requires confirming the Athena workgroup and SSE-KMS output encryption before any query runs
  • Designed for large buckets where list-objects-v2 and head-object calls are too slow or cannot identify requesters

Install

$ npx -y skills add aws/agent-toolkit-for-aws --skill querying-aws-s3 -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Query AWS S3 System Tables

Overview

Works best with the AWS MCP server for sandboxed execution and audit logging. All commands below use the AWS CLI and work in any environment with configured AWS credentials. Use IAM roles or temporary credentials; avoid long-lived access keys.

Amazon S3 Metadata provides continuously-updated Apache Iceberg tables that capture object-level metadata for general-purpose buckets. S3 Storage Lens exports aggregated storage and activity metrics as Iceberg tables. Both are read-only, stored in the AWS-managed aws-s3 table bucket, and queryable via Amazon Athena.

System tables are preferred over raw S3 APIs (list-objects-v2, head-object) because:

Details

Repository
github.com/aws/agent-toolkit-for-aws
Categories
Databases, DevOps & Cloud
First seen
Jul 14, 2026

Questions

What does the querying-aws-s3 skill do?

It queries S3 object metadata, tracks bucket activity, audits object changes, searches annotations and analyzes storage metrics using S3 Metadata system tables and S3 Storage Lens tables through Athena SQL. It prefers these system tables over raw S3 APIs such as list-objects-v2 when working at scale.

How do I install the querying-aws-s3 skill?

Run npx -y skills add aws/agent-toolkit-for-aws --skill querying-aws-s3 -y in your project. Once installed, the agent can count objects, find recent uploads or deletions, and identify who wrote to a prefix.

Where does querying-aws-s3 rank among Databases skills?

On the Databases category page it ranks in the top 100, alongside skills such as supabase-postgres-best-practices and prisma-client-api. It stands out for its focus on S3 bucket audit and storage analysis through S3 Metadata and Storage Lens tables.

What do I need to use querying-aws-s3?

You need configured AWS credentials, preferably IAM roles or temporary credentials, and Athena access. S3 Metadata must be enabled on the target bucket, and the S3 Tables federated catalog must be registered in Glue.

More from aws/agent-toolkit-for-aws

All 54

Similar to Querying Aws S3

More Databases