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

mammoth-painting-38799

10/05/2022, 9:58 AM
Hi Team, if i use host Cloud Pricing API in self hosted environment… • how frequency Cloud Pricing API to be updated ? • is there any configuration available to set auto update? • or any time window to automate? thank you in Advance
b

busy-agent-35515

10/05/2022, 10:02 AM
Hello! You can define your own schedule. For example, with docker-compose you can set up a cron job, see the list item 7 here https://github.com/infracost/cloud-pricing-api#docker-compose
CPAPI provides a task
npm run job:update
. You can run it manually, or use it with any type of automation (cron job above as example)
2 Views