src.utils.validate_ticker_stack_combination

src.utils.validate_ticker_stack_combination(ticker: str, stack: str) str

Raise an error if ticker and stack names are not valid names.

The length of the ticker must be between 2 and 6 characters. The stack name can be any length but combined the two must not be larger than 10 characters long due to resource naming limits: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules

Parameters:
  • ticker – The ticker.

  • stack – The name of the stack.

Raises:
  • AssertionError – If ticker is not between 2 and 5 characters long or if

  • the name does not meet the naming requirements.

Returns:

The proposed identifier for the stack.