https://infracost.io logo
Join the conversationJoin Slack
Channels
contributors
general
help
Powered by Linen
help
  • s

    Sylvain Witmeyer

    01/27/2023, 8:06 PM
    Hi there, looking at the install script it looks like we can’t install any version from it. I would expect this script https://raw.githubusercontent.com/infracost/infracost/v0.10.16/scripts/install.sh to install v0.10.16 instead of latest
    url="<https://infracost.io/downloads/latest>"
    I know there are some docker images prebuilt where I could directly get the correct binary depending of the arch but downloading the tar would avoid downloading a full image. Any thoughts ?
    t
    • 2
    • 12
  • m

    Mayank Khudia

    01/31/2023, 5:31 AM
    Hello Team, A general question which may sound absurd at this point, but what is difference between infracost’s
    estimated costs
    and platform(GCP)
    forecasted costs
    ??
    a
    • 2
    • 3
  • i

    Igor Konforti

    02/01/2023, 9:42 AM
    any idea why I’m getting “could not load modules” when running github actions?
    a
    • 2
    • 8
  • s

    Scott Nowers

    02/03/2023, 11:12 PM
    Hi team, I just checked the only outstanding ticket I could find for adding Digital Ocean resources here and haven’t seen any activity: https://github.com/infracost/infracost/issues/808
  • s

    Scott Nowers

    02/03/2023, 11:13 PM
    I’m more than happy to do some local development myself if there aren’t any other resources committed to it, just need to be pointed in the right direction.
    a
    • 2
    • 12
  • g

    Giampaolo Falqui

    02/08/2023, 12:47 PM
    Hello guys!
  • g

    Giampaolo Falqui

    02/08/2023, 12:48 PM
    I have a question: does Infracost provide a native integration with GitGerrit change requests?
    a
    • 2
    • 18
  • m

    Malcolm (Terrateam)

    02/08/2023, 1:45 PM
    Hello, I'm running into the following error just on the Terragrunt demo checkout:
    ~/terragrunt-infrastructure-live-example$ infracost breakdown --path=/home/josh/terragrunt-infrastructure-live-example/
    Detected Terragrunt directory at /home/josh/terragrunt-infrastructure-live-example/
    
    Error: Error processing module at '/home/josh/terragrunt-infrastructure-live-example/terragrunt.hcl'. How this module was found: Terragrunt config file found in a subdirectory of /home/josh/terragrunt-infrastructure-live-example/. Underlying error: /home/josh/terragrunt-infrastructure-live-example/terragrunt.hcl:9,41-64: Error in function call; Call to function "find_in_parent_folders" failed: ParentFileNotFound: Could not find a account.hcl in any of the parent folders of /home/josh/terragrunt-infrastructure-live-example/terragrunt.hcl. Cause: Traversed all the way to the root..
    ~/terragrunt-infrastructure-live-example$ infracost --version
    Infracost v0.10.17
    a
    • 2
    • 10
  • m

    Malcolm (Terrateam)

    02/08/2023, 3:35 PM
    Is
    exclude_paths
    relative to the path of the project or the root of where it's being told to run?
    a
    a
    • 3
    • 8
  • p

    Prerana Ravindra

    02/09/2023, 5:25 AM
    Hello Team, I have recently started exploring Infracost, but I am looking to integrate it with AWS CDK. Is there a way to do so? Thanks in advance.
    a
    a
    • 3
    • 4
  • m

    Malcolm (Terrateam)

    02/09/2023, 7:17 PM
    Question: If I have a directory structure like:
    .
    └── foo
        ├── bar
        │   ├── <http://bar.tf|bar.tf>
        │   └── bar.tfvars
        ├── <http://main.tf|main.tf>
        └── main.tfvars
    How would I configura infracost to find the appropriate tfvars for those?
    a
    • 2
    • 9
  • d

    David Leiva Fuente

    02/10/2023, 10:57 AM
    Hi. Is it posible to use Infracost to get equivalent machines from cloud to cloud? If I have in AWS t3.nano, t2.medium, then the equivalent architecture in GCP or Azure would be ....? Can you reference any document on this?. Thanks
    a
    • 2
    • 2
  • a

    Annas Ali Mian

    02/10/2023, 11:00 AM
    Hi Team, Is it possible to give terraform variables input in the breakdown command. example: infracost breakdown --path . --terraform_vars 'vmsize=Standard_D4s_V3'
    h
    • 2
    • 3
  • s

    Sunil Kakde

    02/14/2023, 5:05 AM
    Hi Team, Can infracost help/work when engineer makes manual adjustments via aws console? If yes, How ? any ref. doc.
    a
    • 2
    • 6
  • a

    Ali (Infracost)

    02/14/2023, 5:29 PM
    @Corporate Gadfly re this question (I moved it here as we use #help for questions): Can you set the version param in the setup task
    version: 0.10.17
    (which is the latest CLI version) - I wonder if that’ll avoid querying the GH API for release versions (I’ve not checked the code yet but it’s worth a quick try)
    c
    • 2
    • 7
  • m

    Mahpara Ashley

    02/14/2023, 9:15 PM
    Hello, I would like some help to setup my infracost gitlan ci
  • m

    Mahpara Ashley

    02/14/2023, 9:16 PM
    I am getting the following error even though I added the gitlab access token and infracost access key.
    fatal: could not read Username for '<https://gitlab.com>': No such device or address
    a
    • 2
    • 5
  • r

    Richard Blaauw

    02/15/2023, 1:28 PM
    Hello all, I am in the process of setting up infracost in a Bitbucket pipeline. I've used your example on https://bitbucket.org/infracost/infracost-bitbucket-pipeline/src/master/ but I've noticed that for comments on pull requests the documentation mentions using an app password under my account. Is it also possible to use a repository access token or something like that? Or should I just have infracost generate output and then do the comments on a pullrequest via an API call? Context: I would like for teammates to be able to use the pipeline when they do pull requests, without comments showing up under my own account 🙂. If I need to explain anything further, let me know.
    a
    • 2
    • 7
  • a

    Allen Parker

    02/17/2023, 8:58 PM
    @Hugo (Infracost) is there a channel you could pull me into for talking about the api or would you prefer a private message?
    h
    a
    • 3
    • 48
  • a

    Allen Parker

    02/18/2023, 2:12 PM
    I found a bug with available AmazonRDS instance types having no value. I'm not sure if the bug is in the API or if it's in the CLI, so I put it here: https://github.com/infracost/infracost/issues/2297
    a
    • 2
    • 3
  • r

    Ryan Diamond

    02/18/2023, 11:47 PM
    Is there a way to have breakdown output be shown and also saved to an output file? I want it to display the output in the build log and also output to JSON to upload to Cloud. Currently running breakdown command twice, which probably isn’t ideal 😆
    a
    • 2
    • 13
  • a

    Alex Bacchin

    02/21/2023, 2:48 AM
    Hi all I am new here... I am trying to self-host the API on GKE, behind a corporate proxy. However, when the job trying to download the data, exists with error 400 when trying to retrieve the downloadURL from the pricing API. The proxy environment variables are defined, I can curl the API successfully from the container, but the command below fails
    npm run data:download
    {"level":30,"time":1676947535300,"pid":922,"hostname":"cloud-pricing-api-77cfdcf8d4-q2hwv","msg":"Starting: downloading DB data"}
    {"level":50,"time":1676947535343,"pid":922,"hostname":"cloud-pricing-api-77cfdcf8d4-q2hwv","msg":"There was an error downloading data: Request failed with status code 400"}
    a
    a
    • 3
    • 13
  • p

    Pawel

    02/21/2023, 4:07 PM
    Hi guys, I am new here, nice to meet you all. We want to implement Infracost for the new projects, where the baseline(main)/target branches are currently empty. We keep the work in the ‘development’ branches. We’re using GitHub Actions. However, I’ve got a problem with PRs. The jobs fail because it cannot find the .tf files in the baseline branch (which is correct, because the branch is empty). I would like to achieve the state when the previous cost, based on the baseline branch, is equal to ‘0’, so it can compare with the report from the development branch Thank you in advance
    v
    • 2
    • 16
  • a

    ARUN Thundyill Saseendran

    02/22/2023, 8:27 PM
    Hi Guys, another new user. I was looking for a way to not upload the final data to dashboard in infracost cloud, even if it is free.
    a
    • 2
    • 8
  • n

    Noah

    02/23/2023, 7:58 PM
    Hello. To confirm: if I want to self-host the
    Cloud Pricing API
    server but POST custom GraphQL queries, I can bypass the
    infracost
    cli altogether? Scope: I want to programmatically query for pricing but w/o using Terraform.
    a
    • 2
    • 3
  • a

    ARUN Thundyill Saseendran

    02/24/2023, 11:31 AM
    Hi, I was trying infracost breakdown on a pipeline. What I see is that, the total value gets changing randomly. I mean for the same set of files, once is is $770 and at another time it $1350 So since in Gitlab CI pipeline, if I run the runner multiple times, I get multiple results fluctuating between these. Has anyone else faced a similar situation. And I hitting a known pothole?
    v
    h
    • 3
    • 27
  • s

    Slackbot

    02/24/2023, 1:06 PM
    This message was deleted.
    h
    • 2
    • 5
  • m

    Mayank Khudia

    02/27/2023, 7:17 AM
    Hello All, Just wanted to check here if Infracost is now equipped to track ‘BigTable’ and ‘Bigquery’ costs for GCP projects ??
    v
    • 2
    • 5
  • s

    Scott Emberson

    03/03/2023, 8:13 AM
    Hi, we are looking to do a POC on this tool as it looks great. Just a quick question, we use Azure Pipelines and we use variables to deploy our Iac
    terraform plan -var 'geo=us' -var 'environment=ecos'
    How can we build this into our pull requests to say env ecos cost X, env qa2 cost X, prod1 will cost X.
    h
    • 2
    • 34
  • p

    Paulo Correia

    03/06/2023, 2:22 PM
    Hi gents, I was trying to setting the override location in the config file, but wehn I run the breakdown, it still fallsbacks to aadefault region eastus, different from the one I set as default, any clue why? This si also caused probably because infracost can't seem to find an indexed resource like this: "Using eastus for resource azurerm_storage_account.test_reports[\"uksouth\"] as its 'location' property could not be found." those backslashes are probably the reason infracost can't find the resource, although it exists, (and deployed) Thread in #general
    h
    • 2
    • 29
Powered by Linen
Title
p

Paulo Correia

03/06/2023, 2:22 PM
Hi gents, I was trying to setting the override location in the config file, but wehn I run the breakdown, it still fallsbacks to aadefault region eastus, different from the one I set as default, any clue why? This si also caused probably because infracost can't seem to find an indexed resource like this: "Using eastus for resource azurerm_storage_account.test_reports[\"uksouth\"] as its 'location' property could not be found." those backslashes are probably the reason infracost can't find the resource, although it exists, (and deployed) Thread in #general
h

Hugo (Infracost)

03/06/2023, 2:23 PM
Hey @Paulo Correia - how is the
location
property set on this
azurerm_storage_account
?
could you post some hcl code, with any secrets obfuscated/removed
p

Paulo Correia

03/06/2023, 2:24 PM
location = data.azurerm_resource_group.primary["${each.key}"].location
this resource is inside a for_each
h

Hugo (Infracost)

03/06/2023, 2:25 PM
ok so we don’t support
data
blocks when parsing hcl directly. This is because we don’t use credentials to fetch information from your provider.
so in this case we just fallback to the default
p

Paulo Correia

03/06/2023, 2:25 PM
sure
I guesed it could be it
but I'm already trying to override a default
by using this: INFRACOST_AZURE_OVERRIDE_REGION: uksouth
h

Hugo (Infracost)

03/06/2023, 2:26 PM
ah sorry
p

Paulo Correia

03/06/2023, 2:26 PM
but seems to be doing nothing 😕
h

Hugo (Infracost)

03/06/2023, 2:26 PM
let me take a peek
p

Paulo Correia

03/06/2023, 2:26 PM
this env is being passed inside infracost config file
h

Hugo (Infracost)

03/06/2023, 2:27 PM
what happens if you pass this directly
i.e.
INFRACOST_AZURE_OVERRIDE_REGION=uksouth  infracost breakdown --config-file
p

Paulo Correia

03/06/2023, 2:28 PM
worked like a charm
so, using it in the config file does not work 😞
h

Hugo (Infracost)

03/06/2023, 2:29 PM
yeah I’m not sure we allow it to be at the moment
but could you raise an issue just so I can track and check
p

Paulo Correia

03/06/2023, 2:30 PM
for sure, many thanks for this one, not sure this is an improvement or issue
h

Hugo (Infracost)

03/06/2023, 2:30 PM
open it as an issue and i’ll change accordingly
p

Paulo Correia

03/06/2023, 2:31 PM
the config file docs, state we can declare environment variables there, doesn't mention any restriction but maybe the override is processed before parsing the config file
h

Hugo (Infracost)

03/06/2023, 2:32 PM
I think these are meant to be for non Infracost envs
INFRACOST
prefixed variables I don’t think are supported in that env
but I’ll take a peek with the issue
p

Paulo Correia

03/06/2023, 2:38 PM
all done, would be a nice to have 🙂
many thanks for your help Hugo 💪
View count: 1