Managed database connection stack
Stacks/Cloud MySQL

Cloud MySQL stack

Connection stack for apps that use managed MySQL services such as Amazon RDS instead of self-hosting MySQL inside the stack.

Start with this stack

Services

Services in the Cloud MySQL stack

The Cloud MySQL stack comes with these services already connected. The table shows which ones are enabled by default when you create an app environment and, where services depend on each other, how they are linked.

Stack serviceBase serviceRole
Cloud MySQL
Cloud MySQLEnabled by default

The full service table lists the configs, settings, actions, cron schedules, volumes, links, backups, and imports of each service in this stack.

Make the stack your own

When you add the stack to your organization, the copy is yours to change. Changes go into a draft that you publish as a new stack revision, and app environments pick them up when they upgrade.

Add services

Add any service from the catalog, such as a cache, a search engine, or a mail relay, and link it to the services that use it.

Remove what you do not need

Leave optional services out when you create an app, disable a service in one app environment, or remove it from the stack for every environment.

Change how services connect

Point a link at another service in the stack or, where the link allows it, at a service of another app or at custom values such as a managed database. Change it for the whole stack or for one app environment.

The stack configuration guide covers adding services, removing them, and changing links.

Integrations

Choose the provider that runs the database

This stack does not run a database. It connects your apps to a database server at one of the providers below, through an integration you create once in your organization. Different app environments can use different providers.

All integrations for this stack lists the managed database providers.

Git-managed configuration

Keep your stack configuration in Git

A stack can be described in a stack.yml file kept in a Git repository: its services, their defaults, and their settings. Wodby imports a change to that file as a new stack revision.

Review changes before they apply

A change to the stack goes through a commit or a pull request before any app environment sees it.

Import updates as new revisions

Wodby follows a branch or semantic-version tags. Running app environments stay on their revision until they are upgraded.

Keep service updates enabled

Updates from Git and automatic updates of services are switched on separately, so a stack kept in Git still receives new service releases.

Read more about Git-backed stacks and how they work with automatic updates.

Security and maintenance

Automatic updates of the services in the stack

With service auto-updates enabled on the stack, Wodby picks up eligible security patches and maintenance releases of its services and creates a new stack revision. Running app environments do not change until they are upgraded to that revision.

You choose which app environments upgrade automatically, and a maintenance window in local time limits when production does. Development and staging can upgrade first.

Read more about automatic updates: policies, revisions, maintenance windows, and automatic upgrades of app environments.

Environments

Create development, staging, and production environments

An app can have development, staging, production, and other environments, all created from the same Cloud MySQL stack, on one cluster or on several.

The same services everywhere

Every environment starts with the services and integrations that the stack enables by default.

Customize each environment

Override values, configs, and settings in one environment. The stack and the other environments stay as they are.

Read more about app environments.

Get started

Create a new Cloud MySQL database environment

Each app environment starts from the stack defaults and keeps its own values.

Technical notes

Technical details of the Cloud MySQL stack

The Cloud MySQL stack represents a MySQL server hosted at a cloud provider and not in your cluster. It runs no containers and has no volumes; its one service points to a managed database you create beforehand.

Uses a managed database that already exists

The stack starts no database server of its own. Its service takes a managed database that you made earlier in Wodby with a cloud integration, and you choose it as the database server while creating the app.

One database and one user

Wodby declares a single database and a single user per environment, both named after the app and its environment. The user's password is generated once and held in a token on the service.

Connection details come through links

A linked app service gets the connection details as environment variables, and the host is the managed server, not a service in your environment. For Amazon RDS, DigitalOcean, or Azure, Wodby also passes the server's CA certificate.

No server settings or backups

Parameters, storage, and versions are handled on the managed database itself. The service has no server settings, backups, or imports of its own in Wodby.

Read the Cloud MySQL stack guide for setup steps, settings, and limits.

FAQ

Common questions about the Cloud MySQL stack

What does the Cloud MySQL stack include?

Connection stack for apps that use managed MySQL services such as Amazon RDS instead of self-hosting MySQL inside the stack. An app environment created from the stack starts with the services that are enabled by default. Optional services are selected when you create it or enabled later.

How can one stack support multiple apps and environments?

One stack can serve any number of apps, and each app can have development, staging, production, and other environments. The stack defines the services and their defaults. Values can differ by environment type, such as dev and prod, and each app environment can override them.

How do stack updates work?

When an included service gets an update, the stack can be marked as outdated or create a new revision automatically under its update policy. Existing app environments stay on their current revision until you upgrade them manually or enable stack auto-upgrades with a maintenance window.

How do integrations work with this stack?

An integration is a connection to an account at an outside provider, such as an SMTP relay, a storage bucket for backups, or a managed database. You create it once in your organization and attach it to the services that use it, in any app environment. The Integrations section of this page lists the providers this stack can use.