Resource: aws_organizations_policy

Provides a resource to manage an AWS Organizations policy.

Example Usage

data "aws_iam_policy_document" "example" {
  statement {
    effect    = "Allow"
    actions   = ["*"]
    resources = ["*"]
  }
}

resource "aws_organizations_policy" "example" {
  name    = "example"
  content = data.aws_iam_policy_document.example.json
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_organizations_policy using the policy ID. For example:

import {
  to = aws_organizations_policy.example
  id = "p-12345678"
}

Using terraform import, import aws_organizations_policy using the policy ID. For example:

% terraform import aws_organizations_policy.example p-12345678