> ## Documentation Index
> Fetch the complete documentation index at: https://blog.clouddley.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Deploy Valkey Database on a Scaleway Instance using Clouddley

> Learn how to deploy Valkey database on a Scaleway Instance using Clouddley.

export const date_0 = "Updated on August 26, 2025"

Deploying [Valkey](https://valkey.io/) on a Scaleway instance can feel a little overwhelming, especially if you’re just getting started with servers. But not to worry! [Clouddley](https://clouddley.com) simplifies the process, letting you get your Valkey database up and running in no time.
In this guide, we’ll walk through the process of deploying a Valkey database on a Scaleway instance using Clouddley. By the end, you’ll have Valkey ready to go.

## Prerequisites

To follow this tutorial, you will need:

* A [Clouddley account](https://clouddley.com/)
* A [Scaleway account](https://www.scaleway.com/en/)
* An [API key](https://www.scaleway.com/en/docs/iam/how-to/create-api-keys/) on Scaleway to manage your instances
* Basic familiarity with command line interface

## Create a Scaleway Instance

* First, install the Scaleway CLI if you haven’t already done so. It helps you manage Scaleway resources right from your terminal.

```bash theme={null}
curl -sSL https://install.scaleway.dev | bash
```

* Once it’s installed, authenticate by running the command:

```bash theme={null}
scw init
```

You’ll be prompted to enter your <b>access key</b> and <b>secret key</b>. You can [generate](https://www.scaleway.com/en/docs/iam/how-to/create-api-keys/) these from your Scaleway Console under `API Keys`.

* To make sure everything’s working run:

```bash theme={null}
scw instance server list
```

You should see a list of any existing servers or none if this is your first time.

* Configuring security groups is essential for controlling access to your instance. Create a security group that allows HTTP and HTTPS traffic:

```bash theme={null}
scw instance security-group create name=my-sec-group description="Allow port access"
```

This command creates a security group named `Allow port access`.

See the output below:

<Frame caption="Creating a Security Group">
  <img src="https://mintcdn.com/clouddley/YkMcNqR8t_n43UbS/images/scaleway-create-sec.png?fit=max&auto=format&n=YkMcNqR8t_n43UbS&q=85&s=e4f788509b6d9883e066c0f0337cc104" width="1697" height="720" data-path="images/scaleway-create-sec.png" />
</Frame>

* Next, add rules to allow inbound traffic on port `22`. Run the command:

```bash theme={null}
scw instance security-group create-rule \
  security-group-id=<your-sg-id> \
  protocol=TCP \
  direction=inbound \
  action=accept \
  ip-range=0.0.0.0/0 \
  dest-port-from=22
```

<Info>Replace `<your-sg-id>` with the ID of the security group you just created. You can find your security group ID by running the command `$ scw instance security-group list` and this will list all security groups.</Info>
This command allows SSH access to your instance.

* Now, create a new instance:

```bash theme={null}
scw instance server create \
  name=app-server \
  type=DEV1-S \
  image=ubuntu_focal \
  zone=fr-par-1 \
  ip=new \
  security-group=id=<your-sg-id>
```

<Info>Replace `<your-sg-id>` with the ID of the security group you created earlier.</Info>
This command creates a new instance named `app-server` with the `DEV1-S type`, using the `Ubuntu Focal image` in the `fr-par-1` zone. It also assigns a new public IP and applies the security group you created earlier.

You should see output similar to this:

<Frame caption="Creating a Scaleway Instance">
  <img src="https://mintcdn.com/clouddley/YkMcNqR8t_n43UbS/images/main-create-server.png?fit=max&auto=format&n=YkMcNqR8t_n43UbS&q=85&s=2d77ecd404e179e1c00fb1cf80d6630c" width="1427" height="647" data-path="images/main-create-server.png" />
</Frame>

Once your server is ready, get its public IP:

```bash theme={null}
scw instance ip list
```

Your new instance should be listed with its public IP address.
Note it down, as you’ll need it later.

## Deploy

Your scaleway instance is ready. Next, we'll deploy a Valkey database using Clouddley.

<b>Step 1: Access Databases</b>

* Log in to your [Clouddley account](https://app.clouddley.com/auth/signin).
* Navigate to the **Databases** on the left sidebar.
* Click on <b>Deploy Database</b>

<Frame caption="Accessing Databases">
  <img src="https://mintcdn.com/clouddley/p_iVNvg5jCvbMG-4/images/Dbs-dashboard.png?fit=max&auto=format&n=p_iVNvg5jCvbMG-4&q=85&s=98b7fbb13523d355fa5d87886511629f" width="3780" height="1705" data-path="images/Dbs-dashboard.png" />
</Frame>

<br />

<b>Step 2: Configure your virtual machine(VM)</b>

* In the **choose or add server** dropdown, select your VM if it's listed. If not, select **+ Add Virtual Machine** and enter your instance IP address as the **VM host**, along with the **VM User** and **SSH port**.
* After adding the details, verify the connection with the **Clouddley CLI (recommended)** or **SSH.**

<Accordion title="How to Install Clouddley CLI to Verify your Scaleway Instance">
  - Open your local machine’s command line, then connect to the remote VM you want to configure with Clouddley. Use this command to SSH into your Scaleway instance:

  ```bash theme={null}
  ssh root@<your-instance-ip>
  ```

  * Install Clouddley CLI by running the command:

  ```bash theme={null}
  curl -L https://raw.githubusercontent.com/clouddley/cli/main/install.sh | sh
  ```

  * To add the SSH public key, run the command:

  ```bash theme={null}
  clouddley add key
  ```

  Using the CLI, you can deploy resources, manage configurations, and automate tasks efficiently.
</Accordion>

* To check the connection, Click <b>Verify</b>.
* Once verified, click on <b>Next</b>.

<Frame caption="Configure virtual machine on Clouddley">
  <img src="https://mintcdn.com/clouddley/p_iVNvg5jCvbMG-4/images/Dbs-configure-vm.png?fit=max&auto=format&n=p_iVNvg5jCvbMG-4&q=85&s=d18addba7ce0b3a86338d06f5790100d" width="3820" height="1707" data-path="images/Dbs-configure-vm.png" />
</Frame>

<br />

<b>Step 3: Configure your database name</b>

* Enter a **name** for you Valkey database.
* Click on **Next**

<Frame caption="Defining a unique name for the Valkey database">
  <img src="https://mintcdn.com/clouddley/ebzhPjIX3WEVKqHu/images/Dbs-valkey-name.png?fit=max&auto=format&n=ebzhPjIX3WEVKqHu&q=85&s=8c4efbafd3c81a7c1db79225ed907988" width="3822" height="1715" data-path="images/Dbs-valkey-name.png" />
</Frame>

<br />

<b>Step 4: Select your database type and version</b>

* Choose <b>Valkey</b> as your database type.
* Select the <b>version</b> of Valkey you want to deploy.
  <Tip>Ensure you select a version that is compatible with your application requirements.</Tip>
* Enable delete protection to prevent accidental deletions.
* Click on **Deploy DB**

<Frame caption="Selecting the Valkey database type and specifying the version">
  <img src="https://mintcdn.com/clouddley/ebzhPjIX3WEVKqHu/images/Dbs-valkey.png?fit=max&auto=format&n=ebzhPjIX3WEVKqHu&q=85&s=34706cda40102e8bdfbf3972d98cb27c" width="3830" height="1710" data-path="images/Dbs-valkey.png" />
</Frame>

<br />

<b>Step 5: Confirm deployment</b>

* Once your deployment in complete, you'll see a confirmation message `Deployed successfully!`

<Frame caption="Valkey database successfully deployed">
  <img src="https://mintcdn.com/clouddley/p_iVNvg5jCvbMG-4/images/Dbs-success.png?fit=max&auto=format&n=p_iVNvg5jCvbMG-4&q=85&s=27451216c04bccb1a40f0d4d41acb4d0" width="3815" height="1712" data-path="images/Dbs-success.png" />
</Frame>

<br />

<b>Step 6: Open database port on Scaleway instance</b>

* Check the port Clouddley has configured for your Valkey database. Then, add a new rule to your Scaleway security group to allow traffic for that port. For example, if Clouddley configured port `15151`, run:

```bash theme={null}
scw instance security-group create-rule \
  security-group-id=<your-sg-id> \
  protocol=TCP \
  direction=inbound \
  action=accept \
  ip-range=0.0.0.0/0 \
  dest-port-from=15151
```

<Info>Replace `<your-sg-id>` with the ID of your security group and `dest-port-from` with the port Clouddley configured for your database.</Info>

You should see output similar to this:

<Frame caption="Creating a Security Group Rule">
  <img src="https://mintcdn.com/clouddley/YkMcNqR8t_n43UbS/images/scaleway-create-rule-15151.png?fit=max&auto=format&n=YkMcNqR8t_n43UbS&q=85&s=355ce97744ab126538f2971224b09f93" width="1157" height="695" data-path="images/scaleway-create-rule-15151.png" />
</Frame>

Your Valkey database is now ready to be connected to your application.

## Manage your database

The Database dashboard makes it easy to manage your Valkey database on Scaleway instance. You can deploy, monitor, and maintain your database.

Here’s what you can do:

* View real-time logs to check performance and troubleshoot fast.

* Reset passwords securely with built-in authentication and encryption.

* Prevent accidental deletions with built-in delete protection.

* Manage the database users and access control.

<Frame caption="Database dashboard">
  <img src="https://mintcdn.com/clouddley/ebzhPjIX3WEVKqHu/images/Dbs-valkey-overview.png?fit=max&auto=format&n=ebzhPjIX3WEVKqHu&q=85&s=b77eaa2ccf5f6c0b0711cd185272dfe1" width="3770" height="1710" data-path="images/Dbs-valkey-overview.png" />
</Frame>

The dashbaord provides all you need to manage your database effectively.

## Conclusion

You’ve now set up Valkey on your Scaleway instance using Clouddley. Valkey is lightweight and is perfect for projects that need speed. Clouddley makes it easy to deploy and manage your database, so you can focus on building your application.

Got feedback or ideas to improve the experience? We’d love to [hear from you](https://clouddley.productlane.com/roadmap). We can’t wait to see what you deploy next!

<Card title="Getting started with Clouddley?" icon="user-plus" cta="Sign up today and enjoy a 30-day free trial — no credit card required" href="https://app.clouddley.com/auth/signup" horizontal>
  A backend infrastructure for your own compute. Run apps, databases, brokers, and AI workloads on your VMs, bare metal, or VPS.
</Card>

## Resources

* [Clouddley Documentation](https://docs.clouddley.com/)
* [Valkey Documentation](https://valkey.io/docs/)
* [Scaleway Documentation](https://www.scaleway.com/en/docs/)
* [Scaleway CLI Documentation](https://www.scaleway.com/en/docs/cli/)

<div className="flex items-center gap-2.5 mb-6 py-0 my-0">
  <img src="https://res.cloudinary.com/dkbbdg1ko/image/upload/faith-kovi-headshot_hbezxg" alt="Faith Kovi" className="w-12 h-12 rounded-full" />

  <div>
    <div className="flex items-center gap-3">
      <p className="text-sm text-gray-600 dark:text-gray-300 flex items-center gap-1 py-0 my-0">
        <span>By</span>

        <a href="https://x.com/Vera__Kaka" target="_blank" rel="noopener noreferrer" className="font-semibold">
          <span>Faith Kovi</span>
        </a>
      </p>

      <button
        onClick={async () => {
      if (navigator.share) {
        try {
          await navigator.share({
            title: document.title,
            text: "Check this out!",
            url: window.location.href,
          });
        } catch (error) {
          console.error("Error sharing:", error);
        }
      } else {
        alert("Sharing not supported on this device/browser.");
      }
    }}
        className="ml-1 hover:scale-110 transition-transform duration-200 ease-in-out"
      >
        <Icon icon="share-nodes" iconType="light" color="#D1D5DB" size="20" />
      </button>

      <button
        onClick={() => {
      navigator.clipboard.writeText(window.location.href);
      alert("Link copied!");
    }}
        className="ml-1 hover:scale-110 transition-transform duration-200 ease-in-out"
      >
        <Tooltip tip="Copied!">
          <Icon icon="clone" iconType="light" color="#D1D5DB" size="18" />
        </Tooltip>
      </button>
    </div>

    <p className="text-xs text-gray-500 py-1 my-0">
      {date_0}
    </p>
  </div>
</div>
