Step 3: Create an RDS Database (Optional)

Creating an RDS database to integrate with your DuploCloud Service

Creating an RDS database is not essential to running a DuploCloud Service. However, as most services also incorporate an RDS, this step is included to demonstrate the ease of creating a database in DuploCloud. To skip this step, proceed to creating an EKS or ECS Service.

An AWS RDS is a managed Relational Database Service that is easy to set up and maintain in DuploCloud for AWS public cloud environments. RDSs support many databases including MySQL, PostgreSQL, MariaDB, Oracle BYOL, or SQL Server.

See the DuploCloud AWS Database documentation for more information.

Estimated time to complete Step 3: 5 minutes.

Prerequisites

Before creating an RDS, verify that you accomplished the tasks in the previous tutorial steps. Using the DuploCloud Portal, confirm that:

Creating an RDS Database

  1. In the Tenant list box, select the dev01 Tenant that you created.

  2. Navigate to Cloud Services -> Database.

  3. Select the RDS tab, and click Add. The Create a RDS page displays.

  4. From the table below, enter the values that correspond to the fields on the Create a RDS page. Accept default values for fields not specified.

  5. Click Create. The database displays with a status of Submitted in the RDS tab. Database creation takes approximately ten (10) minutes.

DuploCloud prepends DUPLO to the name of your RDS database instance.

Create a RDS page fieldValue

RDS Name

docs

User Name

YOUR_DUPLOCLOUD_ADMIN_USER_NAME

User password

YOUR_DUPLOCLOUD_ADMIN_PASSWORD

RDS Engine

MySQL

RDS Engine Version

LATEST_AVAILABLE_VERSION

RDS Instance Size

db.t3.medium

Storage size in GB

30

Validating RDS Database Creation

You can monitor the status of database creation using the RDS tab and the Status column.

When the database status reads Available on the RDS tab on the Database page, the database's endpoint is ready for connection to a DuploCloud Service, which you create and start in the next step.

Troubleshooting Database Creation Failures

  • Invalid passwords - Passwords cannot have special characters like quotes, @, commas, etc. Use a combination of uppercase and lowercase letters and numbers.

  • Invalid encryption - Encryption is not supported for small database instances (micro, small, or medium).

Verifying Database Endpoints

  1. In the RDS tab, select the DUPLODOCS database you created.

  2. Note the database endpoint, the name, and credentials. For security, the database is automatically placed in a private subnet to prevent access from the internet. Access to the database is automatically set up for all resources (EC2 instances, containers, Lambdas, etc.) in the DuploCloud dev01 Tenant. You need the endpoint to connect to the database from an application running in the EC2 instance.

When you place a DuploCloud Service in a live production environment, consider passing the database endpoint, name, and credentials to a DuploCloud Service using AWS Secrets Manager, or Kubernetes Configs and Secrets.

Checking your work

When your database is available and you have verified the endpoint, choose one of these three paths to create a DuploCloud Service and continue this tutorial.

Not sure what kind of Duplcloud Service you want to create? Consider the following:

  • AWS EKS is a managed Kubernetes service. AWS ECS is a fully managed container orchestration service using AWS technology. For a full discussion of the benefits of EKS vs. ECS, consult this AWS blog.

  • Docker Containers are ideal for lightweight deployments and run on any platform, using GitHub and other open-source tools.

Last updated

Logo

© DuploCloud, Inc. All rights reserved. DuploCloud trademarks used herein are registered trademarks of DuploCloud and affiliates