Michael Neil edited this page Sep 14, 2018 · 1 revision

Supported in version 1.5.3+

Validation of your mu.yml is performed in 2 ways each time you run mu. Mu first checks that all properties in your yaml file are valid. No extraneous properties are allowed in the mu.yml config file. Mu also checks most of your properties to ensure they conform to the constraints set by AWS for those properties.

Test Automation

You can run the validation of your mu.yml configuration file separately from other commands. This can be helpful when running automated tests against your stack by first validating that the configuration file is valid before attempting to run any other commands. Validation is baked into mu, does not require any calls to AWS, and is performant. Use the commands exit code to know if your validation passed or not.


# Validate mu.yaml
> mu validate

# Validate a specific configuration file
> mu -c path/to/mu.yml validate
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.