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 PATH to 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.
-r, --reason
Justification for accessing the database. Required for audit logging.
-t, --team
Select the Nais TEAM that 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.