Hello everyone! I had a working infracost installa...
# help
b
Hello everyone! I had a working infracost installation, in local and GIthub integration for cost diff breakdown in PR. Suddenly it stopped working. For now I'm focused in making the local diff work. I'm following the get started docs. Everything ok until I execute
infracost breakdown --path .
in the folder containing the terragrunt.hcl file which gives the following:
Copy code
$ infracost breakdown --path .
INFO Autodetected 1 Terragrunt project across 1 root module
INFO Found Terragrunt project main at directory .
Username for '<https://github.com>': foo
Password for '<https://foo@github.com>': 
Username for '<https://github.com>': foo
Password for '<https://foo@github.com>': 
Username for '<https://github.com>':
It is stuck asking my GH username/password Has somebody suffered from this? Google-fu doesn't helps โ„น๏ธ Note: I need to pull TF modules from private repositories. infracost version v0.10.38
c
Hi Luis, does your project build correctly if you use terragrunt directly?
b
Thanks for the answer Tim, yes,
terragrunt plan/apply/destroy/output
does work
c
Ok, do you normally authenticate with github using ssh?
b
Yes, I do all my git operations via SSH. At some point, I remembered I also configured an SSH key for infracost (belonging to my github user)
c
Can you rerun with the
--log-level=debug
flag please
b
done, this is a lot of text, should I search a specific string or would you prefer if I shared the whole output with you via DM (sensitive information)
c
DM please
b
nevertheless before asking for the Github username/password I have the following messsages:
Copy code
DEBUG module 'git@github.com:Contoso/terraform-aws-iam-system-user.git?ref=v0.1.1' not detected as registry module error="Registry module source is not in the correct format" project_name= project_path=.infracost/.terragrunt-cache/L9I8jwpcKsCvK8rdaURDgO6cIqM-sb__7b0ZfgAsFqDceM4eXnbRhg0 provider=terraform_dir

DEBUG module s3_user.ssm_parmeter_store needs loading: not in cache project_name= project_path=.infracost/.terragrunt-cache/L9I8jwpcKsCvK8rdaURDgO6cIqM-sb__7b0ZfgAsFqDceM4eXnbRhg0 provider=terraform_dir

DEBUG module 'git@github.com:Contoso/terraform-aws-ssm-parameter-store.git?ref=v0.1.0' not detected as registry module error="Registry module source is not in the correct format" project_name= project_path=.infracost/.terragrunt-cache/L9I8jwpcKsCvK8rdaURDgO6cIqM-sb__7b0ZfgAsFqDceM4eXnbRhg0 provider=terraform_dir
c
Can you try adding this to your `~/.gitconfig:
Copy code
[url "git@github.com:"]
       insteadOf = <https://github.com/>
๐Ÿ‘€ 1
b
Thanks, it worked in local ๐Ÿ™Œ (running
infracost breakdown --path
) Can I hijack this thread for some help on the infracost PR comments not appearing? ๐Ÿฅบ
๐ŸŽ‰ 1
c
Sure, whatโ€™s going on?
b
Thanks a lot ๐Ÿ™‡ It's similar to the previous case, we had a working GitHub integration but it suddenly stooped working, maybe 2 weeks ago. I'm going to share information..
GitHub App
Permissions
In the Infracost's side, my Org ID is
dfcc0c75-697f-4944-8424-e84abf746a54
๐Ÿ‘€ 1
Integration in the infracost dashboard:
image.png
c
Is it ok if I get back to you on this later in the day? Iโ€™ve got some meetings starting soon.
b
of course! ๐Ÿ™
c
Hi could you create a test PR with some tf changes in that repo when you have a moment? The repo name in infracost cloud got corrupted (the owner prefix was stripped off) which was causing problems but I want to make sure that fixes your issue.
b
Good morning! Thanks for looking at it. I do have a PR created in this repo (July 18 1:33 PM GMT+2) The branch is
inf-80-staging-mongodb-increase-disk-sizee
The infracost bot has not triggered for this PR:
c
July 18th would have been before I corrected the corrupted name. Has that PR had any changes since July? If not you can either push a test change, or close then reopen the PR. Or just create a new test PR.
b
Thanks a lot for the support Tim! ๐Ÿ™‡ Opening a new PR and pushing new commits to existing PRs made the Infracost GH bot kick in. So for us everything is back to normal again. Have a great week ahead! ๐Ÿ’ช
c
Excellent! Have a great day.