Coder Social home page Coder Social logo

terraform-sentinel-policies's Introduction

terraform-sentinel-policies

Description

This repository contains collections of policies. Policies are seperated by resource where possible or into a global/terraform specific folder. These folders are individually brought in as policy sets into TFE, allowing development or changes in one policy set to not effect another.

Please review documentation regarding the development of sentinel policies, to understand usage.

Individual Policies are documented in their .sentinel files.

Usage

A "quick" overview can be found here. The development process for new policies follows the flow:

  1. Create a .tf manifest that creates the resource that meets both the fail and success conditions you plan to test against.
  2. Create a TFE Workspace using that repository and generate a sentinel mock from TFE's plan operation.
  3. A Mock bundle contains files related to the configuration, the plan operation, a run operation, and an existing state file
  4. Generally you'll use the plan output to check against resources that will be created. The process often looks like: Lookup planned resources by type, iterate through resources detecting valdiation, returning validation boolean.
  5. Using a validation boolean and continueing to iterate through existing resources allows you to log all instances that violate the policy, reducing the mental effort on individuals resolving their manifests.

terraform-sentinel-policies's People

Contributors

robcroteau avatar

Watchers

 avatar

Forkers

swagatdevops

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.