Giter Club home page Giter Club logo

terraform-google-org-policy's Introduction

Coalfire

Google Cloud Organization Policy Terraform Module

Description

This Terraform module makes it easier to manage organization policies for your Google Cloud environment, particularly when you want to have exclusion rules. This module will allow you to set a top-level org policy and then disable it on individual projects or folders easily. Coalfire has tested this module with Terraform version 1.5.0 and the Hashicorp Google provider versions 4.70 - 5.0.

FedRAMP Compliance: High (included as a part of Identity & Access Management)

Usage

module "organization_policies_type_boolean" {
  source = "github.com/Coalfire-CF/terraform-gcp-org-policy"

  for_each = toset(var.boolean_type_organization_policies)

  organization_id = var.org_id
  policy_for      = "organization"
  policy_type     = "boolean"
  enforce         = "true"
  constraint      = "constraints/${each.value}"
}

Requirements

No requirements.

Providers

Name Version
google n/a

Modules

No modules.

Resources

Name Type
google_folder_organization_policy.folder_policy_boolean resource
google_folder_organization_policy.folder_policy_list_allow_all resource
google_folder_organization_policy.folder_policy_list_allow_values resource
google_folder_organization_policy.folder_policy_list_deny_all resource
google_folder_organization_policy.folder_policy_list_deny_values resource
google_folder_organization_policy.folder_policy_list_exclude_folders resource
google_folder_organization_policy.policy_boolean_exclude_folders resource
google_organization_policy.org_policy_boolean resource
google_organization_policy.org_policy_list_allow_all resource
google_organization_policy.org_policy_list_allow_values resource
google_organization_policy.org_policy_list_deny_all resource
google_organization_policy.org_policy_list_deny_values resource
google_project_organization_policy.policy_boolean_exclude_projects resource
google_project_organization_policy.project_policy_boolean resource
google_project_organization_policy.project_policy_list_allow_all resource
google_project_organization_policy.project_policy_list_allow_values resource
google_project_organization_policy.project_policy_list_deny_all resource
google_project_organization_policy.project_policy_list_deny_values resource
google_project_organization_policy.project_policy_list_exclude_projects resource

Inputs

Name Description Type Default Required
allow (Only for list constraints) List of values which should be allowed list(string)
[
""
]
no
allow_list_length The number of elements in the allow list number 0 no
constraint The constraint to be applied string n/a yes
deny (Only for list constraints) List of values which should be denied list(string)
[
""
]
no
deny_list_length The number of elements in the deny list number 0 no
enforce If boolean constraint, whether the policy is enforced at the root; if list constraint, whether to deny all (true) or allow all bool null no
exclude_folders Set of folders to exclude from the policy set(string) [] no
exclude_projects Set of projects to exclude from the policy set(string) [] no
folder_id The folder id for putting the policy string null no
organization_id The organization id for putting the policy string null no
policy_for Resource hierarchy node to apply the policy to: can be one of organization, folder, or project. string n/a yes
policy_type The constraint type to work with (either 'boolean' or 'list') string "list" no
project_id The project id for putting the policy string null no

Outputs

No outputs.

terraform-google-org-policy's People

Contributors

douglas-f avatar jamesmaddox-cf avatar mscribellito avatar

Watchers

 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.