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_FILEalso accepted
gcloud iam roles createcommand
gcloud iam roles create ROLE_ID --project PROJECT_ID --file YAML_FILEalso accepted
gcloud iam roles createPart of the Google Cloud CLI (gcloud) — IAM category.
| Flag | Purpose |
|---|---|
--project | Boolean flag |
--file | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →