Title
#general
d

dave goodine

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
Ali (Infracost)

Ali (Infracost)

10/27/2022, 7:48 PM
@dave goodine do you have 10mins to jump on zoom screenshare? that’ll probably be the fastest to debug
d

dave goodine

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

Ali (Infracost)

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

dave goodine

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

Ali (Infracost)

10/27/2022, 9:31 PM
@dave goodine 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 🙂
d

dave goodine

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