Title
#general
s

Sergio

11/21/2022, 6:37 PM
Hi guys, just testing out Infracost. I was surprised that changing region has no effect on costs, neither changing the node type… Check it out here Does that look good? I changed from 20 to 40 nodes and yes, it reflected this, but not the costs mentioned earlier
Alistair (Infracost)

Alistair (Infracost)

11/21/2022, 6:44 PM
Hi Sergio, For the region, I see the node_pool still has
location = "europe-west3"
. Could that be why? For the node type it looks like it can’t evaluate
local.stateful.machine_type
. Is that local defined anywhere?
s

Sergio

11/21/2022, 8:40 PM
I guess that was it. Thank you. But now I don’t get any comment. Did I run out of API calls?
8:40 PM
(There’s no error in the pipeline)
Alistair (Infracost)

Alistair (Infracost)

11/21/2022, 8:44 PM
Hmm, logs show this:
time="2022-11-21T20:38:25Z" level=info msg="Finding matching comments for tag infracost-comment"
time="2022-11-21T20:38:25Z" level=info msg="Found 1 matching comment"
time="2022-11-21T20:38:25Z" level=info msg="Updating comment <https://gitlab.com/DrumSergio/infracost-test/-/merge_requests/3#note_1180230156>"
Comment posted to GitLab
Was there a comment there that got deleted?
s

Sergio

11/21/2022, 8:44 PM
Oh, yes, but it was earlier.. hmm, okay. Thank yoiu
Alistair (Infracost)

Alistair (Infracost)

11/21/2022, 8:45 PM
For some reason it seems to still think that comment exists. Can you re-run the pipeline and see if it works?
s

Sergio

11/21/2022, 8:45 PM
Yes, just running it now, let’s see
8:49 PM
Yes, it’s working. Thanks for the support. I’ll present it to my company
Alistair (Infracost)

Alistair (Infracost)

11/21/2022, 8:49 PM
Awesome glad it’s working. Let us know how it goes!
s

Sergio

11/22/2022, 9:06 AM
About the Infracost extension in VScode: I have tons of repos, but only three are appearing when I click on the Infracost tab. How can I select which repo do I want to use with Infracost? Because i’m modifying one of them and I don’t see the results.
Alistair (Infracost)

Alistair (Infracost)

11/22/2022, 9:39 AM
Tagging @Hugo (Infracost) in case he has any ideas how to debug this
Hugo (Infracost)

Hugo (Infracost)

11/22/2022, 9:58 AM
Hey @Sergio we have now way to “select” which repos to use with the extension. The extension indexes all the ones found in the current workspace. If you want to target a specific project, I’d recommend opening only that folder in VScode. That being said, the extension should be able to auto-detect any projects in your workspace, so there could be something funky going on here. Here are a few follow-up questions to try and narrow down what’s going on: 1. Does the project you are modifying have a
provider
block in the root module? This is how we autodetect a Terraform project. So if your project doesn’t have this at the root level and uses a non-standard way of working with providers, Infracost won’t be able to show this project in the sidebar. 2. If this project is a new folder, the extension needs to be re-indexed by clicking the refresh button in the Infracost extension sidebar. 3. If the above conditions aren’t something apply to you then Infracost error/debug logs can be found by following the guide here https://github.com/infracost/vscode-infracost#locating-infracost-error-logs. This might provide more information about what the underlying problem is
s

Sergio

11/22/2022, 10:33 AM
Yep, I had to open it in a window apart. Now it works. Seems having so many terraform folders breaks the integration... FYI
10:34 AM
Thank you for your prompt response!
Hugo (Infracost)

Hugo (Infracost)

11/22/2022, 10:34 AM
👍