nais opensearch credentials
nais opensearch credentials NAME [flags]
Creates temporary credentials for accessing an OpenSearch 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. --confirm-login- Ask for confirmation before starting required login flows. Interactive terminals only.
-e,--environment- Select or filter by Nais
ENVIRONMENT, for example dev-gcp or prod-gcp. Overrides the environment configured with nais defaults set environment. --no-colors- Disable colors in the output.
-t,--team- Select the Nais
TEAMthat owns the resources. Overrides the team configured with nais defaults set team. -v,--verbose- Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.
Examples
# Create read credentials for an OpenSearch instance named my-opensearch in environment dev, valid for 1 day.
$ nais opensearch credentials my-opensearch --environment dev --permission READ --ttl 1d