ezgh iam policies create <name> --document @policy.json [--description d] [flags]Create a custom policy. The document comes from --document @file.json, --document - (stdin), or stdin when --document is left out:
{
"statements": [
{ "effect": "allow", "actions": ["projects.list", "projects.get"], "resources": ["*"] },
{ "effect": "deny", "actions": ["projects.delete"], "resources": ["ezgh::org_k3f9a0x2m7qp:prj_*"] }
]
}Part of ezgh iam policies.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--description |
string | what the policy is for | |
--document |
string | the policy document: @file.json, - for stdin, or the JSON |
This command also takes the global flags.