Dify Premium is our AWS AMI offering that allows custom branding and is one-click deployable to your AWS VPC as an EC2 instance. Head to AWS Marketplace to subscribe. It’s useful in a couple of scenarios:Documentation Index
Fetch the complete documentation index at: https://dify-6c0370d8-docs-hitl-2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- You’re looking to create one or a few applications as a small/medium business and you care about data residency.
- You are interested in Dify Cloud, but your use case requires more resources than supported by the plans.
- You’d like to run a POC before adopting Dify Enterprise within your organization.
Access & Set up
After the AMI is deployed, access Dify via the instance’s public IP found in the EC2 console (HTTP port 80 is used by default). If this is your first time accessing Dify, enter the Admin initialization password (your EC2’s instance ID) to start the setup process.Customize
Configuration
Edit Environment Variables
Edit environment variables in the relevant file on your EC2 instance:
-
Essential startup values live in
/dify/.env. Edit them directly. -
Optional or provider-specific settings have templates under
/dify/envs/. To override a default value, copy the matching template (drop the.examplesuffix), then edit your copy. For example:
/dify/.env take precedence over values in any /dify/envs/*.env files.If your AWS deployment injects variables through docker-compose.override.yaml, keep those settings there. Service-level environment: values in Compose take precedence over env-file values.Web App Logo & Branding
In Settings > Customization, you can remove thePowered by Dify branding or replace it with your own logo.
Upgrade
In the EC2 instance, run the following commands:Back Up Your Data
Back up your
.env file, any optional env files you created under envs/, and the volumes directory, which contains your database, storage, and other persistent data:Check for New Environment Variables
New versions may introduce variables in If you need to customize a newly added optional template, copy it beside itself without the
.env.example or in optional templates under envs/. Compare each template with its matching local env file and add any missing variables you need:.example suffix before editing it. See Configuration for details.