Dify Premium on AWS

Dify Premium is our AWS AMI offering that allows custom branding and is one-click deployable to your AWS VPC as an EC2. Head to AWS Marketplace to subscribe. It's useful in a couple of scenarios:

  • 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 require more resource than supported by the plans.

  • You'd like to run a POC before adopting Dify Enterprise within your organization.

Setup

If this is your first time accessing Dify, enter the Admin initialization password (set to your EC2's instance ID) to start the set up process.

After the AMI is deployed, access Dify via the instance's public IP found in th EC2 console (HTTP port 80 is used by default).

Upgrading

In the EC2 instance, run the following commands:

git clone https://github.com/langgenius/dify.git /tmp/dify
mv -f /tmp/dify/docker/* /dify/
rm -rf /tmp/dify
docker-compose down
docker-compose pull
docker-compose -f docker-compose.yaml -f docker-compose.override.yaml up -d

Customizing

Just like self-hosted deploy, you may modify the environment variables under .env in your EC2 instance as you see fit. Then, restart Dify with:

docker-compose down
ocker-compose -f docker-compose.yaml -f docker-compose.override.yaml up -d

Last updated