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:
-
content
- (Required) The policy content to add to the new policy. For example, if you create a service control policy (SCP), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see the Service Control Policy Syntax documentation. -
name
- (Required) The friendly name to assign to the policy. -
description
- (Optional) A description to assign to the policy. -
type
- (Optional) The type of policy to create. Currently, the only valid value isSERVICE_CONTROL_POLICY
(SCP).
Attribute Reference
Import
aws_organizations_policy
can be imported by using the policy ID, e.g.
$ terraform import aws_organizations_policy.example p-12345678
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/organizations_policy.html