查询 Amazon Redshift 数据
原名:querying-aws-redshift
通过系统表和只读 SQL 查询 Redshift 数据仓库与运行状态。
中文 Skills 技能说明
适合分析取数和性能检查;先确认数据库、Schema、时间范围和脱敏要求,默认只读。AWS 开源技能文本可在中国境内本地使用;实际调用云服务须使用用户自己的合法 AWS 账户和权限,并确认目标服务在 AWS 中国区域或所选区域的可用性、运营主体、网络、备案、费用、数据位置和跨境要求。CEOFans 不提供第三方账号、密钥或网络绕过。执行前读取真实账户、区域、项目和官方资料,输出目标、依据、影响、费用、验证结果与回退方式;没有证据时明确说明未知,不编造配置、数据或成功状态。 代码、数据库、日志、凭据、客户和企业资料按敏感内容处理,只读取任务所需范围,上传或外发前完成授权、脱敏和最小化。
上游能力依据
上游原始适用说明:Enables Redshift system-table (SYS) log publishing to S3 Tables in Apache Iceberg format for both Provisioned clusters and Serverless namespaces, verifies publishing status, and queries the published logs via any Iceberg-compatible engine including Redshift and Athena. Covers system tables such as sysqueryhistory, sysquerytext, sysconnectionlog, sysquerydetail, and syssessionhistory. Applies when turning on S3 Tables log publishing for a cluster or namespace, confirming publishing status and locating the S3 Tables namespace, querying non-realtime data from Redshift system tables off-cluster at scale, or building dashboards for Redshift monitoring and auditing, especially for historical or high-volume system-table data beyond the in-cluster SYS view retention window. Trigger phrases: publish redshift system table log to s3 tables, enable-logging s3 tables, describe redshift logging status, query redshift system tables in athena or redshift, redshift log exports to iceberg.
上游 SKILL.md 主要章节(保留原文标题):
- Overview
- Decision Tree
- Supported Data Sources
- Common Tasks
- 1. Check If Configured
- 2. Enable (if not configured)
- 3. Verify Permissions
- 4. Identify the Target Table
- 5. Query
- Routing: Athena vs Redshift vs Direct SYS Access
使用边界
先确认数据口径、只读或写入权限以及备份方案。查询结果需要说明范围,任何结构或数据变更都应先预览并人工确认。
作者、翻译与许可证
- 原作者
- 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-redshift
适用范围
平台:linux、macos、windows;标签:数据分析、查询 Amazon Redshift 数据、AWS
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。