Skip to content

Instantly share code, notes, and snippets.

View wes-novack's full-sized avatar

Wes Novack wes-novack

View GitHub Profile
@wes-novack
wes-novack / evaluate_iam_policy_actions_for_wildcard.sh
Last active June 30, 2020 02:00
Evaluate your customer managed AWS IAM policies for wildcard actions
#!/bin/bash
BEGIN_RED='\e[31m'
END_RED='\e[0m'
wildcard_policies=()
function get_policy_arns () {
policy_arns=($(aws iam list-policies --query Policies[].Arn --scope Local --output text))
policy_count=${#policy_arns[@]}
echo "$policy_count customer managed policies found."
}
@wes-novack
wes-novack / 4thfile.py
Last active November 2, 2018 00:43
testing-gist-yes
print("Hello again")