Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonbabenko/terrible
[not-WIP] Let's orchestrate Terraform configuration files with Ansible! Terrible!
https://github.com/antonbabenko/terrible
ansible bigblue bigblueterraform ibm refactoring terraform terragrunt
Last synced: 15 days ago
JSON representation
[not-WIP] Let's orchestrate Terraform configuration files with Ansible! Terrible!
- Host: GitHub
- URL: https://github.com/antonbabenko/terrible
- Owner: antonbabenko
- License: other
- Created: 2018-02-07T14:52:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-03T19:44:29.000Z (over 6 years ago)
- Last Synced: 2024-10-04T13:15:41.289Z (about 1 month ago)
- Topics: ansible, bigblue, bigblueterraform, ibm, refactoring, terraform, terragrunt
- Language: Makefile
- Homepage:
- Size: 9.77 KB
- Stars: 23
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Refactor Terraform configurations using Ansible
There is a need to orchestrate Terraform configuration files using powerful features of Ansible (such as search and replace, run terraform/terragrunt commands) and organize this as reusable playbooks.
### TERRIBLE IS ABSOLUTELY NOT INTENDED FOR PRODUCTION USAGE!
Terrible will try to change files, run terraform commands and succeed (potentially) which means your infrastructure can be damaged! Make backups, check and understand `terrible.yml` :)
***In fact, I want to make Terrible a **SAFE** helper which will prompt user, request confirmation when necessary, etc***
## List of features Terrible (potentially) will eventually support
- [ ] List all available Terraform projects
- [ ] Update values in terraform.tfvars
- [ ] Update version of the module
- [ ] Format Terraform code
- [ ] Mass run of Terraform/Terragrunt commands in a set of projects## Usage
1. Define `terraform_project_root_dir` and `terraform_bin` in `vars/settings.yml`.
1. All terrible tasks are described in `terrible.yml`.
1. Run normally:
```bash
$ make terrible
```or with more verbose output:
```bash
$ make terrible-debug
```or with check-mode enabled:
```bash
$ make terrible-check
```## Requirements
Terrible requires Terraform and Ansible installed.
Terraform configs should be in directories as expected by Terragrunt.
## Authors
Created by [Anton Babenko](https://github.com/antonbabenko) to do terrible things.
## License
Apache 2 Licensed. See LICENSE for full details.