An open API service indexing awesome lists of open source software.

https://github.com/env0/terraform-env0-project

Terraform Module for creating env0 Projects with Policies
https://github.com/env0/terraform-env0-project

Last synced: 5 months ago
JSON representation

Terraform Module for creating env0 Projects with Policies

Awesome Lists containing this project

README

          

[env0 Logo](https://env0.com)

# Terraform env0 Project Module
Using the env0 TF provider to create an env0 Project (and sub projects) along with configuring the team and role assignments.

See [examples](examples/README.md) for how to use this module

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.2.0 |
| [env0](#requirement\_env0) | > 1.4.0 |

## Providers

No providers.

## Modules

| Name | Source | Version |
|------|--------|---------|
| [project](#module\_project) | ./modules/projects | n/a |
| [sub\_project](#module\_sub\_project) | ./modules/projects | n/a |

## Resources

No resources.

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [projects](#input\_projects) | map of object with names, descriptions, credentials and policies |

map(
object({
name = string
description = optional(string)
credential = optional(string)
policy = optional(object({
continuous_deployment_default = optional(bool)
disable_destroy_environments = optional(bool)
include_cost_estimation = optional(bool)
number_of_environments = optional(string)
number_of_environments_total = optional(string)
requires_approval_default = optional(bool)
run_pull_request_plan_default = optional(bool)
skip_apply_when_plan_is_empty = optional(bool)
skip_redundant_deployments = optional(bool)
}))
team_role_assignments = optional(list(
object({
team_name = string
custom_role_name = string
})
))
sub_projects = optional(map(
object({
name = string
description = optional(string)
credential = optional(string)
policy = optional(object({
continuous_deployment_default = optional(bool)
disable_destroy_environments = optional(bool)
include_cost_estimation = optional(bool)
number_of_environments = optional(string)
number_of_environments_total = optional(string)
requires_approval_default = optional(bool)
run_pull_request_plan_default = optional(bool)
skip_apply_when_plan_is_empty = optional(bool)
skip_redundant_deployments = optional(bool)
}))
team_role_assignments = optional(list(
object({
team_name = string
custom_role_name = string
})
))
})
))
})
)
| n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [projects](#output\_projects) | n/a |
| [sub\_projects](#output\_sub\_projects) | n/a |