AWS Athena lets the AI run SQL on files you keep in Amazon S3 and read the results once the query finishes.
What you can ask for#
Show the number of requests per day from my access logs table for the last week.
List the databases and tables in my Athena catalog.
Run this saved query and show the first 100 rows.
Connect AWS Athena#
Step 1: Find the connector
Open Tools, then Connectors, and search for AWS Athena. You can also go to Settings, then Connectors, in your dashboard.
Step 2: Select Connect
Select Connect to open the secure form.
Step 3: Enter the details
Fill in AWS access key ID, AWS secret access key, AWS session token (optional), AWS region, Workgroup (optional), Catalog (optional), Database (optional) and Query result location (optional). Hidden fields show as dots; use the eye icon to check what you typed.
Step 4: Save
Select Save connection. Swarmz encrypts the credentials and only decrypts them to call AWS Athena for you. Everyone in your workspace can then use the connection.
Where to find your credentials#
Create an IAM user with only the Athena, Glue Data Catalog and S3 access your project needs, including the bucket that stores query results. Never use a root key. The workgroup, catalog, database and result location are optional defaults.
What the AI can and can't do#
- Discover catalogs, databases and tables.
- Run SQL asynchronously and fetch results when the query is done.
- Apps you publish can call this connector too, not just the builder.
- Changes ask for your approval by default. You can adjust this under Agent permissions on the connection. See What an integration can access.
Troubleshooting#
Setup fails.
Check the region, that the session token has not expired, that you can read the workgroup, and that the result bucket is allowed.
A query is still running.
Athena works in the background. Ask the AI to check the result again.
I want to change the result location.
Edit the connection and enter the new location, for example s3://bucket/query-results/.
General steps for any connector are in Connect an integration. Keys and secrets are covered in Secrets and API keys. To remove it, see Disconnect an integration.
What Swarmz can do with it
Catalog discovery
List catalogs, databases, tables, and table metadata.
Asynchronous SQL
Start, monitor, read, and stop bounded Athena queries.
More in Data & analytics
Still stuck?
A person from Swarmz Support can take a look.