nais cloudsql prepare
nais cloudsql prepare APP_NAME [flags]
Prepare grants access to tables and sequences in the chosen schema using the application credentials. By default, access is granted to cloudsqliamuser (individual IAM database users). Use –group to grant access to an existing Cloud SQL IAM group instead. Group membership determines who inherits the group’s database privileges.
Options
--all-privileges- Grant all privileges on the schema to the recipient.
--group- Grant access to this Cloud SQL IAM group instead of cloudsqliamuser.
--schema- Schema to grant access to.
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.
-r,--reason- Justification for accessing the database. Required for audit logging.
-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.