Skip to content

Account

Source: src/AWS/Organizations/Account.ts

A member account created and managed by AWS Organizations.

Account creation is asynchronous — the provider polls the vending request until the account ID is assigned. Must be deployed from the organization’s management account. Changing email replaces the account; changing name updates it in place.

Account Under the Organization Root

const root = yield* Root("Root", {});
const dev = yield* Account("Dev", {
name: "dev",
email: "aws-dev@example.com",
parentId: root.rootId,
});

Account Inside an Organizational Unit

const workloads = yield* OrganizationalUnit("Workloads", {
parentId: root.rootId,
name: "workloads",
});
const prod = yield* Account("Prod", {
name: "prod",
email: "aws-prod@example.com",
parentId: workloads.ouId,
roleName: "OrganizationAccountAccessRole",
tags: { environment: "prod" },
});