mirror of https://gitlab.com/curben/blog
post(aws-waf): move usage guide to repo
- https://gitlab.com/curben/aws-scripts
This commit is contained in:
parent
2a6f2ebd2a
commit
d5093b21f4
|
@ -12,14 +12,6 @@ I regularly need to audit my company's access control lists (ACLs) implemented i
|
||||||
|
|
||||||
The script is [available here](https://gitlab.com/curben/aws-scripts/-/blob/main/waf-acl.py). It currently only supports Cloudfront ACL, feel free to extend it to support regional ACL.
|
The script is [available here](https://gitlab.com/curben/aws-scripts/-/blob/main/waf-acl.py). It currently only supports Cloudfront ACL, feel free to extend it to support regional ACL.
|
||||||
|
|
||||||
```
|
|
||||||
./waf-acl.py --profile {profile-name} --directory {output-dir} --original --wcu --total-wcu
|
|
||||||
```
|
|
||||||
|
|
||||||
**profile-name**: The profile name as listed in "~/.aws/credentials".
|
|
||||||
**directory**: Output directory. It will be created if not exist. Defaults to current folder.
|
|
||||||
**original**: Preserve the original ACL after conversion and save it with "-original" suffix.
|
|
||||||
|
|
||||||
## ACL schema
|
## ACL schema
|
||||||
|
|
||||||
The underlying format of a web ACL is JSON. In this use case, I'm only concern with two keys:
|
The underlying format of a web ACL is JSON. In this use case, I'm only concern with two keys:
|
||||||
|
|
Loading…
Reference in New Issue