terraform-aws-control_tower_account_factory
terraform-aws-control_tower_account_factory copied to clipboard
Variable validation for AccountName and other parameters
Problem:
Currently there are no validation for input parameter in aft-account-request
module. User must dig into account request processor to find out what is going on.
Example error:
[ERROR] ClientError: An error occurred (ValidationException) when calling the ProvisionProduct operation: 1 validation error detected: Value 'My Test Sandbox1' at 'provisionedProductName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z0-9][a-zA-Z0-9._-]*
Suggestion: Add variable validation on aft-account-request variables to fail this earlier on aft-account-request pipeline.
Hi @wellsiau-aws,
Thanks for providing these details.
We have an existing item in our backlog to improve the customer experience here by adding validation or otherwise decoupling account names from SC product names.
I just got bit by this one AccountName
cannot have spaces in the name at all. Seems weird because you can have names with spaces from the Console.