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.
Minimal Example
Section titled “Minimal Example”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"});
Advanced Configuration
Section titled “Advanced Configuration”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});
Managing Features
Section titled “Managing Features”Create an organization with specific feature set configurations.
const featureConfiguredOrganization = await AWS.Organizations.Organization("featureOrg", { FeatureSet: "CONSOLIDATED_BILLING" // Use consolidated billing features});
Handling Organization Updates
Section titled “Handling Organization Updates”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});