Add, Delete, View, and Switch Tenants

Add tenants to your Armory CD-as-a-Service organization.

Before you begin

  • You have the Organization Admin role.
  • You have installed the CLI and are logged into CD-as-a-Service.

Create tenants

Every organization has a main tenant. You can create one or more additional tenants using a YAML config file and the CLI. Your YAML file should have the following structure:

tenants:
  - <tenant-name-1>
  - <tenant-name-2>

Run the following command to add those tenants:

armory config apply -f <path-to-tenant-config.yaml>

Example

In the following example, you create tenants for two applications and a sandbox.

  1. Create a file called config.yaml.

  2. Add the following content:

    tenants:
      - potato-facts-app
      - sample-app
      - sandbox
    

    Save your file.

  3. Run the following command from the directory where you saved your config.yaml file:

    armory config apply -f config.yaml
    

    Output should be:

    Created tenant: potato-facts-app
    Created tenant: sample-app
    Created tenant: sandbox
    
  4. Confirm your tenants have been added:

    armory config get
    

    Output should be:

    tenants:
     - main
     - potato-facts-app
     - sample-app
     - sandbox
    

View tenants

Non-Admin users only see tenants that they belong to. If users don’t have a role belonging to a particular tenant, they don’t see those tenants.

You can use the CLI to view your tenants:

armory config get

Output shows the list of tenants. When you only have access to the default tenant, the output is:

tenants:
 - main

You can also use the UI to view the list of tenants you can access. See the Switch tenants section.

Delete a tenant

Contact a CD-as-a-Service Dev Advocate if you need to delete a tenant.

Switch tenants in the UI

You use the UI to switch to the tenant whose resources you want to see. CD-as-a-Service only displays the *Switch Tenants user content menu item when you have access to more than one tenant.

Switch Tenant.
  1. Access your user context menu.
  2. Hover over Switch Tenant to display a list of accessible tenants.
  3. Click the tenant you want to switch to.

Last modified October 31, 2023: (f370fe9)