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
- Host: GitHub
- URL: https://github.com/env0/terraform-env0-project
- Owner: env0
- License: mit
- Created: 2021-12-10T00:12:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-02T23:44:09.000Z (over 2 years ago)
- Last Synced: 2025-11-16T23:27:37.192Z (7 months ago)
- Language: HCL
- Size: 41 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[
](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 |