Resource: 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

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 the AWS organization using the id. For example:

import {
  to = aws_organizations_organization.my_org
  id = "o-1234567"
}

Using terraform import, import the AWS organization using the id. For example:

% terraform import aws_organizations_organization.my_org o-1234567