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

    Imad Kellou

    08/12/2022, 5:31 AM
    Hello everyone, We are trying to integrate infracost in our Google Cloud Platform CI/CD job cloudbuild, there is no cloudbuild section in the documentation (https://www.infracost.io/docs/integrations/cicd/), is there any way to use it with cloud build please ?
    a
    • 2
    • 2
  • t

    Tim (Infracost)

    08/12/2022, 4:55 PM
    Infracost v0.10.10 is live! 😛artyparrot: This is mainly a bug fix release so thanks to everyone who submitted issues and provided feedback. Keep them coming!
  • a

    Adam Gardner

    08/13/2022, 6:57 AM
    Hi infracost community. A while ago I promised to show how Infracost and Keptn can work together to strengthen the CD process. Video coming soon (I promise) but for now, the top half of the screenshot shows: 1. Infracost running + metrics being pushed to Prometheus 2. A keptn quality gate evaluating the cost (+ other metrics [security / performance]) and approving the build 3. The deployment happens in the
    dev-deploy
    stage The bottom half shows the same except we’ve updated the plan so now it is too expensive (the cost SLO was set for
    <700 && no more than 10% more expensive than a previous release
    . The deployment is stopped). 🎉 You’ve prevented a very expensive release making it to production.
    a
    • 2
    • 4
  • a

    Aléxis Mosquera Caicedo

    08/14/2022, 9:18 PM
    Hi guys. I'm trying to integrate jenkins with infracost to show the data in the dashboard but it's not clear to me how to do it. I can send the jobs to the infracost "Projects" tab. The issue here is that I cant see the dots graph becasue there are not PRs. That information should be sent without a Github api key because the infracost infomartion is in the json file and the pr number and the repository are passed as arguements in the infracost comment command.
    t
    • 2
    • 19
  • a

    Aléxis Mosquera Caicedo

    08/14/2022, 9:23 PM
    I have something like this in my Jenkins pipeline:
    INFRACOST_ENABLE_CLOUD=true infracost comment github --repo ${githubRepo} --path ${TF_PLAN_FILE} --pull-request ${pullRequestNumber}
    That information should be enought to be posted in the infracost pull requests feature.
  • a

    Aléxis Mosquera Caicedo

    08/14/2022, 9:27 PM
    Maybe, it's needed to add a new comment type like this "cicd" and let to push that pr information in the infracost pull request directly.
  • a

    Aléxis Mosquera Caicedo

    08/14/2022, 11:06 PM
    Is there a way to export the "Projects" estimates?
    t
    a
    • 3
    • 4
  • v

    Vadim (Infracost)

    08/15/2022, 4:37 PM
    Uh-oh! Thank you for spotting this! We'll look into this!
    a
    d
    • 3
    • 11
  • s

    Sylvain Witmeyer

    08/15/2022, 9:35 PM
    👋 Hi everyone! I’m discovering infracost and thank you for this awesome work
  • s

    Sylvain Witmeyer

    08/15/2022, 9:45 PM
    I run infracost in a docker from my laptop in a terragrunt project and it works perfectly. I’m using the env INFRACOST_API_KEY. But when switching to the github actions I faced a bad
    Error: Invalid API key
    Please check your /home/runner/.config/infracost/credentials.yml file or INFRACOST_API_KEY environment variable.
    I replace the API key, thinking I pasted a wrong key or added a whitespace but when I try to debug to see the key
    k=$(infracost configure get api_key)
      echo ${k: -2}
      cat /home/runner/.config/infracost/credentials.yml
    
    du
    version: "0.1"
    api_key: ***
    
    and du are the correct 2 last chars of my key.
    Any idea what could be wrong ?
    a
    a
    • 3
    • 55
  • s

    Swaminathan Narayanan

    08/17/2022, 9:51 AM
    Hi all, i am a newbie to infracost and a finops practitioner. Most IAC repos in my company is in CFN. Is there a way to leverage infracost for Cloudformation code?
    v
    • 2
    • 2
  • k

    Karolis Zivulskas

    08/17/2022, 9:53 AM
    Hello! I was trying to make Terraform Gitlab CI implementation yet it looks that .gitlab-ci.yml file does not work for me. I changed the _TF_ROOT_ path. After I made the merge request, pipeline has failed. Followed the manual from here. The error I get is '_variables config should be a hash of key value pairs, value can be a hash_'. Tried googling it and found that sometimes variables need to have additional pair of quotation marks " ". Yet there was no such case in .gitlab.ci.yml. Perhaps anyone has an idea why the pipeline fails despite following the implementation manual step-by-step?
    v
    a
    • 3
    • 52
  • k

    Karolis Zivulskas

    08/18/2022, 6:48 AM
    Hi! Has anyone had an issue where for the first time merge request for Infracost comment works fine but during the second time this error occurs? fatal: destination path '/tmp/base' already exists and is not an empty directory. Any tip would be appreciated.
    v
    • 2
    • 12
  • t

    Tom Connors

    08/18/2022, 7:24 PM
    Hello, I have two directories that I am playing with infracost, and by mistake was in the parent directory and issued a infracost command, perhaps during install or setting the api key. There as a .infracost directory created in the parent directory and I deleted it. The .infracost directory should only be in each project directory or my root, - wherever infracost wants it to be (not sure). Anyway, I deleted the parent directory .infracost directory, and perhaps concidently whenever I attempt to do anything, such as set the api key, I always get this message 2022/08/18 19:19:53 Can't separate key from value
    h
    s
    • 3
    • 7
  • t

    Tom Connors

    08/18/2022, 7:34 PM
    Also, I am wondering if you have any plans or people working on Digitalocean or Cloudflare as providers? This is a pretty cool site if you have not seen it yet, it is for DigitalOcean https://github.com/andrewsomething/do-api-slugs Look up slugs for use with the API DigitalOcean slugs.do-api.dev/
    a
    • 2
    • 4
  • b

    brokedba

    08/20/2022, 8:34 PM
    👋 Hi everyone! am a Cloud DBA and I started playing with infracost after seeing it popping on my linkedin feed. I finally found time to start writing a blog post about it . Ali told to stop by this slack channel If I have questions . hopefully Oracle Cloud support soon 😉 Great job anyway guys! brokedba (aka Kosseila)
    a
    • 2
    • 2
  • p

    Pedro Azevedo

    08/22/2022, 7:56 PM
    Hey everyone, I am just starting with Infracost and evaluating it to use in my company. I got a few questions around the self-hosting option that I didn't find in the documentation, so I hope here is the right channel, if not, please point me in the right direction. 1. I saw that in Infracost Cloud it's possible to setup custom price books (like AWS EDP), is that something we can setup on the self-hosting instance? Or we would need to update on Infracost Cloud, so when the DB pulls the new price list it loads also the custom prices? 2. Running the self-host option, is there any internal Dashboard that could be shared with different teams (regarding their accounts and projects), with different access levels with some price breakdown for their PRs? or we would have to have them all going to Infracost Cloud to check that? CI/CD integrations: 3. If we have our own Infracost Docker image configured (and security reviewed) do we need to add any particular tooling to make it work? Or it's just straight forward setup the container when running to connect to the self-host pricing API? 4. I was playing with the VS Code integration, but I couldn't find anyway to setup that with the self-hosting option, is that current how it works? Or Am I missing something? Thank you all
    a
    • 2
    • 5
  • b

    brokedba

    08/23/2022, 2:40 AM
    all right , I said I'll share the blog post here once it was ready , and here it is @Ali (Infracost) 🙂 . just finished the draft (based on the doc). http://www.brokedba.com/2022/08/terraform-live-cost-estimate-using.html
    a
    • 2
    • 2
  • i

    Imad Kellou

    08/24/2022, 4:00 PM
    Hello everyone, is there any future releases to estimate google_composer_environment and google_cloud_run_service costs please 🙏 ?
    h
    • 2
    • 1
  • a

    Adam Gardner

    08/25/2022, 1:41 AM
    Hi everyone, I made a video explaining how Infracost can be used with Keptn as part of a data-driven SRE workflow (in this case a deployment):

    https://youtu.be/L8AWjCAHv-4▾

    Reposting here with @Ali (Infracost)’s permission 🙂
    a
    h
    • 3
    • 3
  • m

    Maxime Sourdin

    08/25/2022, 3:20 PM
    Hello, Are there any plans to integrate the cost of ArgoCD resources? From what I have seen using ArgoCD at the moment, this would give an idea of the cost of deploying each application For example, to calculate the cost of deploying an application based on its prerequisites defined in the helm chart (which is specified in the yaml of the application: https://argo-cd.readthedocs.io/en/stable/operator-manual/application.yaml) (If I'm not mistaken, I don't have the impression that this is still recoverable, perhaps there are contributors at ArgoCD who could integrate ways to recover these values?)
    h
    • 2
    • 2
  • p

    Paul Bradbury

    08/26/2022, 8:19 AM
    Hi All,
  • p

    Paul Bradbury

    08/26/2022, 8:21 AM
    Just trying to install infracost in a bitbucket pipeline, but I am getting an error when trying to clone the repo, has anyone done this successfully, I have an ssh key on the repo as its private and have the public key for that as an access key
    a
    • 2
    • 28
  • p

    Paul Bradbury

    08/26/2022, 11:42 AM
    Is there a way to add another user to an organisation?
    a
    c
    +2
    • 5
    • 10
  • a

    Aléxis Mosquera Caicedo

    08/26/2022, 6:29 PM
    @Guil Dametto Hi!
  • a

    Ali (Infracost)

    08/27/2022, 6:09 PM
    Hey everyone, you can now invite your team members to your organization in Infracost Cloud 🎉 We’ll announce this in next week’s product update blog and newsletter but I wanted to give the community a heads-up in case anyone wants to try it and give us early feedback.
    k
    a
    • 3
    • 4
  • g

    Gerard Kavanagh

    08/30/2022, 12:21 PM
    Hi, I have set up a PoC and going through all the steps to see the results in the dashboard, but I can't seem to get it to push on a pull request. I have enabled this setting _INFRACOST_ENABLE_CLOUD=true_
    a
    • 2
    • 1
  • g

    Gerard Kavanagh

    08/30/2022, 12:35 PM
    I figured it out... 🙂
    a
    t
    • 3
    • 3
  • c

    Christopher Avila

    08/30/2022, 2:55 PM
    Is there a way to use wildcards with modules that contain usage_based resources? for instance, my resource_usage block previously looked like:
    module.developer_vms["eiq-dev-vm-developer-name-standard-1"].google_compute_instance.default[0]:
        monthly_hrs: 258.0 # Monthly number of hours the instance ran for.
    about 20 times over. I tried using a wildcard to switch it to
    module.developer_vms[*].google_compute_instance.default[0]:
        monthly_hrs: 258.0 # Monthly number of hours the instance ran for.
    but it failed to pick up the change and is ignoring the monthly_hrs setting
    a
    a
    s
    • 4
    • 8
  • a

    Adam

    08/30/2022, 3:27 PM
    Is there a recommendation for how to calculate aws ingress pricing based on usage?
    h
    • 2
    • 16
Powered by Linen
Title
a

Adam

08/30/2022, 3:27 PM
Is there a recommendation for how to calculate aws ingress pricing based on usage?
h

Hugo (Infracost)

08/30/2022, 3:31 PM
hey adam
so we have the ability to fetch from cloudwatch, however this doesn’t cover generic data transfer costs. I think the best thing to look at the cost explorer and try and drill down into the “data transfer” usage type group. I’ve used this article in the past as a decent guide to trying to debug data transfer costs. Then once you have a decent idea of the thresholds, just add it into the usage Infracost usage manually. Or you could set up a github action/scheduled job to try and fetch these values on a schedule. e.g. https://aws.amazon.com/premiumsupport/knowledge-center/cloudwatch-getmetricdata-api/ I know this isn’t ideal atm, but we have expanded fetch metrics from cloud on our roadmap. It’s something we’re passionate about making a better experience for users.
a

Adam

08/30/2022, 3:41 PM
i think i’m asking: where do i put the egress usage?
h

Hugo (Infracost)

08/30/2022, 3:41 PM
as in which yaml key in the infracost usage file?
a

Adam

08/30/2022, 3:42 PM
yes
h

Hugo (Infracost)

08/30/2022, 3:42 PM
right
https://github.com/infracost/infracost/blob/master/infracost-usage-example.yml#L87-L92
@Adam is this what you were looking for?
a

Adam

08/30/2022, 3:43 PM
yes!
h

Hugo (Infracost)

08/30/2022, 3:43 PM
awesome, glad to help
a

Adam

08/30/2022, 3:43 PM
this isn’t based on terraform, right?
this is just a usage convention invented by infracost?
h

Hugo (Infracost)

08/30/2022, 3:43 PM
yup correct
a

Adam

08/30/2022, 4:05 PM
is there a way to get infracost to output these as cost components without a usage.yml?
h

Hugo (Infracost)

08/30/2022, 4:50 PM
Not currently no, I believe you might be interested in following this issue for updates: https://github.com/infracost/infracost/issues/1525
a

Adam

08/30/2022, 4:52 PM
yes, that looks promising
View count: 1