GithubHelp home page GithubHelp logo

antonbabenko / terrible Goto Github PK

View Code? Open in Web Editor NEW
23.0 5.0 2.0 10 KB

[not-WIP] Let's orchestrate Terraform configuration files with Ansible! Terrible!

License: Other

Makefile 100.00%
terragrunt ansible terraform refactoring ibm bigblue bigblueterraform

terrible's Introduction

Refactor Terraform configurations using Ansible

Terrible - 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.

  2. All terrible tasks are described in terrible.yml.

  3. Run normally:

$ make terrible

or with more verbose output:

$ make terrible-debug

or with check-mode enabled:

$ 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 to do terrible things.

License

Apache 2 Licensed. See LICENSE for full details.

terrible's People

Contributors

antonbabenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.