https://github.com/woodprogrammer/haydarctl
Configuration drift checker with real resources
https://github.com/woodprogrammer/haydarctl
iac python python3 terraform terragrunt
Last synced: 5 months ago
JSON representation
Configuration drift checker with real resources
- Host: GitHub
- URL: https://github.com/woodprogrammer/haydarctl
- Owner: WoodProgrammer
- Created: 2022-01-01T21:59:02.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-08T21:34:46.000Z (over 3 years ago)
- Last Synced: 2023-08-06T16:56:35.088Z (about 2 years ago)
- Topics: iac, python, python3, terraform, terragrunt
- Language: Python
- Homepage:
- Size: 319 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
haydarctl [DEMO]
![]()
The config drift checker with terragrunt states to detect manual changes on your infra out of the as-code stack.# Why haydarctl ?
In IAC universe we can seperate drift problem in two main part.Resource and Configuration drifts.
According to the daily support cases or less privileged user access or bypassed manual changes from the terraform code blocks that can cause configurational drifts.
In this example diagram at day-0 teams create their own resource on AWS.After that some of the manual changes and non-imported resources can make your code blocks too far away from the desired state of the terraform.
To check your state and code block compability in specified time periods you can use the haydarctl.
## How it works ?
Haydarctl needs two important thing;
* python3
* terragruntAfter you installed them you can start to run it.
Haydarctl get the directory address from command line and you can run this any directory address you want.
## Installation
```sh
git clone git@github.com:WoodProgrammer/haydarctl.git
pip3 install --upgrade ./haydarctl```
To verify the installation run this command```sh
haydarctl --help
haydarctl --output fix --workspace infra_repository
__ __ __ __ __
/ / / / ____ _ __ __ ____/ / ____ _ _____ _____ / /_ / /
/ /_/ / / __ `/ / / / / / __ / / __ `/ / ___/ / ___/ / __/ / /
/ __ / / /_/ / / /_/ / / /_/ / / /_/ / / / / /__ / /_ / /
/_/ /_/ \__,_/ \__, / \__,_/ \__,_/ /_/ \___/ \__/ /_/
/____/This tools compares Terraform state and Real Resources and it generates a output file for you
Caveats: This tool is not stable yet and your feedbacks are very important for us please do not hesiate to create Issue&Pr on Github.
```## Documentation
Configuration Drifts and Haydarctl
## UsageYou can check this video
haydarctl start to fetch github repositories and checks the each terragrunt modules and compares the states built-in terragrunt commands and generates drift templates.To see the examples you can check the issues directory.
## Respect to ;
Haydar Haydar - Neşet Ertaş
[](https://www.youtube.com/watch?v=YnKI_7WY3nE)