All Products
Search
Document Center

Data Management:User guide for Dify account version

Last Updated:Mar 30, 2026

Setting up Dify typically requires provisioning and connecting multiple backend services — a relational database, a cache, and a vector database — then registering each one separately. DMS removes this overhead by provisioning all three resources with a single click, registering them with DMS under security hosting automatically.

This guide covers the Dify account logon version, where users sign in with an email and password. For the DMS account logon version, see Purchase and configure resources required for Dify.

Prerequisites

Before you begin, make sure you have:

  • An Alibaba Cloud account with the following RAM permissions:

    • AliyunDMSFullAccess

    • AliyunRAMReadOnlyAccess

    • AliyunECSReadOnlyAccess

    • AliyunVPCReadOnlyAccess

    • AliyunComputeNestUserReadOnlyAccess

    • AliyunROSReadOnlyAccess

    • AliyunGPDBReadOnlyAccess

    • AliyunRDSReadOnlyAccess

    • AliyunKvstoreReadOnlyAccess

  • Access to one of the supported regions: China (Hangzhou), China (Hong Kong), or Singapore

If any permissions are missing, click Grant Permission on the deployment page.

Additional requirements for importing existing instances

Warning

Verify all of the following conditions before selecting Import an existing instance. Skipping any requirement will cause the deployment to fail.

  • Your account has the administrator or database administrator (DBA) role in DMS.

  • The relational database, Redis, and vector database instances you want to import are already added to DMS.

  • Security hosting is enabled for all instances.

For more information, see Preparations for creating a Dify instance based on existing databases.

Deploy Dify

Step 1: Open the deployment page

Log in to the Alibaba Cloud Management Console and go to the Dify on DMS deployment page.

Step 2: Configure basic settings

FieldDescription
Billing methodThe billing method for the service. Affects resource costs and settlement.
RegionWhere the service is deployed. All Dify on DMS resources must be in the same region.
Deployment versionThe Dify version type. Dify Enterprise Edition is a paid version for medium to large organizations and requires a separate license.
Logon methodSelect Dify account logon. Users sign in with an email and password, and manage their own accounts. They can log on through a private network, public endpoint, or IP address.
SR role authorizationGrants the service role (SR) permissions for this service. Click Grant Permission if not yet authorized.
SLR role authorizationGrants the service-linked role (SLR) to delegate operations on other service resources. Click Grant Permission if not yet authorized.
Associated service activationIndicates whether dependent services are activated. Click Grant Permission to activate if needed.
Workspace creation methodHow the workspace is created.
Workspace nameA unique name to identify the workspace.
Network typeThe network type. Default is Virtual Private Cloud (VPC).
VPCThe VPC where the service runs.
Zone and vSwitchThe primary zone and subnet. The primary node is deployed here.
Secondary zone and vSwitchThe secondary zone and vSwitch for disaster recovery and failover.
Internet NATWhether to configure a NAT gateway, giving private network resources internet access.
Private and public endpointsEnabling this activates PrivateZone, elastic IP address (EIP), and Application Load Balancer (ALB) on a pay-as-you-go basis. See PrivateZone billing, EIP billing, and ALB billing rules for pricing.

Step 3: Configure Dify storage

Select the data storage method for the Dify application.

FieldDescription
DIFY versionThe currently deployed Dify version. Determines available features and API operations.
Storage configurationSelect enterprise SSD (ESSD) or Object Storage Service (OSS).
Number of replicasHow many times data is replicated to ensure reliability.
Deployment resource specificationThe compute resources for the deployment instance. Affects performance and concurrent processing.

If you select OSS, configure the additional fields:

FieldDescription
PathThe file storage path in OSS.
OSS bucketThe bucket to store unstructured data such as static resources, attachments, and backups.

Step 4: Configure databases

Configure a metadatabase, cache, and vector database for Dify. For each, either create a new instance or import an existing one.

DatabaseCreate newImport existing
MetadatabaseSelect specifications, storage class, and storage size based on your workload.Select a PostgreSQL instance with security hosting enabled.
RedisSelect an appropriate Redis configuration.Select a Redis instance with security hosting enabled.
Vector databaseSelect an appropriate AnalyticDB configuration.Select a vector database instance with security hosting enabled.

Step 5: Configure security settings

FieldDescription
Database accountA unified account created for all newly purchased databases.
PasswordThe password for the database account.
Security groupA virtual firewall that controls network traffic for associated cloud resources.

Step 6: Review and purchase

After completing all configuration sections, the estimated cost appears on the right side of the page. Review the configuration and click Buy Now.

Note

Make sure your Alibaba Cloud account has a sufficient balance before purchasing. Fees are deducted directly from your account balance.

After payment, the page redirects to the deployment details page where you can track real-time progress. Deployment takes approximately 15 to 30 minutes.

image.png

After deployment, the system automatically registers all Dify resources with DMS, enables security hosting, and sets the control mode to Flexible Management.

Configure and use Dify

Configure a whitelist

Before accessing Dify Studio, add your IP address to the whitelist.

  1. On the Dify workspace page, in the left navigation pane, click ☁️ > Dify Resources.

    image.png

  2. In the Basic Configurations section, click Configure Whitelist next to Instance Public Endpoint.

  3. On the Entries tab, click Add Entry.

  4. In the Add Policy Group Entry dialog box, enter your local machine's IP address and any other addresses to allow.

  5. Click Add to save the whitelist.

Set up the administrator account

  1. In the left navigation pane, click Dify > Studio.

    image.png

  2. The first time you open Dify Studio, the Set Administrator Account page appears. Enter the administrator's email, username, and password.

  3. After setup is complete, log in to start using Dify.

    image.png

Add team members

  1. Click your profile picture in the upper-right corner and select Settings.

    image.png

  2. On the Settings page, click Members in the left navigation pane.

  3. Click Add.

    image.png

  4. Enter the new member's email, select a role, and click Send Invitation.

  5. Copy the invitation link and share it with the new member.

  6. The new member opens the link, sets a password, and clicks Log On.

  7. The member sets a username and clicks Join to complete registration.

    image.png

Embed an application in a website

Note

This feature applies only to Chatflow applications, not Workflow applications.

  1. After developing your application, click Publish > Publish Update in the upper-right corner.

  2. Once published, click Embed in Website.

    image.png

  3. In the Embed in your website dialog box, select an embedding format and click image to copy the code.

  4. Paste the code into your website's source. Open the webpage to verify the embedded interface appears.

    image.png