-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
For historical reasons, Sceptre has never validated Stack config [parameters](https://docs.sceptre-project.org/latest/docs/stack_config.html#parameters) that are passed in to CloudFormation stack parameters. Blocks that contain bools, ints etc give rise to confusing failures. For example: ```yaml 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 here is added at the time of Stack instantiation to perform validation of the input stack parameters in a similar manner to how the ignore and obsolete settings were already being checked.
- Loading branch information
1 parent
08f6475
commit f3b7e51
Showing
2 changed files
with
73 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters