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 copyPart of the Google Cloud CLI (gcloud) — IAM category.
| Flag | Purpose |
|---|---|
--source | Boolean flag |
--destination | Boolean flag |
--dest-project | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →