atlantis icon indicating copy to clipboard operation
atlantis copied to clipboard

feat(api): add ShowResult attribute to plan response

Open raulsh opened this issue 1 year ago • 1 comments

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

raulsh avatar Jul 23 '24 13:07 raulsh

ping @raulsh

chenrui333 avatar Jul 25 '24 13:07 chenrui333

@raulsh Do you have time to finish this PR? Thanks.

jamengual avatar Dec 31 '24 03:12 jamengual

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.

github-actions[bot] avatar Feb 01 '25 02:02 github-actions[bot]

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.

github-actions[bot] avatar Mar 18 '25 02:03 github-actions[bot]