YAML validator for the CLI
Project description
Step Function Validator for e.g. (AWS)
An issue we have is that we are quite human and we often make mistakes in the YAML "code".
These could be syntactical errors (for example, an incorrect indent), but also semantical (for example, forgetting to add a required parameter to a step).
We only find out about these errors in the last step of the CI/CD, when the step function fails to deploy to AWS. This makes troubleshooting very.. slow...
So we came up with this little tool.
Authors
Installation
- create virtual environment in python and activate this one in Terminal or CMD
python3 -m venv env
Windows:
env\Script\activate.bat
Mac/Linux:
source env/bin/activate
- pip install the tool via pypi
####################### [ NOTE !!! ] ############################################################
# you NEED to see in your command line the env before your prompt
# so you know that you are in your virtual environment:
#
# example: (env) niels@Mac%
################################################################################################
if above is clear then:
pip install stepfunction-validator or pip3 install stepfunction-validator # to install the required libraries and the tool
Usage/Examples
YAML validator for the CLI
Example: python app.py -c <test.yaml> [-s <stepfunctions_schema.json>] [--no-lint]
This will validate a YAML file against the schema you provided in the CLI
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for stepfunction_validator-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59b6a9d252bcd2c70b0e2739991787a17aa4937eff3b0580b958f017ac072512 |
|
MD5 | dabf7ee767b3b73860a7c977e828f2e6 |
|
BLAKE2b-256 | 51fe3b91e34b82129ec36439eb41397cb4acc010bde9ea3486b59341f3bb54a9 |
Close
Hashes for stepfunction_validator-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2bf06162a391104efc878a186b9c45e2c21b4d97bcf2faa9bca9d09cadf0bca |
|
MD5 | d4de552324d7f585913ef020944660a1 |
|
BLAKE2b-256 | 3ca7ff8fdc15a28534ca124fa0ac8ac53ffcd6fb84e980d381b024c0caee8707 |