AWS::Organizations::Organization - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::Organizations::Organization

Creates an Amazon organization. The account whose user is calling the CreateOrganization operation automatically becomes the management account of the new organization.

This operation must be called using credentials from the account that is to become the new organization's management account. The principal must also have the relevant IAM permissions.

Important
  • If you delete an organization, you can't recover it. If you created any policies inside of the organization, they're also deleted and you can't recover them.

  • You can delete an organization only after you remove all member accounts from the organization. If you created some of your member accounts using Amazon Organizations, you might be blocked from removing those accounts. You can remove a member account only if it has all the information that's required to operate as a standalone Amazon account. For more information about how to provide that information and then remove the account, see Leave an organization from your member account in the Amazon Organizations User Guide.

  • If you closed a member account before you remove it from the organization, it enters a 'suspended' state for a period of time and you can't remove the account from the organization until it is finally closed. This can take up to 90 days and can prevent you from deleting the organization until all member accounts are completely closed.

For more information, see Deleting an organization in the Amazon Organizations User Guide.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::Organizations::Organization", "Properties" : { "FeatureSet" : String } }

YAML

Type: AWS::Organizations::Organization Properties: FeatureSet: String

Properties

FeatureSet

Specifies the feature set supported by the new organization. Each feature set supports different levels of functionality.

  • ALL – In addition to all the features supported by the consolidated billing feature set, the management account gains access to advanced features that give you more control over accounts in your organization. By default or if you set the FeatureSet property to ALL, the new organization is created with all features enabled and service control policies automatically enabled in the root. For more information, see All features in the Amazon Organizations User Guide.

  • CONSOLIDATED_BILLING – All member accounts have their bills consolidated to and paid by the management account. For more information, see Consolidated billing in the Amazon Organizations User Guide.

    The consolidated billing feature subset isn't available for organizations in the Amazon GovCloud (US) Region.

Feature set ALL provides the following advanced features:

  • Apply any policy type to any member account in the organization.

  • Apply service control policies (SCPs) to member accounts that restrict the services and actions that users (including the root user) and roles in an account can access. Using SCPs you can prevent member accounts from leaving the organization.

  • Enable integration with supported Amazon services to let those services provide functionality across all of the accounts in your organization.

If you don't specify this property, the default value is ALL.

Required: No

Type: String

Allowed values: ALL | CONSOLIDATED_BILLING

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the AccountId. For example: 123456789012.

For more information about using the Ref function, see Ref.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

Arn

The Amazon Resource Name (ARN) of an organization.

Id

The unique identifier (ID) of an organization.

ManagementAccountArn

The Amazon Resource Name (ARN) of the account that is designated as the management account for the organization.

ManagementAccountEmail

The email address that is associated with the Amazon account that is designated as the management account for the organization.

ManagementAccountId

The unique identifier (ID) of the management account of an organization.

RootId

The unique identifier (ID) for the root.

Examples

Organization FeatureSet specified as ALL

This example illustrates how to specify the organization feature set as ALL in AWS::Organizations::Organization.

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "AWS CloudFormation Organizations Template Example", "Resources": { "OrganizationTemplateExample": { "DeletionPolicy": "Retain", "Type": "AWS::Organizations::Organization", "Properties": { "FeatureSet": "ALL" } } } }

YAML

AWSTemplateFormatVersion: 2010-09-09 Description: AWS CloudFormation Organizations Template Example Resources: OrganizationTemplateExample: DeletionPolicy: Retain Type: 'AWS::Organizations::Organization' Properties: FeatureSet: ALL

Organization FeatureSet specified as CONSOLIDATED_BILLING

This example illustrates how to specify the organization feature set as CONSOLIDATED_BILLING in AWS::Organizations::Organization.

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "AWS CloudFormation Organizations Template Example", "Resources": { "OrganizationTemplateExample": { "DeletionPolicy": "Retain", "Type": "AWS::Organizations::Organization", "Properties": { "FeatureSet": "CONSOLIDATED_BILLING" } } } }

YAML

AWSTemplateFormatVersion: 2010-09-09 Description: AWS CloudFormation Organizations Template Example Resources: OrganizationTemplateExample: DeletionPolicy: Retain Type: 'AWS::Organizations::Organization' Properties: FeatureSet: CONSOLIDATED_BILLING

See also