fn teleport_app_name(
cloud_provider: CloudProvider,
region: &str,
environment_id: Uuid,
ordinal: &str,
) -> Result<String, String>Expand description
The Teleport app resource name: {cloud_provider}-{region}-{base32(org_uuid)}-{ordinal}.
It is the name environment-controller registered before this module
took over, so dashboards, runbooks and console impersonation that hold it
keep working.
Returns an error when the result is not a valid DNS-1035 label, which
Teleport requires. A long enough cloud provider and region can exceed the
63-character limit: generic plus a 23-character region leaves room for an
ordinal of up to four digits.