Added sumo-mac

This commit is contained in:
Ariel Sosnovsky committed 2024-05-20 15:43:48 -04:00
1 parent d83255dc91
commit c8aaf743b9
21 files changed
+286 -1

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
TF_LOG=trace terraform apply --auto-approve &> apply.log
TF_LOG=trace terraform destroy --auto-approve &> destroy.log
cat destroy.log | grep "DEBUG: Request" | sed -nr 's/^.*Request (.*) Details:/\1/p' | sort | uniq > all.perms
cat apply.log | grep "DEBUG: Request" | sed -nr 's/^.*Request (.*) Details:/\1/p' | sort | uniq >> all.perms
cat all.perms | sort | uniq -u > required.perms
rm all.perms