Unable to login when using a remote container
jacobwoffenden opened this issue · comments
Jacob Woffenden commented
Vadim Golub commented
Hello! The infracost auth login
would work on local machine. If you want to run Infracost on a remote one, you'd need to do couple extra steps. From our Troubleshooting section:
- Register for a free API key from here. This is used by the extension to retrieve prices from our Cloud Pricing API, e.g. get prices for instance types.
- Install the infracost CLI.
- Run
infracost configure set api_key MY_API_KEY_HERE
. - Re-open the VSCode extension, it should now skip the "connect to Infracost" step as it uses the same API key from the CLI.
Hope this helps :)
Jacob Woffenden commented
Shame on me for not reading the docs!
Thanks, @vdmgolub