atlantis
atlantis copied to clipboard
feat(api): add ShowResult attribute to plan response
what
Add new ShowResult attribute in /api/plan endpoint. It reads show output file and put into API response.
why
It allows to use JSON output to create new implementations/tools based on this instead of plain text Terraform output. In my case, I can build a drift detection tools that relies on Atlantis plan execution (instead of executing plan on separate environment).
Even I tried with https://github.com/cresta/atlantis-drift-detection. But just uses Atlantis just to check if a project have changes and locking state if need to do a plan. But after that, it needs to execute a plan outside Atlantis.
tests
references
- closes #4776
ping @raulsh
@raulsh Do you have time to finish this PR? Thanks.
This issue is stale because it has been open for 1 month with no activity. Remove stale label or comment or this will be closed in 1 month.
This issue is stale because it has been open for 1 month with no activity. Remove stale label or comment or this will be closed in 1 month.