Skip to content

stratumctl custom-roles

Manage custom Cedar roles

Terminal window
stratumctl custom-roles [flags]

Aliases: custom-role, crole

Create a custom role from a statements file

Terminal window
stratumctl custom-roles create --name <n> --scope-type <organization|project> -f <statements.json> [flags]
Terminal window
stratumctl custom-roles create --name instance-operator --scope-type project -f statements.json
stratumctl custom-roles create --name instance-operator --scope-type organization --description "Start and stop instances" -f statements.json
Flag Type Default Description
--description string description
-f, --file string JSON statements array file (‘-’ = stdin)
--name string role name (required)
--scope-type string organization | project (required)

Delete a custom role (–force cascades live bindings)

Terminal window
stratumctl custom-roles delete <name> [--force] [flags]
Terminal window
stratumctl custom-roles delete instance-operator
stratumctl custom-roles delete instance-operator --force
Flag Type Default Description
--force bool false cascade-delete live bindings

Show a custom role (includes generated Cedar)

Terminal window
stratumctl custom-roles get <name> [flags]
Terminal window
stratumctl custom-roles get instance-operator
stratumctl custom-roles get instance-operator --output json

List custom roles

Terminal window
stratumctl custom-roles list [flags]
Terminal window
stratumctl custom-roles list
stratumctl custom-roles list --output json