I'm trying to get the EC2 instance price - for a specific EC2 instance - using Amazon Athena + CUR
The pipeline is already setup to run the SQL queries against CUR, but I'm having hardtime running a query which returns the actual cost for a specific EC2 instance - considering if it's on-demand/using savingPlans/ etc.
I'm looking at the Data Dictionary doc, but that's not necessarily mapped to all the column names I retrieved from CUR/Athena query.
Specifically I'm having a hard time to map the result to a unique ID (e.g. EC2 instance ID, any tags, etc.) of the running instance. (Found some examples here, but not for individual EC2 instances)
Any help on how to achieve this is greatly appreciated