runatlantis/atlantis

List, lock, unlock workspaces via REST API

Opened this issue · 2 comments

First of all thanks for the great product, we are adopting Atlantis on our production and stage env. and very happy with it.

Besides pull requests automation, we have a pipeline for re-rolling stage environments in the cloud. Atlantis and pipeline are not knowing about each other and in the theory can clash, it can turn terraform state to in-operational.

I'm wondering if you can add a new feature to expose the REST API with few endpoints for:

  • listing of locked workspaces in JSON
  • locking a workspace via REST
  • unlocking a workspace via REST

Thanks for the kind words!
Implementing this will also fix #31

Hello!

We have written a small Python app that merges terraform dependencies pull requests that result in no differences, leveraging Atlantis.
This feature suggested by @vitalifed would be excellent, so we can unlock all pull requests before starting planning and automating everything :-)

Thanks a ton for this project and for considering this feature