hardgcloud
Copy an existing IAM role to create a new custom role in a destination project
command
gcloud iam roles copy --source SOURCE_ROLE --destination DEST_ROLE --dest-project PROJECT_IDalso accepted
gcloud iam roles copycommand
gcloud iam roles copy --source SOURCE_ROLE --destination DEST_ROLE --dest-project PROJECT_IDalso accepted
gcloud iam roles copyTest your recall — not just your reading.
Practice with interactive quiz →