Sceptre/sceptre

Input parameters should be validated

alex-harvey-z3q opened this issue · 0 comments

Subject of the issue

For historical reasons, Sceptre has never validated input parameters that are passed in to CloudFormation stack parameters. Blocks that contain bools, ints etc give rise to confusing failures. For example:

parameters:
  someBool: true

Would lead to an error appearing like:

"Parameter validation failed:\nInvalid type for parameter Parameters[0].ParameterValue, value: 1, type: <class 'bool'>, valid types: <class 'str'>"  

In more complicated examples it is often quite unclear what Parameter[0] means.

A feature requested here to add a layer of input data validation at the time of Stack instantiation after discussion with @jfalkenstein in Slack.

Your environment

  • version of sceptre (sceptre --version) latest
  • version of python (python --version) 3.10
  • which OS/distro