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_FILEalso accepted
gcloud iam roles creategcloud iam roles create ROLE_ID --filecommand
gcloud iam roles create ROLE_ID --project PROJECT_ID --file ROLE_DEFINITION_FILEalso accepted
gcloud iam roles creategcloud iam roles create ROLE_ID --filePart 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 →