One of Wiv's most powerful features is the ability to enrich data from AWS APIs and billing information, including Cost Explorer, and direct queries to the Cost and Usage Report (CUR). The Athena Query step simplifies this process, making complex financial data analysis accessible and efficient.
Why Use the Athena Query Step?
Typically, querying Athena for CUR data involves multiple steps:
Running the query and capturing the query ID
Checking when the query is complete
Reading the query results from S3
Displaying the data
Wiv's Athena Query step wraps all these steps into one, streamlining your workflow and saving you time.
Key Features
One-Step Process: Execute Athena queries and retrieve results in a single step.
AI-Powered Query Generation: Use natural language to describe what you want to query, and our AI engine will generate the appropriate CUR query for you.
Data Enrichment: Easily combine CUR data with information from AWS APIs and Cost Explorer for comprehensive analysis in a workflow
How to Use the Athena Query Step

Add the Athena Query step to your workflow
Choose between writing your own SQL query or using the AI-powered query generation
If using AI, describe your query requirements in natural language

Execute the step and receive your results
Example Use Case
Let's say you want to find the top 10 EC2 instances by cost for the last month:
Add the Athena Query step
In the AI input, write: "Show me the top 10 EC2 instances by cost for the last month"
Our AI will generate the appropriate SQL query
Execute the step to get your results
Important Consideration
❗Query Cost Be aware that running Athena queries incurs costs. AWS charges $5 per 1TB of data scanned. Use this step judiciously to manage your costs effectively. more information: https://aws.amazon.com/athena/pricing/
? Pro Tip To optimize costs, consider ways to reduce the amount of data scanned. This might include using partitions, limiting the date range, or filtering for specific resources when possible
Conclusion
The Athena Query step in Wiv empowers you to perform complex CUR data analysis with ease. By combining multiple steps into one and offering AI-powered query generation, it simplifies your FinOps workflows and helps you gain deeper insights into your AWS spending.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article