Calculate CF for an instance instead of a whole account

105 views
Skip to first unread message
Assigned to vfe.1695961...@thoughtworks.com by me

Julian Len

unread,
Dec 28, 2021, 1:02:19 PM12/28/21
to Cloud Carbon Footprint
Hi everyone! I hope you are doing well. 

I have a question, is it possible to use the tool to get data within an AWS account but specifically for one instance? 

Because the organization I am calculating the ccf for has an account which many instances. I can specify the instance I want to know the consume?

Thank you very much
Happy holidays.

Juli

Cloud Carbon Footprint

unread,
Jan 5, 2022, 4:40:49 PM1/5/22
to Cloud Carbon Footprint
Hi Juli,

It looks like with AWS, you can filter the results in the SQL query inside packages/aws/src/lib/CostAndUsageReports.ts and add:

line_item_resource_id as resourceId
and then filter based on the resource Id of the instance.

Please let us know if this works out for you! Also, feel free to submit an issue/pull request that could enhance the application to handle this.

Thanks,
Cam

Julian Len

unread,
Mar 28, 2022, 9:20:08 AM3/28/22
to Cloud Carbon Footprint
Hi there!

Finally, I tried this solution and the next happened

"Using the query works fine fetching real data from AWS account. But modifying the SQL query to filter to get result for a particular instance always still return data for the full account. The tool is built to get certain columns from the result and use on the UI thereby still returning same output."

Any suggestion?

Cheers!
Juli

Reply all
Reply to author
Forward
0 new messages