
Querying Data Lake
Executes Athena SQL across default and federated catalogs with workgroup selection and statement safety checks.
- CCM score
- 70 of 100
- skills.sh installs
- 7.3K
- GitHub stars
- 3.5K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers workgroup selection, asset resolution, schema profiling, query building, statement classification, execution, and error recovery
- Supports Glue, S3 Tables, and Redshift catalogs, with table addressing rules for each catalog type
- Enforces confirmation before destructive statements such as
INSERT,DELETE, andDROP, and before cross-catalog joins - Designed for analysts running ad hoc SQL against AWS data lakes through the AWS MCP server or the
aws athenaCLI
Install
$ npx -y skills add aws/agent-toolkit-for-aws --skill querying-data-lake -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Query Data Lake
Execute SQL queries on Amazon Athena across default and federated catalogs (Glue, S3 Tables, Redshift) with workgroup selection, statement classification, and error recovery.
Overview
Executes and manages Athena SQL queries across default and federated catalogs. Selects a workgroup, resolves target assets (delegating fuzzy references to finding-data-lake-assets), classifies statements for safety, and reports cost and data scanned. Use the AWS MCP server for sandboxed execution and audit logging; the same AWS CLI commands work directly when the MCP server is not available.
Constraints for parameter acquisition:
- You MUST accept a single optional argument: SQL text, a named-query name, a workgroup name, a catalog name, or
profile TABLE_NAME - You MUST accept the argument as direct text or a pointer to a file containing SQL
- You MUST ask the user for the target AWS region if not already set
- You MUST confirm the output S3 location before executing any non-trivial query
- You MUST respect the user's decision to abort at any step
Common Tasks
1. Verify Dependencies
Check for required tools and AWS access before running queries.
Details
- Repository
- github.com/aws/agent-toolkit-for-aws
- Categories
- Databases, Data Science & Analytics
- First seen
- May 16, 2026
More from aws/agent-toolkit-for-aws
All 54- Storing And Querying Vectors7.3K
- Connecting Lambda To Api Gateway7.3K
- Aws Sdk Swift Usage7.3K
- Ingesting Into Data Lake7.2K
- Aws Amplify7.2K
- Creating Data Lake Table7.2K
- Finding Data Lake Assets7.2K
- Troubleshooting Application Failures7.2K
- Connecting Lambda To Dynamodb7.1K
- Configuring Vpc Endpoints For Private Aws Service Access7.1K
- Debugging Lambda Timeouts7.1K
- Setting Up Cloudwatch Alarm Notifications7K
- Launching Ec2 Instance With Best Practices7K
- Troubleshooting S3 Files7K
- Creating Api Gateway Stage7K
- Setting Up Ec2 Instance Profiles6.9K
- Signing In To Aws6.9K
- Creating Production Vpc Multi Az6.8K
- Aws Transform6.8K
- Connecting Vpcs With Peering6.8K
- Enabling Lambda Vpc Internet Access6.8K
- Exporting Rds To S36.7K
- Setting Up Cloudtrail Multi Region6.7K
- Creating Amazon Aurora Db Cluster With Instances6.7K
Similar to Querying Data Lake
More Databases
aws-data-analyticsPluginaws/agent-toolkit-for-aws3.5K starsData lake, analytics, search, streaming, ETL, and orchestration workflows with S3 Tables, AWS Glue, Athena, Amazon Redshift, Amazon OpenSearch Service, Amazon M
querying-aws-cloudwatchSkillaws/agent-toolkit-for-aws6.2K installsQuery Iceberg-exported CloudWatch logs with Athena SQL across 43+ AWS vended data sources, with no backfill.
MetabaseMCP servermetabase50.5K starsQuery and explore a Metabase instance's databases, dashboards, and saved questions.
azure-kustoSkillmicrosoft/azure-skills713.1K installsQuery and analyze Azure Data Explorer telemetry with KQL, including batch table discovery across candidate sources.
bigquery-basicsSkillgoogle/skills19.7K installsServerless SQL and Python analytics platform for managing BigQuery datasets, tables, views, and jobs.
basinSkillcloudflare/skills39.8K installsCloudflare Basin workflow guide for streaming events into R2 Iceberg tables, managing catalogs, and querying them.