broad-zoo-34077
06/01/2021, 8:39 PMlittle-author-61621
proud-gpu-8364
06/01/2021, 8:49 PMproud-gpu-8364
06/01/2021, 8:51 PMproud-gpu-8364
06/01/2021, 8:51 PMproud-gpu-8364
06/01/2021, 8:53 PMlittle-author-61621
{
"run": "/home/atlantis/infracost_atlantis_diff.sh"
}
little-author-61621
INFRACOST_LOG_LEVEL
to info
. The atlantis wrapper script does this already hereproud-gpu-8364
06/01/2021, 10:26 PMproud-gpu-8364
06/01/2021, 10:26 PMlittle-author-61621
proud-gpu-8364
06/02/2021, 6:11 PMproud-gpu-8364
06/02/2021, 6:12 PMlittle-author-61621
atlantis_debug=true
(https://github.com/infracost/infracost-atlantis#atlantis_debug) and INFRACOST_LOG_LEVEL=debug
(cc @white-airport-8778 if he has any ideas)white-airport-8778
proud-gpu-8364
06/04/2021, 6:39 PMwhite-airport-8778
infracost --path
, that way infracost does not run any Terraform commands, so something like this:
- init
- plan:
extra_args: ["-var-file", "workspaces/bbb.tfvars"]
- run: terraform show -json $PLANFILE > $PLANFILE.json
- env:
name: INFRACOST_API_KEY
value: xxxxxxxxxx
- run: infracost diff --path $PLANFILE.json
- run: rm $PLANFILE.json # might be good to cleanup
proud-gpu-8364
06/04/2021, 9:47 PMproud-gpu-8364
06/04/2021, 9:47 PMDetected Terraform directory at .
[K [96;1m⠋[0m Running terraform plan WWWWWWWWWWWWWWWWWWWWWWWWWWWW[K[K[K[K[K[K[K[K[K[K[K[K[K[K
white-airport-8778
- init
- plan:
extra_args: ["-var-file", "workspaces/bbb.tfvars"]
- run: terraform show -json $PLANFILE > $PLANFILE.json
- env:
name: INFRACOST_API_KEY
value: xxxxxxxxxx
- env:
name: INFRACOST_LOG_LEVEL
value: info
- run: infracost diff --path $PLANFILE.json
- run: rm $PLANFILE.json # might be good to cleanup
proud-gpu-8364
06/07/2021, 2:59 PMwhite-airport-8778
--no-color
to that infracost diff
command to get rid of those [32m
chars, they’re for terminal colors. Also, we’d be more than happy to help make the output look nicer for Atlantis, ping here if you get stuckproud-gpu-8364
06/15/2021, 7:34 PM