FAST: Clarify max prefix len for tenant factory

This commit is contained in:
Simone Ruffilli 2024-05-23 09:43:23 +02:00
parent b55e9320ca
commit 3fe754167e
2 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,7 @@ This stage has only three variables that can be customized:
A small number of attributes can be configured for each tenant in `tenant_configs` regardless of its type (simple or FAST-enabled). A small number of attributes can be configured for each tenant in `tenant_configs` regardless of its type (simple or FAST-enabled).
The key in the tenant map is used as the tenant shortname, and should be selected with care as it becomes part of resource names. If the tenant plans on using FAST stages it should not exceed 3 characters, unless a custom prefix is also defined for the tenant. The key in the tenant map is used as the tenant shortname, and should be selected with care as it becomes part of resource names. If the tenant plans on using FAST stages, the total combined length of string `{fast-prefix}-{tenant-shortname}` should not exceed 11 characters combined, unless a custom prefix is also defined for the tenant.
`admin_principal` is a IAM-format principal (e.g. `"group:tenant-admins@example.org"`) which is assigned administrative permissions on the tenant environment, and impersonation permissions on the automation service account. `admin_principal` is a IAM-format principal (e.g. `"group:tenant-admins@example.org"`) which is assigned administrative permissions on the tenant environment, and impersonation permissions on the automation service account.

View File

@ -72,6 +72,7 @@ def get_names(dir_name):
@click.command() @click.command()
@click.argument('dirs', type=str, nargs=-1) @click.argument('dirs', type=str, nargs=-1)
# max len(f'{fast prefix max length = 9}-{tenant prefix}') = 11
@click.option('--prefix-length', default=11, type=int) @click.option('--prefix-length', default=11, type=int)
@click.option('--failed-only', is_flag=True, default=False) @click.option('--failed-only', is_flag=True, default=False)
def main(dirs, prefix_length=None, failed_only=False): def main(dirs, prefix_length=None, failed_only=False):