← IAM203 / 640
hardgcloud

Create a custom IAM role in a project from a YAML permissions file

command

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

also accepted

gcloud iam roles create

Test your recall — not just your reading.

Practice with interactive quiz →