Accounts that belong to an organization are called as member accounts. Each member account belongs to exactly one organizational unit.
Adding Member Accounts to Organizational Units
To specify member accounts that belong to an organizational unit, you list the accounts under the organizational unit's accounts key. You can use plain account ids or key-value objects with id key for the account id.
Example: Setting member accounts
In this example, account 222222222222 is given as a key-value object, while the other accounts are given as plain strings.
When configuring accounts with key-value objects, you can provide additional information that helps you identify the account and its purpose. Takomo uses this information also to validate that operations targeting the accounts are executed against the correct account.
For documentation purposes, you can provide a short description for an account with the description key.
Example: Setting account description
Each account has a name, and you can use the name key to document it.
When the account is deployed, Takomo validates that the name belongs to the same account as the account id does. If there's no match, the deployment is aborted with an error message.
The name key is used only for documentation and validation purposes - you can't change the account's name by changing the account name in the local configuration.
Example: Setting account name
Each account has an email (also used as a username of the account's root), and you can use the email key to document it.
When the account is deployed, Takomo validates that the email belongs to the same account as the account id does. If there's no match, the deployment is aborted with an error message.
The email key is used only for documentation and validation purposes - you can't change the account's email by changing the account email in the local configuration.
Example: Setting account email
Account status is used to control whether the account should be included in organization operations.
If an account is closed but is still shown in the organization, its status must be set as suspended, which will exclude the account from all operations. Closed accounts will disappear from the organization after some days and can then be removed from the organization configuration.
If you don't want to deploy stacks to the account, you can set its status to disabled.