Hi team, @any way to calculate the cost of the del...
# help
a
Hi team, @any way to calculate the cost of the deleted gcp resources using infracost
m
hi @ambitious-spring-76637, are those resources in IAC? Infracost only works to estimate costs on resources you keep in IAC (e.g. Terraform)
a
yes, those resources are in IAC
m
ok then it should be pretty simple: 1. if you have the GitHub app or something equivalent setup then opening a PR with those resources removed in IAC should show you the reduction in costs 2. If you’re running locally you’ll need to run a infracost diff on the code once the resources are removed. Using the
--compare-to
target as the infracost breakdown JSON before the resources were removed
a
Thanks Hugo