File size: 435 Bytes
d16079c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

set -eou pipefail

echo "Linting..."
pip -q install -r ../requirements.txt
pylint --recursive=y --rcfile=../pylintrc ./

echo "Synthing..."
npx cdk synth -q

echo "Checkov..."
checkov --framework cloudformation --quiet -f cdk.out/*.template.json

echo "Guard..."
cfn-guard validate \
    --rules ../../../cloudformation/rules/guard-rules-registry-all-rules.guard \
    --show-summary fail --data cdk.out/*.template.json