Skip to content
GitHubXDiscord

Organization

The Organization resource lets you manage your AWS Organizations, which allows you to consolidate multiple AWS accounts into an organization that you can centrally manage. For more information, visit the AWS Organizations Organizations documentation.

Create a basic AWS Organization with the default feature set.

import AWS from "alchemy/aws/control";
const organization = await AWS.Organizations.Organization("myOrganization", {
FeatureSet: "ALL" // Optional: Choose between "ALL" or "CONSOLIDATED_BILLING"
});

Configure an organization that adopts an existing resource if it already exists.

const existingOrganization = await AWS.Organizations.Organization("existingOrg", {
FeatureSet: "ALL",
adopt: true // Optional: If true, adopts existing resource instead of failing
});

Create an organization with specific feature set configurations.

const featureConfiguredOrganization = await AWS.Organizations.Organization("featureOrg", {
FeatureSet: "CONSOLIDATED_BILLING" // Use consolidated billing features
});

Update an existing organization to change its feature set.

const updatedOrganization = await AWS.Organizations.Organization("updateOrg", {
FeatureSet: "ALL", // Changing feature set from CONSOIDATED_BILLING to ALL
adopt: true
});