broad-zoo-34077
05/24/2022, 6:15 PMmysterious-teacher-68276
05/24/2022, 6:16 PMmysterious-teacher-68276
05/24/2022, 6:17 PMsparse-wire-75745
05/24/2022, 6:17 PMmysterious-teacher-68276
05/24/2022, 6:18 PMmysterious-teacher-68276
05/24/2022, 6:18 PMsparse-wire-75745
05/24/2022, 6:18 PMmysterious-teacher-68276
05/24/2022, 6:18 PMmysterious-teacher-68276
05/24/2022, 6:19 PMsparse-wire-75745
05/24/2022, 6:20 PMmysterious-teacher-68276
05/24/2022, 6:20 PMwhite-airport-8778
sparse-wire-75745
05/24/2022, 6:41 PMsparse-wire-75745
05/24/2022, 6:42 PMcat infracost.json
in the pipeline, I see the month difference.sparse-wire-75745
05/24/2022, 6:45 PMwhite-airport-8778
--behavior=new
to the infracost comment
command, it posts a new comment each time a commit is pushed to the MR so it makes it easier to debug.
If I understand it correctly, Infracost is now posting a comment on the MR, but it shows a 0 diff, and you expected to see a non-0 diff? Does expanding the “Infracost output” section of the MR comment show any diffs of usage-based resources?sparse-wire-75745
05/24/2022, 7:22 PMsparse-wire-75745
05/24/2022, 7:22 PMcd /tmp/base
before we run the infracost breakdown
but we don't switch back to the previous directory before running infracost diff
I did a cd -
and it worked well nowsparse-wire-75745
05/24/2022, 7:24 PMwhite-airport-8778
cd /tmp/base
infracost breakdown --config-file=${CONFIG_FILE} \
--format=json \
--out-file=infracost-base.json
# Generate an Infracost diff and save it to a JSON file.
- |
cd - <<<<<<<< this is what we need to add, correct?
infracost diff --config-file=${CONFIG_FILE} \
--compare-to=/tmp/base/infracost-base.json \
--format=json \
--out-file=infracost.json
white-airport-8778
sparse-wire-75745
05/24/2022, 7:25 PMwhite-airport-8778
--behavior=update
to the infracost-comment command so it’s explicit? That helps users know what to change if update
isn’t what they want… I think we do that in the config-file example but we forgot to do it in the main examplesparse-wire-75745
05/24/2022, 7:31 PMwhite-airport-8778
sparse-wire-75745
05/24/2022, 7:33 PMwhite-airport-8778
sparse-wire-75745
05/24/2022, 7:47 PMsparse-wire-75745
05/24/2022, 7:58 PMsparse-wire-75745
05/24/2022, 7:59 PMsparse-wire-75745
05/25/2022, 5:20 AM