Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 3.1 KB

File metadata and controls

64 lines (47 loc) · 3.1 KB

Organizational Unit Module

Creates an organizational unit with SCP if required.

Examples

Minimal configuration:

module "organizational_unit" {
  source  = "george-richardson/personal-org/aws//modules/organizational_unit"
  version = ">= 1.0.0"

  name      = "example"
  parent_id = module.organization.root_organizational_unit
}

Requirements

Name Version
terraform >= 1.2.0
aws >= 4.9.0

Providers

Name Version
aws 4.22.0

Modules

Name Source Version
scp ../scp n/a

Resources

Name Type
aws_organizations_organizational_unit.ou resource

Inputs

Name Description Type Default Required
allow_ec2_instance_types List of EC2 instance types to allow. If not set then all instance types are allowed. list(string) [] no
allow_rds_instance_types List of RDS instance types to allow. If not set then all instance types are allowed. list(string) [] no
allow_regions List of regions to allow AWS activity within. (Global services are ignored by this list) list(string) [] no
allow_services List of services to allow API activity against. All other services will be blocked. Be careful about blocking IAM and other foundational services. When not set all services are allowed. list(string) [] no
block_root_user Should the root user have all access blocked? bool false no
name Alias for the account. string n/a yes
override_policy_documents List of JSON SCP policy documents that will be merged with the generated SCP. list(string) [] no
parent_id ID of the organizational unit this organizational unity should be a child of. string n/a yes
protected_iam_resources List of IAM ARNs which will be protected from modification by all users. list(string) [] no

Outputs

Name Description
id ID of the organizational unit.