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

Set currency from within VS Code?

Bouke opened this issue · comments

Hi, I've just started using Infracost. So far it is looking good and there are some estimates showing up in my terraform file. However I'm trying to change the currency (to EUR). The documentation mentions to run the infracost command, however I don't have that installed. I also fail to understand what this command will change to my repository. Is there some file I should add to my repo to change the currency, without having to install the command?

Hi @Bouke, the VS Code extensions uses a bundled infracost CLI so you won't have that installed on your machine's PATH. In order to change the currency settings without downloading a CLI into your PATH you can edit the Infracost global configuration file at: ~/.config/infracost/configuration.yml. If you add the following to that file:

version: "0.1"
currency: EUR

Then you should see prices displayed in euros.

That's working, thank you!

@alikhajeh1 sure I'll update