Skip to content
GCP managed IAM roles
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
roles Update 2020-01-22 22:39:55 CET Jan 22, 2020
README.md Initial commit: README Dec 13, 2019
gcp-roles.json Update 2020-01-22 22:39:55 CET Jan 22, 2020

README.md

Overview

Track changes in GCP predefined IAM roles. Inspired by https://github.com/SummitRoute/aws_managed_policies

Updating

# collect list of gcp roles
gcloud iam roles list --format json > gcp-roles.json
# remove old roles
rm -rf roles && mkdir roles
# synchronize roles
cat gcp-roles.json | jq -r '.[].name' | xargs -n3 -I{} sh -c 'gcloud iam roles describe --format json {} > {}.json 2>&1'
# git commit update
git add . && git commit -m "Update $(date '+%F %T %Z')"
You can’t perform that action at this time.