You can specify variables for organizational units and accounts with the vars property. It is an object whose keys are variable names and values contain the values for the corresponding variables. Variable values can be strings, numbers, booleans, objects or lists of the aforementioned types.
Organizational units inherit variables from their parents, and accounts inherit variables from the organizational unit they belong to.
If you want to apply variables to all organizational units groups and accounts, you can define the vars property at the top-level of the organization configuration.
Example
This is how you use variables.
organization.yml
# Top-level variablesvars:cost-center:12345budget:2000accountCreation:defaults:iamUserAccessToBilling:trueroleName:MyAccountAdminRoleconstraints:namePattern:"^my-account-[a-z0-9-]+$"emailPattern:"^admin\\+my-account-[0-9a-z-]+@example.com$"masterAccountId:"098765432100"organizationAdminRoleName:MyOrganizationAdminRoleaccountAdminRoleName:MyAccountAdminRoleaccountBootstrapRoleName:MyBootstrapRoleserviceControlPolicies:restrict-by-regions:description:Restrict regionsFullAWSAccess:description:AWS managed default policyawsManaged:truebackupPolicies:MyBackups:description:Backup policyorganizationalUnits:Root:serviceControlPolicies:FullAWSAccessaccounts: - "098765432100"configSets:commonbootstrapConfigSets:deployment-roleRoot/Workloads:serviceControlPolicies:restrict-by-regionsaccountAdminRoleName:AnotherAdminRoleaccountBootstrapRoleName:AnotherBootstrapRole# Variables for organizational unit.# Inherit all variables from the top-level,# add a new variable named 'projectCode',# and override the 'budget' variable. vars:projectCode:1234budget:3000Root/Workloads/Dev: {}Root/Workloads/Test: {}Root/Workloads/Prod:accounts: - id:"876754648373"name:MyAccountemail:account@example.comdescription:This is a production accountconfigSets: - networkingRoot/Sandbox:accounts: - id:"123456789012"accountAdminRoleName:AccountSpecificRoleaccountBootstrapRoleName:AccountBootstrapRolebackupPolicies: - MyBackups# Add account-specific variablesvars:environmentName:sandboxfoo:barsomeList: - one - two - three - "448873940474"