nais valkey credentials
nais valkey credentials NAME [flags]
Creates temporary credentials for accessing a Valkey instance. The credentials are printed to stdout as environment variables.
Options
-p,--permission- Permission level for the credentials (READ, WRITE, READWRITE, ADMIN).
--ttl- Time-to-live for the credentials (e.g. ‘1d’, ‘7d’). Maximum 30 days.
Inherited options
--config- Specify the
PATHto the configuration file. -e,--environment- Specify the
ENVIRONMENTto use for this command. Overrides the default environment from configuration. --no-colors- Disable colors in the output.
-t,--team- Specify the
TEAMto use for this command. Overrides the default team from configuration. -v,--verbose- Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.
Examples
# Create read credentials for a Valkey instance named my-valkey in environment dev, valid for 1 day.
$ nais valkey credentials my-valkey --environment dev --permission READ --ttl 1d