# Deploying organization

You use the deploy organization command to make your AWS organization match the configuration found in the organization configuration file.

#### Example

This is how you deploy your configuration:

```bash
tkm org deploy
```

## Organization admin role

By default, Takomo uses the credentials currently available in the terminal session to execute operations that query information from the organization and alter its state.

You can also instruct Takomo to use a specific IAM role to perform these organization management operations by setting the `organizationAdminRoleName` property in the organization configuration.

{% hint style="info" %}
Please note that you need to give only a role name and not a full role ARN.
{% endhint %}

#### Example

This is how you set the organization admin role.

{% code title="organization/organization.yml" %}

```yaml
masterAccountId: "098765432100"

# This is how you tell Takomo to use an IAM role 
# named 'MyOrganizationAdminRole' when executing 
# organization management actions.
organizationAdminRoleName: MyOrganizationAdminRole

serviceControlPolicies:
  restrict-by-regions:
    description: Restrict regions
  FullAWSAccess:
    description: AWS managed default policy
    awsManaged: true
    
backupPolicies:
  MyBackups:
    description: Backup policy    
    
organizationalUnits:
  Root:
    serviceControlPolicies: FullAWSAccess
    accounts:
      - "098765432100"    
  Root/Workloads:
    serviceControlPolicies: restrict-by-regions
  Root/Workloads/Dev: {}
  Root/Workloads/Test: {}
  Root/Workloads/Prod: 
    accounts:
      - id: "876754648373"
        name: MyAccount
        email: account@example.com
        description: This is a production account
  Root/Sandbox:
    accounts:
      - id: "123456789012"
        backupPolicies:
          - MyBackups
      - "448873940474"
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://organizations.takomo.io/organization-configuration/deploying-organization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
