Directus is an Open Data Platform built to democratize the database. The CMS provides everyone on your team access to data and asset management for any data model or project regardless of their technical skill.
Directus links to your PostgreSQL database and an EFS volume we create for you for scalable file storage. After that, it enables you to perform CRUD operations, create users, assign roles with fully configurable permissions, build complex and granular queries, configure event-driven webhooks and task automation... and more.
FlexStack makes it easier than ever to set up Directus on your own AWS account.
Required variables
Save your credentials
Make sure you save the ADMIN_PASSWORD
and ADMIN_EMAIL
combination because you will need them to log in to your CMS. You can view them later in the Secrets and Variables dashboard.
ADMIN_EMAIL
: The email address of the first user that's automatically created when the application is bootstrapped.ADMIN_PASSWORD
: The password of the first user that's automatically created when the application is bootstrapped.DB_CONNECTION_STRING
: A PostgreSQL connection URI for the database you want to use as a backend and apply Directus migrations to. Check out the FlexStack Databases guide for integration recommendations. Below is a screenshot of a copyable connection URI in the Neon dashboard.
Getting started
Once your app is deployed, you can open it in your browser and log in with the admin email/password combination from the deploy step.
Advanced configuration
Directus has a large number of configuration variables that allow you to fully customize it.
PUBLIC_URL
: Set this to either your CloudFront URL e.g.https://dxxxxxxxxxxx.cloudfront.net
if you aren't using a Custom Domain, otherwise set it to your own domain. This is a strict requirement for setting up SSO and forgot-password emails.REDIS_*
: If you want to use features like rate limiting, caching, and realtime you'll have to create a Redis instance, then add the connection string here.WEBSOCKETS_ENABLED
: To enable realtime mode and websockets, you'll need to setup Redis and then change your FlexStack traffic setting from "low" to "high" to place your Directus containers behind an application load balancer. This incurs an additional fee of around $16/mo per environment.EMAIL_SES_*
: To use AWS SES for email, you'll have to enable SES in your AWS account and then add its credentials and region here. Alternatively, Directus allows you to use Mailgun or standard SMTP for emails.