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

fierce-kitchen-26774

03/27/2024, 2:49 PM
Hello everyone, I followed this document to integrate infracost with spacelift by not able to pull the cost during the run - https://spacelift.io/blog/terraform-cost-estimation-using-infracost
w

white-airport-8778

03/27/2024, 3:50 PM
@fierce-kitchen-26774 which document did you follow?
f

fierce-kitchen-26774

03/27/2024, 4:28 PM
updated the original request
w

white-airport-8778

03/27/2024, 4:40 PM
Thanks @fierce-kitchen-26774 - I assume you’ve added your Infracost API key to Spacelift? that’s the only thing that needs configuration really, the rest should just work. BTW, if you’re using GitHub/GitLab, you can also just integrate Infracost directly with those in ~5mins: https://www.infracost.io/docs/integrations/cicd/#source-control-integrations-recommended That gives you pull request comments and in case you want to use other Infracost Cloud features, they work out of the box.
f

fierce-kitchen-26774

03/27/2024, 4:46 PM
Ys I used the APIs and let me check the github option