Is there a recommendation for how to calculate aws...
# general
n
Is there a recommendation for how to calculate aws ingress pricing based on usage?
m
hey adam
so we have the ability to fetch from cloudwatch, however this doesn’t cover generic data transfer costs. I think the best thing to look at the cost explorer and try and drill down into the “data transfer” usage type group. I’ve used this article in the past as a decent guide to trying to debug data transfer costs. Then once you have a decent idea of the thresholds, just add it into the usage Infracost usage manually. Or you could set up a github action/scheduled job to try and fetch these values on a schedule. e.g. https://aws.amazon.com/premiumsupport/knowledge-center/cloudwatch-getmetricdata-api/ I know this isn’t ideal atm, but we have expanded fetch metrics from cloud on our roadmap. It’s something we’re passionate about making a better experience for users.
n
i think i’m asking: where do i put the egress usage?
m
as in which yaml key in the infracost usage file?
n
yes
m
right
@nutritious-musician-34507 is this what you were looking for?
n
yes!
m
awesome, glad to help
n
this isn’t based on terraform, right?
this is just a usage convention invented by infracost?
m
yup correct
n
is there a way to get infracost to output these as cost components without a usage.yml?
m
Not currently no, I believe you might be interested in following this issue for updates: https://github.com/infracost/infracost/issues/1525
n
yes, that looks promising