infracost / vscode-infracost

See cost estimates for Terraform right in your editor💰📉

Home Page:https://www.infracost.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow extension to use self hosted infracost endpoint and key

Shocktrooper opened this issue · comments

Like the title it would be cool to allow the extension to use a self hosted installation of infracost vs purely the SAAS version. This alleviates some of the problem some organizations have where there is an air-gapped network with outbound traffic restricted or proxies for outbound traffic.

@Shocktrooper you can already do this by running infracost configure set pricing_api_endpoint https://my-cloud-pricing-api (check infracost configure --help for other config options). The VS Code extension uses the CLI settings underneath.
If you don't have the CLI installed, you can update the global infracost configuration file (found at ~/.config/infracost/configuration.yml) - the key/value pairs in the file are the same ones that are supported by infracost configure set.

@alikhajeh1 maybe we could add this to the docs then. I could not find this information anywhere or maybe I am just blind.

@Shocktrooper good point! I added infracost/docs#456 just now