stratumctl custom-roles
Manage custom Cedar roles
stratumctl custom-roles [flags]Aliases: custom-role, crole
Subcommands
Section titled “Subcommands”stratumctl custom-roles create: Create a custom role from a statements filestratumctl custom-roles delete: Delete a custom role (–force cascades live bindings)stratumctl custom-roles get: Show a custom role (includes generated Cedar)stratumctl custom-roles list: List custom roles
stratumctl custom-roles create
Section titled “stratumctl custom-roles create”Create a custom role from a statements file
stratumctl custom-roles create --name <n> --scope-type <organization|project> -f <statements.json> [flags]Examples
Section titled “Examples”stratumctl custom-roles create --name instance-operator --scope-type project -f statements.jsonstratumctl 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) |
stratumctl custom-roles delete
Section titled “stratumctl custom-roles delete”Delete a custom role (–force cascades live bindings)
stratumctl custom-roles delete <name> [--force] [flags]Examples
Section titled “Examples”stratumctl custom-roles delete instance-operatorstratumctl custom-roles delete instance-operator --force| Flag | Type | Default | Description |
|---|---|---|---|
--force |
bool | false |
cascade-delete live bindings |
stratumctl custom-roles get
Section titled “stratumctl custom-roles get”Show a custom role (includes generated Cedar)
stratumctl custom-roles get <name> [flags]Examples
Section titled “Examples”stratumctl custom-roles get instance-operatorstratumctl custom-roles get instance-operator --output jsonstratumctl custom-roles list
Section titled “stratumctl custom-roles list”List custom roles
stratumctl custom-roles list [flags]Examples
Section titled “Examples”stratumctl custom-roles liststratumctl custom-roles list --output json