Skip to content

Drift Detection #3245

Open
Open
@jamengual

Description

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Describe the user story

As a User I will like to be able to detect drift in my infrastructure automatically. Atlantis could detect the change by running a plan for all the projects defined in my atlantis.yaml file against the main branch and create a PR for the ones that have changes pending.

Describe the solution you'd like
I will like Atlantis to be able to enable drift detection, using some sort of configurable schedule/cron job to run plan against all my projects defined in my atlantis.yaml in the main branch and create PR/s for all the projects that found changes and I will like to be able to configure if I want auto apply of those drift PRs or have human intervention and slack alerting.

Describe the drawbacks of your solution
The API might need some adjustments to make this possible.
https://www.runatlantis.io/docs/api-endpoints.html

It will need to be compatible with github, gitlab and Bitbucket, but it can be incrementally released.

Atlantis does not create PRs so that will have to be implemented to make this work or something could be added to the UI to manage the drift feature.

Describe alternatives you've considered
There is a github action implementation of this already that I have tested and it works :
https://github.com/cresta/atlantis-drift-detection

it requires two actions and dependencies on actions that are not so well known so it will be ideal to implement this in atlantis internally instead of relying on different actions to do the job.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality/enhancementhelp wantedGood feature for contributorsneeds discussionLarge change that needs review from community/maintainersrfcRequirements for Comment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions