» aws_organizations_policy

Provides a resource to manage an AWS Organizations policy.

» Example Usage

resource "aws_organizations_policy" "example" {
  name    = "example"

  content = <<CONTENT
{
  "Version": "2012-10-17",
  "Statement": {
    "Effect": "Allow",
    "Action": "*",
    "Resource": "*"
  }
}
CONTENT
}

» Argument Reference

The following arguments are supported:

» Attribute Reference

  • id - The unique identifier (ID) of the policy.
  • arn - Amazon Resource Name (ARN) of the policy.

» Import

aws_organizations_policy can be imported by using the policy ID, e.g.

$ terraform import aws_organizations_policy.example p-12345678