orange-midnight-75948
07/31/2023, 9:16 AMNo such file or directory output.json Try adding a config-file to configure how Infracost should run. See <https://infracost.io/config-file> for details and examples.
and Diff baseline error: No such file or directory output.json Try adding a config-file to configure how Infracost should run. See <https://infracost.io/config-file> for details and examples.
and I can see Monthly cost will not change
. I tried to make a config-file but it seems to not work. Do you have a basic config-file to add to my repo?mysterious-teacher-68276
07/31/2023, 9:17 AMorange-midnight-75948
07/31/2023, 9:19 AMinfracost:
stage: infracost
image:
name: infracost/infracost:ci-0.10
entrypoint: [""]
before_script:
- cd directory
script:
- |
infracost breakdown --path output.json \
--format=json \
--out-file=infracost-base.json
- |
infracost diff --path output.json \
--compare-to=infracost-base.json \
--format=json \
--out-file=infracost.json
- |
infracost comment gitlab --path=infracost.json \
--repo=$CI_PROJECT_PATH \
--merge-request=$CI_MERGE_REQUEST_IID \
--gitlab-server-url=$CI_SERVER_URL \
--gitlab-token=$GITLAB_TOKEN \
--behavior=new
mysterious-teacher-68276
07/31/2023, 9:20 AMoutput.json
to be?orange-midnight-75948
07/31/2023, 9:20 AMmysterious-teacher-68276
07/31/2023, 9:21 AMno such file or directory output.json
orange-midnight-75948
07/31/2023, 9:22 AMmysterious-teacher-68276
07/31/2023, 9:26 AMcd
at the beginning of this stage into a different directory so it’s most likely one directory backwardsls
step first in the stage to make sure the artefact is thereinfracost diff
step as this is implicit from the terraform planorange-midnight-75948
07/31/2023, 9:27 AMmysterious-teacher-68276
07/31/2023, 9:27 AMinfracost:
stage: infracost
image:
name: infracost/infracost:ci-0.10
entrypoint: [""]
before_script:
- cd directory
script:
- |
infracost breakdown --path output.json \
--format=json \
--out-file=infracost.json
- |
infracost comment gitlab --path=infracost.json \
--repo=$CI_PROJECT_PATH \
--merge-request=$CI_MERGE_REQUEST_IID \
--gitlab-server-url=$CI_SERVER_URL \
--gitlab-token=$GITLAB_TOKEN \
--behavior=new
orange-midnight-75948
07/31/2023, 9:28 AMmysterious-teacher-68276
07/31/2023, 9:49 AM