2 Answers
- Newest
- Most votes
- Most comments
0
Hi,
To compute the actual cost you need to look at the column charged_seconds
instead of compute_seconds
. Here's an updated query:
select
date_trunc('day', start_time) usage_date,
sum(compute_seconds) total_compute_seconds,
sum(compute_seconds)/(60*60) total_compute_hours,
sum(charged_seconds) total_charged_dpu_seconds,
sum(charged_seconds)/(60*60) total_charged_dpu_hours,
total_charged_dpu_hours*0.36 total_compute_cost
from sys_serverless_usage
group by date_trunc('day', start_time);
The difference between both columns is that charged_seconds
is compute_seconds
multiplied by the RPUs used, and rounded up to a minute.
Hope this helps, Fran
answered 6 months ago
-1
Hi there,
I'm sorry to hear about this frustrating experience.
Our Billing team can look into this for you. I would recommend creating a support case here: http://go.aws/support-center.
Hope this helps,
— Aimee K.
Relevant content
- asked 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago