Terraform module for managing an AWS Organizations Policy and its attachments.
This module supports every AWS Organizations Policy type, including:
-
Service Control Policies (SCPs)
-
Tag Policies
-
Backup Policies
-
AIServicesOptOut Policies
WARNING: The specified policy type must be enabled in the AWS Organizations master account before it can be attached. Otherwise you will get an error of the form:
Error: creating Organizations Policy Attachment (target-id:policy-id): PolicyTypeNotEnabledException: This operation can be performed only for enabled policy types.
Name | Version |
---|---|
terraform | >= 1.2 |
aws | >= 3.35.0 |
Name | Version |
---|---|
aws | >= 3.35.0 |
Name | Type |
---|
Name | Description | Type | Default | Required |
---|---|---|---|---|
policy | Object of attributes and attachments for an AWS Organizations Policy | object({ |
n/a | yes |
Name | Description |
---|---|
policy | Object of attributes for the AWS Organizations Policy |
policy_attachments | Map of objects containing AWS Organizations Policy attachments |