Skip to content

Latest commit

 

History

History
 
 

gcp_iam_policies

IAM Policies

Store IAM policies for various GCP projects.

To start a new policy file

gcloud projects --format=yaml get-iam-policy ${PROJECT} > ${PROJECT}.iam.policy.yaml

To push the local changes to the iam policy for a project

  1. Update the YAML file for the project

  2. Run the update command

     ./update_iam_policy.sh push --project=${PROJECT}
    

To fetch the current policy

 ./update_iam_policy.sh fetch --project=${PROJECT}