AWS LZA (Landing Zone Accelerator) Configuration Validator
3.4K
LZA-Validator is a docker image that is created from the LZA repository. It allows users to validate the LZA configurations locally before commit them back to the repository.
docker run --rm --volume <path_to_lza_configuration_folder>:/lza/config jc1518/lza-validator:<lza_release>
Use finch if you don't have Docker Desktop license.
For example:
➜ ~ docker run --rm --volume ~/aws-accelerator-config:/lza/config jc1518/lza-validator:v1.3.2
yarn run v1.22.19
$ ts-node $PWD/packages/@aws-accelerator/accelerator/lib/config-validator.ts /lza/config/
2023-03-12 22:33:32.627 | info | config-validator | Config source directory - /lza/config/
2023-03-12 22:33:32.796 | info | iam-config-validator | iam-config.yaml file validation started
2023-03-12 22:33:32.847 | info | network-config-validator | network-config.yaml file validation started
2023-03-12 22:33:33.075 | info | customizations-config-validator | customizations-config.yaml file validation started
2023-03-12 22:33:33.139 | info | config-validator | Config file validation successful.
(node:29) NOTE: The AWS SDK for JavaScript (v2) will be put into maintenance mode in 2023.
Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
(Use `node --trace-warnings ...` to show where the warning was created)
Done in 10.08s.
Tip: Write a bash script wrapper to simplify the usage - Create an executable file /usr/local/bin/lza-validator with following contents.
#!/bin/bash
docker run --rm --volume $2:/lza/config jc1518/lza-validator:$1
Now you can validate the configurations with the syntax: lza-validator <lza_release> <path_to_lza_configuration_folder>.
For example:
lza-validator v1.3.2 ~/aws-accelerator-config
yarn run v1.22.19
$ ts-node $PWD/packages/@aws-accelerator/accelerator/lib/config-validator.ts /lza/config/
2023-03-12 23:17:34.697 | info | config-validator | Config source directory - /lza/config/
2023-03-12 23:17:34.874 | info | iam-config-validator | iam-config.yaml file validation started
2023-03-12 23:17:34.924 | info | network-config-validator | network-config.yaml file validation started
2023-03-12 23:17:35.103 | info | customizations-config-validator | customizations-config.yaml file validation started
2023-03-12 23:17:35.159 | info | config-validator | Config file validation successful.
(node:28) NOTE: The AWS SDK for JavaScript (v2) will be put into maintenance mode in 2023.
Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
(Use `node --trace-warnings ...` to show where the warning was created)
Done in 9.26s.
Content type
Image
Digest
sha256:088f337f6…
Size
731.3 MB
Last updated
6 months ago
docker pull jc1518/lza-validator:v1.15.0-experimental-rc.5