Organizational Units
Provisions and manages OUs up to 3 levels deep (root, child, grandchild) under the organization root. Fully configurable via the organizational_units variable. Depends on the governance/organization module for the root ID.
Usage
module "ou" {
source = "hcassc.jfrog.io/iac-terraform-modules-virtual/governance/ou/aws"
version = "0.1.0"
root_id = module.organization.roots[0].id
organizational_units = {
workloads = {
name = "Workloads"
parent_key = "root"
}
workloads_prod = {
name = "Prod"
parent_key = "workloads"
}
sandbox = {
name = "Sandbox"
parent_key = "root"
}
}
}
Requirements
Providers
Resources
| Name |
Description |
Type |
Default |
Required |
| organizational_units |
Map of OU definitions. Each key is a logical name used internally.parent_key references another key in this map (or 'root' for top-level OUs). |
map(object({ name = string parent_key = string tags = optional(map(string), {}) })) |
n/a |
yes |
| root_id |
Organization root ID under which top-level OUs are created (e.g. r-xxxx) |
string |
n/a |
yes |
Outputs