most-sugar-1724303/21/2023, 12:49 AM
I guess I’m trying to understand generally why we don’t need infracost diff inside cicd set up. I’m using terragrunt with atlantis as my set up. Any help would be appreciated, many thanks
- run: terragrunt show -json "$$PLANFILE" > "$$SHOWFILE" - run: | infracost breakdown --path="$$SHOWFILE" \ --format=json \ --log-level=info \ --out-file="$$INFRACOST_OUTPUT" \ --project-name="$$REPO_REL_DIR" - run: | infracost comment github --repo xxx \ --pull-request $$PULL_NUM \ --path $$INFRACOST_OUTPUT \ --github-token $$ATLANTIS_GH_TOKEN \ --tag $$INFRACOST_COMMENT_TAG \ --behavior new
crooked-daybreak-5525303/21/2023, 1:01 AM
and those contain both the current and planned states. Likewise the output of
contains the cost breakdown for pervious and new states, which the comment command uses to calculate the diff.
white-airport-877803/21/2023, 1:19 AM
most-sugar-1724303/21/2023, 1:43 AM
crooked-daybreak-5525303/24/2023, 1:10 AM
key has the expected resources in the showfile?