Skip to main content
Qovery creates it in the Scaleway project of the environment’s cluster, as a Blueprint service in one of your environments.
New to this? You don’t need to know Kubernetes or Terraform. Qovery sets up Scaleway MySQL in your cloud account and manages it for you: you fill in a form, or paste the prompt below into your coding agent. The values it publishes, listed under Outputs, reach your other services as environment variables. Qovery tells you when a newer version of the Blueprint is available. Check the requirements in the Reference section before you start, and try it first in a development environment.

Create it

  1. Open the environment, then New service › Blueprint.
  2. Find Scaleway MySQL in the catalog and pick the major version.
  3. Fill in the variables. Required ones are marked; the others use their defaults.
  4. Create the service, and deploy it now or later.
You don’t add any file to your repository. Qovery creates the Blueprint from the Console or the API.

Variables and outputs

Generated from qbm.yml at SCW/mysql/8/1.5.2, the manifest the Console form is built from.
Outputs become environment variables that other services in the environment can use. By default Qovery also creates an alias for each output, prefixed with the Blueprint’s name; see Aliases Qovery creates for outputs for the naming rules and the cases where no alias is created.
Secret variables and outputs are encrypted and masked in Qovery, but Terraform can also keep their values, and values derived from them, in its state. With the Qovery-managed state backend (the default), Qovery stores the state. If you use your own backend, protect it and keep state files out of version control.

Reference

From the Blueprint’s README. Creates a Scaleway Managed Database for MySQL with a database and admin user. Supports configurable node type, storage, backups, slow query logging, HA cluster mode, and an optional network ACL. The Scaleway instance name is composed as {cluster_name}-{instance_name}.

Migration from 1.0.x

1.1.0 drops the standalone scaleway_rdb_user.this resource — the admin user is now created via user_name/password on scaleway_rdb_instance (the canonical Scaleway provider pattern). For existing deployments at 1.0.x, run once before upgrading:
This removes the resource from state without touching the user in Scaleway; the instance then takes ownership on the next apply.

Networking

The instance is always attached to the private network of the Qovery cluster, read from the Kapsule cluster qovery-<cluster short id>. Applications in the cluster reach it there. With publicly_accessible, a public endpoint filtered by acl_allowed_cidr is added. Public access needs a narrower CIDR than the 0.0.0.0/0 default, which validation rejects in public mode.

Upgrading to 1.5.0

Before 1.5.0, publicly_accessible = false did not make the instance private: Scaleway created a public endpoint anyway, with its default ACL open to 0.0.0.0/0. Upgrading an existing instance attaches it to the private network and points endpoint_ip / endpoint_port at the private endpoint, but the old public endpoint stays, because the provider never removes it once the load_balancer block is gone. Delete that endpoint in the Scaleway console once the applications use the private one.

Variables

Required

Credentials

Both are optional — omit them and Qovery supplies the values, the way native managed databases did. In the console, leaving the field blank omits it. Through the API or Terraform, omit the variable rather than sending an empty string: the platform rejects an empty variable value.

Engine & sizing

Backups, logging & ACL

Outputs

Required Scaleway IAM permissions

Scaleway IAM permissions are granted via permission sets on a policy attached to the application/user whose API key is used. Attach a policy with the following permission sets, scoped to the target Project: The minimum scope is the Project where Qovery deploys this blueprint.