Hi all - does anyone know why infracost is ignorin...
# help
p
Hi all - does anyone know why infracost is ignoring my currency settings?: .config\infracost\configuration.yml
Copy code
version: "0.1"
currency: "GBP"
w
What CLI version are you using? This works ok for me running locally, and I don’t have the
INFRACOST_CURRENCY
env var set either so the config file is used:
Copy code
$ infracost configure set currency GBP

$ cat ~/.config/infracost/configuration.yml
version: "0.1"
currency: GBP
p
Thank you for your reply: I am using the github pull request feature and it ignores all config. No idea how to fix it.
w
@powerful-kangaroo-4585 which CI/CD integration are you using? For GitHub Actions, you should set the
INFRACOST_CURRENCY
env var. For GitHub App, you should set the same env var during the Org Settings > Integrations > GitHub App wizard. Did you try any of those options?
p
Hi - now reporting $0 cost for Azure App Service S0 - I think something is very wrong - there don't seem to be any logs so I think this trial is over. Thank you!
l
Hi @powerful-kangaroo-4585, are you able to provide the Terraform code you’re using for this resource? I’m unable to find prices on the Azure website for S0.
p
Sorry the plan SKU was s1 - but still is giving 0$
Copy code
resource "azurerm_service_plan" "appserviceplan" {
  name                = "asp"
  resource_group_name = azurerm_resource_group.my_web_app_rg.name
  location            = azurerm_resource_group.my_web_app_rg.location
  os_type             = "Windows"
  sku_name            = "S1"

}
location is UK South
l
Thanks, let me dig into this a little more.
@powerful-kangaroo-4585 can you please DM me your Infracost Cloud Org ID? It should be visible in the Org Settings page.
Okay, I think these 2 things should fix it: 1. Remove the config file from Org Settings > Default repo config file 2. Got to Org Settings > Integrations > GitHub.com & Enterprise Cloud * Click Next * For ‘Do you need additional environment variables?’ Click Yes. * Add
INFRACOST_CURRENCY
,
GBP
p
Not sure if this is progress - I changed the app service type and the environment var but still reporting in $$$ - I get GBP in the console when I run the tool using exe or docker etc with the environment variable set. Can't thank you enough for the help @little-author-61621.
l
@powerful-kangaroo-4585 awesome! I’ve just checked your account and it looks like the env var was named
INFRACOST_CURRENCY,
instead of
INFRACOST_CURRENCY
. I’ve updated that for you now - can you have a look and see if it’s working for you?
p
Just checked and it does appear to be working in GBP/£ Sterling. Thank you.
l
Awesome, thanks for confirming!