easygcloud
Create a custom IAM role from a YAML definition file
command
gcloud iam roles create devReadRole --project=my-project --file=role-definition.yamlcommand
gcloud iam roles create devReadRole --project=my-project --file=role-definition.yamlPart of the Google Cloud CLI (gcloud) — IAM category.
| Flag | Purpose |
|---|---|
--project | Set to: my-project |
--file | Set to: role-definition.yaml |
Test your recall — not just your reading.
Practice with interactive quiz →