Skip to content

ezgh keys grants create

Let a user or bot use a key.

Updated View as Markdown
ezgh keys grants create <key> --name n --grantee user:<id>|bot:<id> --action a... [--context key=value]... [flags]

Give a user or bot some of a key’s use actions, without changing its policy. The grant stands in for the key policy only: IAM must still allow the grantee. You can only pass on what the policy gives you. --context limits the grant to requests with those encryption context values. A bot is named by its UUID, in lower case, not its bot_… slug.

Part of ezgh keys grants.

Examples

ezgh keys grants create kms_… --name ci --grantee bot:0199… --action keys.keys.decrypt

Flags

Flag Type Default Description
--action string, repeatable a use action, such as keys.keys.decrypt; repeat for more
--context string, repeatable only with this encryption context, key=value; repeat for more
--context-file string only with this encryption context, from a file holding a JSON object of strings
--grantee string who it’s for: user:<id> or bot:<id>
--name string what the grant is for

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close