← IAM425 / 640
hardgcloud

Create a custom IAM role from a YAML or JSON role definition file

command

gcloud iam roles create ROLE_ID --project PROJECT_ID --file ROLE_DEFINITION_FILE

also accepted

gcloud iam roles creategcloud iam roles create ROLE_ID --file

Test your recall — not just your reading.

Practice with interactive quiz →