- Added
--csv
option to thepolicy set
command. - Enable or disable policies at scale using a CSV file.
- Update out-of-the-box policy statuses using a CSV.
- Flexibility to only update specific policies.
1️⃣ Generate Example CSV:
pc -o csv --columns policyId,enabled,^name$ policy list|head -n 5 > ~/policies.csv
2️⃣ Edit the CSV:
policyId,name,enabled
82908c8a-6bb8-4c63-b4b5-24967c9f7145,S3 bucket MFA Delete is not enabled,True
...
3️⃣ Run Command:
python3 bin/pc -v policy set --csv ~/policies.csv
- Dry-run option available:
--dry-run
python3 bin/pc -v policy set --csv ~/policies.csv --dry-run