Store IAM policies for various GCP projects.
gcloud projects --format=yaml get-iam-policy ${PROJECT} > ${PROJECT}.iam.policy.yaml
-
Update the YAML file for the project
-
Run the update command
./update_iam_policy.sh push --project=${PROJECT}
./update_iam_policy.sh fetch --project=${PROJECT}