https://infracost.io logo
#general
Title
# general
c

cold-lizard-19815

10/27/2022, 7:46 PM
Hi, we have been using infracost for a while to put comments in PR on github enterprise with atlantis. Now, we would like to use the Dashboard. Although I can see estimates under Repos for various repos, I am not able to get past step 4 (Set up one of our ci/cd integrations). We have a post workflow hook:
post_workflow_hooks:
- run: |
# In order to stop commenting on PRs twice we need to check
# if the Infracost output directory created in our 'plan' stage exists before continuing.
if [ ! -d "/infracost/$BASE_REPO_OWNER-$BASE_REPO_NAME-$PULL_NUM" ]; then
exit 0
fi
infracost comment github --repo $BASE_REPO_OWNER/$BASE_REPO_NAME \
--pull-request $PULL_NUM \
--path /infracost/$BASE_REPO_OWNER-$BASE_REPO_NAME-$PULL_NUM/'*'.json \
--github-api-url $GH_API_URL \
--github-token $ATLANTIS_GH_TOKEN \
--behavior hide-and-new
`# remove the Infracost output directory so that
infracost comment
is not` `# triggered on an `atlantis apply``
rm -rf /infracost/$BASE_REPO_OWNER-$BASE_REPO_NAME-$PULL_NUM
w

white-airport-8778

10/27/2022, 7:48 PM
@cold-lizard-19815 do you have 10mins to jump on zoom screenshare? that’ll probably be the fastest to debug
c

cold-lizard-19815

10/27/2022, 7:54 PM
Hi Ali, got a meeting in 5 min, but should have some time at 330pm central
w

white-airport-8778

10/27/2022, 7:55 PM
Great - DM me I’ll be around 🙂
c

cold-lizard-19815

10/27/2022, 7:55 PM
Ok, thanks!
Hi Ali - I am free now if you can do a call.
@white-airport-8778, thanks again for your help - here, for reference, is a json that was produced by the breakdown command running in the atlantis container:
w

white-airport-8778

10/27/2022, 9:31 PM
@cold-lizard-19815 perfect - that confirms the issue, the PR URL wasn’t set…thanks! btw, next time plz use #help as we’re trying to keep #general for community-wide discussions 🙂
c

cold-lizard-19815

10/27/2022, 9:52 PM
Ok, will do 👍
w

white-airport-8778

12/22/2022, 8:47 PM
@cold-lizard-19815 just FYI that we’ve just released native support for GH Apps for GH Enterprise Cloud and GH Enterprise Server. The key benefit is that all of the Infracost Cloud features work out of the box (e.g. PR status is shown in the dashboard/reports so you can create a report of merged PRs only, or use the Guardrails feature to customize the PR comment or even block PRs that go above a threshold). Please let me know if you’d like to try it (it can be used alongside your Atlantis integration until you’re happy with the GH App flow).
4 Views