cuddly-analyst-3057301/26/2023, 3:54 PM
infracost configure set api_key/pricing_api_endpoint
as the CLI? Noticed it stays logged in if I uninstall it. (It doesn't seem to require the Infracost CLI to be installed in advance, so maybe it gets installed, anyway!) Just want to make sure the extension is connected to my self-hosted Infracost Cloud Pricing API instead of Infracost Cloud.
infracost auth login
commands you pasted above - if that doesn’t work as the binary is not in the path, they can set the env vars. One way to confirm that your own vscode extension is using your self-hosted API key is to goto Infracost Cloud > Org Settings > Regenerate API key so your laptop doesn’t have the new key. But if you do that, you should also update the INFRACOST_API_KEY env var for your self-hosted Cloud Pricing API so it can continue to download the pricing dumps in its k8s/docker cron job.