https://infracost.io logo
Join Slack
Powered by
# help
  • r

    red-photographer-82456

    01/22/2025, 6:15 AM
    Hi team does infracost support concourse pipeline?
    l
    • 2
    • 3
  • l

    lively-action-57175

    01/24/2025, 12:12 PM
    Help! I’m trying to connect our repositories, but I’ve hit a snag. The application integration is installed in GitHub, but it doesn’t list any repositories. Am I missing a step or a configuration? Thanks in advance!
    l
    • 2
    • 3
  • b

    bright-wire-821

    01/27/2025, 10:01 AM
    👋 Hello, team! We want to implement infracost for our PRs However it seems we are not allowed to give permissions to infracost to access our github due to security reasons . Is it possible for infracost to look into terraform plan and let us know the cost of that PR ?
    l
    • 2
    • 3
  • r

    red-photographer-82456

    01/29/2025, 10:07 AM
    Hello team why its not showing the dashboard
    b
    • 2
    • 18
  • c

    cool-ocean-61678

    01/29/2025, 5:40 PM
    Hi guys, Does Infracost have support for Karpenter node pools defined in Kubernetes?
    b
    • 2
    • 5
  • w

    worried-dinner-15254

    01/30/2025, 10:26 PM
    Are there any plans to add a infracost guardrails for ensuring compliance with a tagging policy?
    s
    • 2
    • 5
  • d

    damp-vase-72566

    01/31/2025, 4:10 PM
    Hello all, newbie here. When i run
    infracost breakdown --path=. --usage-file=../infracost-usage.yml --show-skipped
    i get a table of costs with usage, all good. When i output as json and then publish to an ADO PR using `infracost comment`the baseline costs are not uploaded to the PR. Now i know this is not quite the norm - i understand that a PR should be showing the differences between the main branch and the PR branch, but when there are no changes to terraform in a PR, id like to show the baseline costs of the master branch, rather than no costs from the diff. Does that make sense? Is it possible? I am using the cli via cicd, at present there are no plans to move to the infracost cloud offering. Note - when i publish a PR with actual TF changes, it shows the usage, so i know my call to `infracost comment`does work.
    b
    • 2
    • 4
  • r

    red-photographer-82456

    02/03/2025, 11:38 AM
    Hi team Need to your support to setup infracost in concourse pipeline u
    b
    • 2
    • 8
  • q

    quaint-analyst-14410

    02/05/2025, 11:34 AM
    Hello all! Is there a way to get cost for Persistent Disk in GCP, with Cloud Pricing API? Thanks
    s
    • 2
    • 4
  • d

    damp-vase-72566

    02/05/2025, 4:09 PM
    Hi team! Im experimenting with the
    --sync-usage-file
    flag when running a breakdown
    Copy code
    infracost breakdown --config-file ./infracost/infra-cost.yml --sync-usage-file --out-file=./infracost-breakdown --format=table --no-color path=terraform
    The output shows
    Synced 0 of 89 resources
    for each of the projects. Can anyone shed any light? I am authenticated to AWS (that shows a different error if not authenticated). Even though 0 resources are synced i am seeing that the infracost-usage.yml file gets updated to reflect the resources in the project so it appears to be working in some form. EDIT This is either no longer the case or i was misreading the content. When i use the
    --sync-usage-file
    parameter my entire infracost-uage.yml is commented out.
    More meat to the bones. I forgot to declare that i am using terragrunt and am running the breakdown from the root terraform folder (not a plan). The infracost-usage.yml output, whilst commented out with values of 0, it is recognising my resources, for example: # aws_ssm_parameter.alternate_queue_names["ARedactedQueueName"]: # api_throughput_limit: standard # SSM Parameter Throughput limit, can be: standard, advanced, higher. # monthly_api_interactions: 0 # Monthly API interactions. # parameter_storage_hrs: 0 # Number of hours in the month parameters will be stored for. I have also generated an infracost.yml config file which describes the terragrunt folder structure for example:
    Copy code
    version: 0.1
    projects:
      - path: environments/test
        name: test
        usage_file: environments/test/infracost-usage.yml
      - path: environments/prod
        name: prod
        usage_file: environments/prod/infracost-usage.yml
    I am going to interrogate the debug logs to see if there is anything of interest in there
    w
    • 2
    • 2
  • w

    worried-intern-40629

    02/11/2025, 2:01 PM
    Hi team Will the free plan of Infracost be sufficient to meet the following requirements? • 15 users • 1 Github repository • Up to 30 pull requests per month
    b
    • 2
    • 3
  • d

    damp-vase-72566

    02/13/2025, 9:49 AM
    Hi team, im trying to reconcile my infracost ecs cost and usage with AWS' cost and usage explorer. Im finding that AWS is reporting almost double infracost. Is it because the actual usage isnt being taken into account? I dont know how / where to add monthly gb and vcpu hours and of usage into my infracost-usage.yml file (am using the large defaults provided by infracost) AWS cost and usage metrics used for the month of January: USE2-Fargate-vCPU-Hours:perCPU costs $x USE2-Fargate-vCPU-Hours:perCPU usage (5917 hours) USE2-Fargate-GB-Hours costs are $y USE2-Fargate-GB-Hours usage are (11,834 hours) Infracost cost and usage: Per GB per hour $x / 2 Per vCPU per hour $y / 2 The Infracost output makes no reference to hours usage, so i can only assume its based on a default value (that isnt present in the infracost-usage.yml file). Any help much appreciated. TIA
    w
    • 2
    • 4
  • i

    icy-night-43046

    02/19/2025, 12:00 PM
    Hi team, can anyone share the Helm Chart github repository, to set up the Infracost self-hosted API? the URL is broken in the documentations. Thanks in advance
    e
    • 2
    • 1
  • b

    bulky-boots-10226

    02/21/2025, 1:46 PM
    Hi, I'm using infracost with atlantis via Bitbucket Cloud. When it tries to add a comment it using the following:
    infracost comment bitbucket --exclude-cli-output --path "/atlantis/tmp/$PULL_NUM/cost.json.*" --repo $BASE_REPO_OWNER/$BASE_REPO_NAME --pull-request $PULL_NUM --bitbucket-token user/pass --behavior update
    I get the error in this screenshot
    a
    w
    • 3
    • 8
  • t

    thousands-arm-53034

    03/04/2025, 9:58 PM
    Hi All, I'm new to GoLang and I'm really interested in learning about Infracost. While exploring, I came across Infracost and was impressed, so I cloned the Infracost GitHub repository to my local machine. However, I'm having trouble debugging the code and learning it from scratch. Could anyone guide me on how to get started with learning Infracost and how to set up debugging for the repository on my local machine? Thanks, Bharath
    w
    • 2
    • 3
  • e

    echoing-father-81832

    03/10/2025, 2:28 PM
    Hey guys, happy to be here I recently added infracost to my atlantis docker image and i tried to look for examples to adapt infracost with a terragrunt workflow for atlantis. Is there any examples that can be used since using the docs from: https://github.com/infracost/infracost-atlantis?tab=readme-ov-file#terragrunt only throwns my errors and the echo output: /tmp/--/--/infracost.json does make any sense to use
    w
    • 2
    • 4
  • b

    brash-translator-79007

    03/20/2025, 5:03 PM
    Using Docker
    infracost/infracost:ci-latest
    Copy code
    infracost --version
    Infracost v0.10.41
    When running
    breakdown
    I get: WARN 1 aws_instance price missing across 1 resource This happens for:
    instance_type = "g5.12xlarge"
    w
    • 2
    • 4
  • g

    gorgeous-island-10432

    03/20/2025, 5:45 PM
    Hey Guys! I'm trying to integrate Infracost into a pipeline in a bit more complicated way than what the examples show. I'm pulling down Terraform Plans from the Terraform Cloud API but when I try to run Infracost against them, I get this: As far as I know, this plan json you can pull down from the TFC API should be the same format as one generated using terraform plan -out tfplan.binary and then terraform show -json tfplan.binary > plan.json
    w
    • 2
    • 19
  • g

    gorgeous-island-10432

    03/21/2025, 2:17 PM
    Sorry, more questions. Are there more indepth methods to defining EA discounts aside from bulk % discounts?
  • g

    gorgeous-island-10432

    03/21/2025, 2:17 PM
    or Is this the only option I've got?
    w
    • 2
    • 1
  • b

    billions-pencil-2654

    04/03/2025, 2:30 PM
    Do you have to be subscribed to get an AWS cloud pricing from a Terraform State file?
    w
    • 2
    • 3
  • r

    rich-journalist-85976

    04/07/2025, 10:37 AM
    Hello! I am using the open source infracost CLI to estimate my AWS costs with resources defined with Terraform. I have a monorepo with two Terraform projects, and I have a simple usage file to defined the expected usage of my serverless resources, but I can't seem to find a way to add a project filter. I need this due to the fact we unfortunately have resources with the same name in the two Terraform projects. What I'd like to have is to specify the project an usage block refers to for a particular Terraform resource. Is it possible? I haven't found any info on the docs (other than it being possible on Infracost Cloud) or on GitHub. Thank you in advance!
    s
    • 2
    • 2
  • g

    green-france-56695

    04/08/2025, 9:55 AM
    Hey! I have just integrated infracost in my github and am not able to generate estimate and my module is sourced, getting below error
    Copy code
    1 error occurred:
    	* error fetching module git::<ssh://git@github.com/jupitermoney/terraform-root-modules.git?ref=develop> from remote: error downloading '<ssh://git@github.com/jupitermoney/terraform-root-modules.git?ref=develop>': /usr/bin/git exited with 128: Cloning into '/usr/src/app/jupitermoney/dev.jupiter.money/infracost-test/.infracost/.terragrunt-cache/36S544WW_7cwW6wKd1x23Est88A'...
    Warning: Permanently added '<http://github.com|github.com>' (ED25519) to the list of known hosts.
    <mailto:git@github.com|git@github.com>: Permission denied (publickey).
    fatal: Could not read from remote repository.
    Please make sure you have the correct access rights
    
    and the repository exists.
    Is it possible to connect and close this setup? Thanks in advance
    a
    • 2
    • 1
  • w

    worried-dinner-15254

    04/29/2025, 12:30 AM
    Is amazon connect pricing on the roadmap?
    w
    • 2
    • 1
  • r

    ripe-motherboard-63211

    04/29/2025, 8:11 AM
    Hello all, Currently looking to trial Infracost with our Azure DevOps projects, hitting an error with PAT token setup and have created with owner permissions, has anyone hit this before?
    s
    • 2
    • 2
  • w

    witty-beard-49162

    05/14/2025, 9:24 AM
    Hello Infracost Community, Using Infracost in free trial, for a gitlab CI/CD purpose, whithout infracost cloud functions, i have this result :
    Copy code
    Error loading Terraform modules: could not load modules for path . failed to parse file .infracost/terraform_modules/4be729b152ff5fe757b510249ccab486/main.tf diag: .infracost/terraform_modules/4be729b152ff5fe757b510249ccab486/main.tf:3,56-57: Missing argument separator; A comma is required to separate each function argument from the next.
    My CI/CD job looks like this :
    infracost:merge-request-checks:
    tags:
    - docker-M
    stage: infracost:merge-request-checks
    image:
    # Always use the latest 0.10.x version to pick up bug fixes and new resources.
    # See <https://www.infracost.io/docs/integrations/cicd/#docker-images> for other options
    name: infracost/infracost:ci-0.10
    entrypoint: [""]
    script:
    # If you use private modules, add an environment variable or secret
    # called GIT_SSH_KEY with your private key, so Infracost can access
    # private repositories (similar to how Terraform/Terragrunt does).
    - mkdir -p ~/.ssh
    `- eval `ssh-agent -s``
    - echo "$GIT_SSH_KEY" | tr -d '\r' | ssh-add -
    # Update this to <http://github.com|github.com>, <http://gitlab.com|gitlab.com>, <http://bitbucket.org|bitbucket.org>, <http://ssh.dev.azure.com|ssh.dev.azure.com> or your source control server's domain
    - ssh-keyscan <http://gitlab.kazan.myworldline.com|gitlab.kazan.myworldline.com> >> ~/.ssh/known_hosts
    # Clone the base branch of the pull request (e.g. main/master) into a temp directory.
    - git clone $CI_REPOSITORY_URL --branch=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME --single-branch /tmp/base
    # Generate an Infracost cost snapshot from the comparison branch, so that Infracost can compare the cost difference.
    - infracost breakdown --path=/tmp/base/${TF_ROOT} --format=json --out-file=infracost-base.json
    # Generate an Infracost diff and save it to a JSON file.
    - infracost diff --path=${TF_ROOT} --compare-to=infracost-base.json --format=json --out-file=infracost.json
    - infracost comment gitlab --path=infracost.json --repo=$CI_PROJECT_PATH --merge-request=$CI_MERGE_REQUEST_IID --gitlab-server-url=$CI_SERVER_URL --gitlab-token=$GITLAB_TOKEN --behavior=update
    variables:
    INFRACOST_API_KEY: $INFRACOST_API_KEY
    `GITLAB_TOKEN: $GITLAB_TOKEN # With
    api
    scope and Maintainer role to post merge request comments`
    rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
    artifacts:
    paths:
    - infracost.json
    - infracost-base.json
    expire_in: 1 days
    My repository tree is simple as every tf file are in root (.) Modules they used are in our private gitlab host (which is why i also tried with the ssh commands activated, exact same result) Also the infracost commands are working perfectly locally Let me know if more infos are needed for analysis =)
    a
    • 2
    • 5
  • l

    limited-intern-19479

    05/22/2025, 5:12 PM
    This might be a dumb question, but I have a failing job in GitHub actions in which I try to post `infracost diff`s (between
    HEAD
    and
    main
    on a PR).
    Copy code
    - name: "Generate Infracost cost estimate baseline"                     # Generate base branch cost.               
             run: >                                                                                                           
               infracost breakdown                                                                                            
                 --config-file .infracost.yml                                                                                 
                 --format json                                                                                                
                 --out-file /tmp/infracost-base.json
    This errors out, saying that
    --path
    is required. Is the
    --config-file
    argument not supported in Actions?
  • l

    limited-intern-19479

    05/22/2025, 6:39 PM
    Alright, figured out the issue, though not the cause. Looks like a weird YAML issue, where`run: |` (with escaped newlines) works, but
    run: >
    does not.
  • l

    little-apple-76419

    05/27/2025, 10:34 AM
    Hi Infracost team, I’ve encountered an issue where the Infracost GraphQL API does not return Spot pricing for certain i7i instance types (e.g., i7i.xlarge and i7i.2xlarge), even though these Spot prices are available on the AWS EC2 Spot Pricing page (https://aws.amazon.com/ec2/spot/pricing/). This is working fine for
    on_demand
    instance though Example Query:
    Copy code
    query {
      products(
        filter: {
          vendorName: "aws"
          service: "AmazonEC2"
          productFamily: "Compute Instance"
          region: "us-east-1"
          attributeFilters: [
            { key: "instanceType", value: "i7i.2xlarge" }
            { key: "operatingSystem", value: "Linux" }
            { key: "licenseModel", value: "No License required" }
            { key: "tenancy", value: "Shared" }
            { key: "capacitystatus", value: "Used" }
            { key: "preInstalledSw", value: "NA" }
          ]
        }
      ) {
        prices(filter: { purchaseOption: "spot" }) {
          USD
        }
      }
    }
    what is the reason for this?
    s
    l
    • 3
    • 8
  • g

    gifted-fireman-79125

    06/04/2025, 10:10 AM
    #C046GMHQ6NM Hello Team, I'm trying to run infracost from Gitlab pipeline but getting Forbidden method POST url https://pricing.api.infracost.io/graphql , can I just run the tool with API key or do we need the Gitlab integration in order to run it from any CI source Thanks!
    b
    • 2
    • 9