https://infracost.io logo
#general
Title
# general
p

proud-megabyte-80421

09/28/2021, 11:13 AM
Hello one question I'm adding infracost to the pipeline using the docker image, but how will it make a difference if I haven't? i dont have usage_file
w

white-airport-8778

09/28/2021, 11:18 AM
Hi Victor, what’s the CI/CD system you’re interesting with? As shown below, the CLI will error if it can’t find the usage file, do you want it to not fail if it can’t find it in the container?
Copy code
infracost breakdown --path examples/terraform --usage-file not-here.yml
Detected Terraform directory at examples/terraform

Error: Error reading usage file: open not-here.yml: no such file or directory
p

proud-megabyte-80421

09/28/2021, 11:29 AM
My CI/CD is Gitlab
message has been deleted
w

white-airport-8778

09/28/2021, 11:31 AM
is the usage-file committed to that branch?
p

proud-megabyte-80421

09/28/2021, 11:31 AM
I hope that the first resources created are the starting point of comparison in the repository
my question is the usage file should be a breakdown output?
w

white-airport-8778

09/28/2021, 11:34 AM
the usage-file can be passed into the
infracost reakdown
or the
infracost diff
command, but first you need to run https://www.infracost.io/docs/usage_based_resources/#1-generate-usage-file on your machine commit the file to the branch so it can be used in CI/CD
p

proud-megabyte-80421

09/28/2021, 11:46 AM
i'm test
👍 1
usage-file is a resource that i must keep to be able to added to next job how point of comparison ?
w

white-airport-8778

09/28/2021, 11:53 AM
it’s a file that you can update to input usage data like “how many GB of storage are in your S3 bucket” so Infracost can provide a more accurate cost estimate. You don’t need it when you are starting to use Infracost for the first time. It’s helpful if you want to get more accurate estimates.
The top section of this page explains it with an example of AWS Lambda, I’m happy to jump on a call to demo it to you if it helps 🙂 feel free to DM me
p

proud-megabyte-80421

09/28/2021, 11:58 AM
thanks continued testing
When is its commercial version estimated for?
w

white-airport-8778

09/28/2021, 12:06 PM
We don’t have a time estimate yet but we’d love hearing your feedback on what features you think should be in the paid product!
p

proud-megabyte-80421

09/28/2021, 12:12 PM
ok when I to finished my POC send you my feedback
🙌 1
🙇‍♂️ 1
14 Views