» aws_organizations_organization

Provides a resource to create an organization.

» Example Usage:

resource "aws_organizations_organization" "org" {
  aws_service_access_principals = [
    "cloudtrail.amazonaws.com",
    "config.amazonaws.com",
  ]

  feature_set = "ALL"
}

» Argument Reference

The following arguments are supported:

  • aws_service_access_principals - (Optional) List of AWS service principal names for which you want to enable integration with your organization. This is typically in the form of a URL, such as service-abbreviation.amazonaws.com. Organization must have feature_set set to ALL. For additional information, see the AWS Organizations User Guide.
  • feature_set - (Optional) Specify "ALL" (default) or "CONSOLIDATED_BILLING".

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

» Import

The AWS organization can be imported by using the id, e.g.

$ terraform import aws_organizations_organization.my_org o-1234567