查询 Amazon S3 数据
原名:querying-aws-s3
通过系统表定位和查询 S3 对象元数据与授权范围内的数据。
中文 Skills 技能说明
适合文件盘点和分析前检查;先限定桶、前缀、时间和字段,不输出无关对象或敏感内容。AWS 开源技能文本可在中国境内本地使用;实际调用云服务须使用用户自己的合法 AWS 账户和权限,并确认目标服务在 AWS 中国区域或所选区域的可用性、运营主体、网络、备案、费用、数据位置和跨境要求。CEOFans 不提供第三方账号、密钥或网络绕过。执行前读取真实账户、区域、项目和官方资料,输出目标、依据、影响、费用、验证结果与回退方式;没有证据时明确说明未知,不编造配置、数据或成功状态。 代码、数据库、日志、凭据、客户和企业资料按敏感内容处理,只读取任务所需范围,上传或外发前完成授权、脱敏和最小化。
上游能力依据
上游原始适用说明:Queries S3 object metadata, tracks bucket activity, audits object changes, searches annotations, and analyzes storage metrics using S3 Metadata system tables (journal, inventory, annotation) and S3 Storage Lens tables via Athena SQL. Applies when counting objects, finding recent uploads or deletions, identifying who wrote to a prefix, breaking down storage classes, finding objects by tag, searching annotation content, analyzing storage lens metrics, or enabling S3 Metadata tracking. Prefers system tables over raw S3 APIs (list-objects-v2, head-object) at scale. Trigger phrases: bucket activity, object count, who uploaded, track deletions, storage class breakdown, find by tag, search annotations, storage lens metrics, audit bucket changes.
上游 SKILL.md 主要章节(保留原文标题):
- Overview
- Decision Tree
- Common Tasks
- 1. Check If Configured
- 2. Enable (if not configured)
- 3. Verify Permissions
- 4. Identify the Target Table
- 5. Query
- Routing: Athena vs Direct API
- Troubleshooting
使用边界
先确认数据口径、只读或写入权限以及备份方案。查询结果需要说明范围,任何结构或数据变更都应先预览并人工确认。
作者、翻译与许可证
- 原作者
- Amazon Web Services 与 agent-toolkit-for-aws contributors
- 中文翻译
- CEOFans翻译
- 许可证
- Apache-2.0
- 上游来源
- https://github.com/aws/agent-toolkit-for-aws/tree/62ad0e6cd3dc9950fa8b18ab7c1b783761dc77d2/skills/specialized-skills/system-table-skills/querying-aws-s3
适用范围
平台:linux、macos、windows;标签:数据分析、查询 Amazon S3 数据、AWS
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。