Giter VIP home page Giter VIP logo

giovannibaratta / terraapprove Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 178.38 MB

TerraApprove is a tool that can be integrated in a CI/CD pipeline and can be used to reduce the risk of applying a Terraform plan that can cause undesired changes. The tool evaluates a plan and the Terraform codebase and decide if approval is required.

Home Page: https://giovannibaratta.github.io/TerraApprove/

License: MIT License

Shell 9.42% TypeScript 82.35% JavaScript 1.25% HTML 0.29% Ruby 0.81% Dockerfile 0.71% HCL 1.81% Java 3.37%
cicd terraform

terraapprove's Introduction

codebeat badge Coverage Status

TerraApprove

TerraApprove is a tool that can be integrated in a CI/CD pipeline and can be used to reduce the risk of applying a Terraform plan that can cause undesired changes. All the resources that require special attention (e.g. stateful resources) can be tagged with a decorator. TerraApprove will then check if the plan contains any of these resources and will produce an output that can be used to decide if the plan can be applied with -auto-approve or if manual approval is required.

TerraApprove workflow

See here for the list of supported features.

Why TerraApprove ?

TerraApprove is a project created to experiment with new technologies (e.g. GitHub Copilot, devcontainers) and project management activities on something that is a little more than a toy project.

Folder structure

The folder structure is as follows:

.
├── artifacts # Contains the artifacts (executables, ...) of the project
├── configurations # Contains example of .terraapprove configurations
├── core # Contains the source code of the application
├── e2e-tests # Contains e2e tests based on bats
└── examples # Contains examples of how the application can be used

How to build

The project can be built using the following command:

cd core
yarn install
yarn generate:artifacts

How to release a new version

Tag a commit, push it to the main branch and manually run the GitHub Action "Build and Publish Artifact" specifying the tag.

git tag -a vX.Y.Z -m "Release vX.Y.Z"
git push origin vX.Y.Z

terraapprove's People

Contributors

dependabot[bot] avatar giovannibaratta avatar

Watchers

 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.