Welcome to the Meetrix Saleor developer guide for AWS! Saleor is an open-source, headless e-commerce platform built around a GraphQL API. It handles products and variants, multi-channel pricing, stock, checkout, orders, promotions, gift cards and translations, and leaves the storefront to you, so you can build it in Next.js, a mobile app or anything else that speaks GraphQL. The Saleor Dashboard is the admin UI where you run the store day to day.
With the Meetrix pre-configured Saleor AMI, you deploy the Saleor API, the Dashboard, PostgreSQL and Valkey on your own AWS account in a few minutes using a CloudFormation stack. This guide covers launching the stack, pointing your domain at it, logging in to the Dashboard, adding your first product, connecting a storefront, setting up email, and running the server afterwards. The Saleor store page sums up what the image includes.
Prerequisites
Before you get started with the Saleor AMI, ensure you have the following prerequisites:
- Basic knowledge of AWS services, including EC2 instances and CloudFormation.
- An active AWS account with permission to create EC2, VPC, IAM, and CloudFormation resources.
- An existing EC2 key pair for SSH access to the instance.
- Optionally, a domain name in a Route53 hosted zone in the same AWS account, so the stack can issue SSL automatically.
- If you encounter a vCPU quota error when launching the stack, follow https://meetrix.io/blogs/increase-aws-vcpu-quota/ to increase your vCPU limit.
What You Get
The AMI ships the full Saleor stack as Docker Compose services, already wired together:
- Saleor 3.23.50 (
ghcr.io/saleor/saleor): the GraphQL API, a Celery worker, and a Celery beat scheduler for periodic jobs such as applying promotions. - Saleor Dashboard 3.23.46 (
ghcr.io/saleor/saleor-dashboard), the admin UI. - PostgreSQL 15 for the store database and Valkey 8.1 for the cache and task queue.
- The Compose stack in
/opt/saleor, with every service bound to localhost. - Nginx serving the API, the Dashboard and uploaded product images from one domain, over HTTP and HTTPS.
- Automatic SSL from Let's Encrypt using the Route53 DNS challenge.
- A database backup script that uploads to S3 (
/opt/scripts/dbbackup.sh). - A welcome card with quick links on the Dashboard home page, in place of Saleor's "Pulse" upsell.
- A pre-hardened Ubuntu 26.04 LTS base image.
Everything is served from one domain:
| Path | What it serves |
|---|---|
| /dashboard/ | The Saleor Dashboard. The site root (/) redirects here. |
| /graphql/ | The GraphQL API. Open it in a browser to get the GraphQL Playground. |
| /media/ | Uploaded product images and generated thumbnails. |
| /.well-known/jwks.json | Public keys for verifying the JWTs Saleor issues. |
Launching the AMI
Step 1: Find and Select the Saleor AMI
- Log in to your AWS Management Console.
- Navigate to the Saleor listing in AWS Marketplace.
Step 2: Initial Setup & Configuration
- Click the "Continue to Subscribe" button.
- After subscribing, accept the terms and click "Accept Terms".
- Wait a few minutes until processing completes, then click "Continue to Configuration".
- Select the CloudFormation fulfillment option for Saleor and choose your region. Click "Continue to Launch".
- From the "Choose Action" dropdown, select "Launch CloudFormation" and click "Launch".
Create the CloudFormation Stack
Step 1: Create a stack
- Ensure the "Template is ready" option is selected under "Prepare template".
- Click "Next".
Step 2: Specify stack options
Provide a unique "Stack name", then fill in the stack parameters:
- AmiId - pre-filled automatically from AWS Marketplace. Leave this as the default value.
- InstanceType - the EC2 instance type (Recommended: t3a.medium, 2 vCPU and 4 GB RAM). The whole stack uses about 2 GB of memory when idle, which leaves room for a small store. Pick t3a.large or larger for a busy storefront or large catalog imports.
- KeyName - your preferred EC2 key pair, used for SSH access.
- DomainName - the domain for your store's API and Dashboard (for example
shop.yourdomain.com). If it belongs to a Route53 hosted zone in the same AWS account, the stack issues an SSL certificate for it on first boot. If it does not, the stack still completes and Saleor is served over HTTP on the Elastic IP until you set up SSL. - AdminEmail - the login for the Saleor Dashboard admin user. It is also the email address used for the Let's Encrypt certificate.
- AdminPassword - the password for the Dashboard admin user. It must be 8 to 64 characters, using only letters, digits and
!@#%^*_+=.,-. - S3Bucket - an S3 bucket in your account for database backups. Leave the default if you are not using S3 backups.
- SSHLocation - set to
0.0.0.0/0, or restrict it to your own IP range. - DeploymentName - a short identifier for this deployment (for example
prod). Useful when you run more than one stack. - SubnetCidrBlock - keep as
10.0.0.0/24. - VpcCidrBlock - keep as
10.0.0.0/16.
Click "Next".
Step 3: Configure stack options
- Choose "Roll back all stack resources" and "Delete all newly created resources" under "Stack failure options".
- Click "Next".
Step 4: Review
Review and verify the details you've entered. Here's an example of a completed set of stack parameters:
The template creates an IAM role and policy so the instance can use Route53 for SSL, upload backups to S3, and tell CloudFormation when first boot is done. Tick "I acknowledge that AWS CloudFormation might create IAM resources with custom names", then click "Submit".
Afterward, you'll be directed to the CloudFormation stacks page. The stack takes about 3 minutes. It only reaches CREATE_COMPLETE once the instance reports that Saleor is running, the admin user exists and the SSL step has run, so your store is ready as soon as the stack is. If first boot fails, or does not finish within 20 minutes, the stack fails and rolls back.
Point DNS to Your Saleor Server
Step 1: Get the Stack Outputs
Open the "Outputs" tab of your stack. You'll see three values:
- DashboardUrl - the HTTPS Dashboard URL on your domain.
- DashboardUrlIp - the HTTP Dashboard URL on the Elastic IP. It only works until SSL is issued. After that, Saleor redirects API calls to HTTPS, so use DashboardUrl.
- PublicIp - the public Elastic IP of the instance.
Step 2: Create a DNS Record
- Copy the value labeled "PublicIp".
- Go to AWS Route 53 and navigate to "Hosted Zones".
- Open the hosted zone for your domain and click Create record.
- Add a record name matching the domain you set in DomainName, keep the record type as A, and paste the copied PublicIp into the value textbox.
- Click "Create records".
DNS challenge and hosted zones
https:// on your domain.
Access the Saleor Dashboard
Open the DashboardUrl from the Outputs tab. The site root redirects to /dashboard/. Sign in with the AdminEmail and AdminPassword you set as stack parameters.
Note
After signing in you land on the Dashboard home page. The Meetrix image adds a welcome card with quick links to products, orders, customers, discounts and configuration, and shows your storefront GraphQL API URL at the bottom.
Add Your First Product
A fresh store has one channel (default-channel, in USD) and no products. To get a product on sale:
- Configuration → Product Types: create a product type, for example
Simplewith no variants. - Catalog → Categories: create a category.
- Configuration → Warehouses and Shipping Zones: add a warehouse and a shipping zone, and assign both to the channel.
- Catalog → Products → Create Product: add a name, category, images, a price in the channel and stock, then make the product available in the channel.
Payments are added through Saleor apps, for example Stripe or Adyen, under Extensions. The Saleor documentation covers each payment app and the rest of the Dashboard.
Connect a Storefront
The image does not include a storefront. Build your own against the API at https://your-domain/graphql/, or deploy Saleor's open-source Next.js storefront and point it at that URL. Open /graphql/ in a browser to try queries in the GraphQL Playground. Product listings need no authentication:
{
products(first: 10, channel: "default-channel") {
edges {
node {
name
thumbnail(size: 256) { url }
pricing { priceRange { start { gross { amount currency } } } }
}
}
}
} If the storefront runs on a different domain, add that domain to ALLOWED_CLIENT_HOSTS (see "Add Another Hostname" below), or Saleor will refuse to send password reset and account confirmation links to it. Saleor manages commerce data only, so for landing pages, blog posts and other editorial content, many teams pair it with a headless CMS such as Directus and query both from the same storefront.
Configure Saleor
Saleor's settings live in /opt/saleor/saleor.env. Every change below follows the same pattern: SSH in, edit the file, then recreate the containers that read it.
Step 1: Log in to the Server
- Open a terminal and go to the directory where your private key is located.
- Run the command below, replacing the placeholders with your key file and the Elastic IP.
- Type "yes" and press Enter to confirm the host's authenticity.
ssh -i /path/to/your-key.pem ubuntu@<ELASTIC_IP>
Step 2: Edit the Settings and Apply Them
sudo nano /opt/saleor/saleor.env
cd /opt/saleor
sudo docker compose up -d --force-recreate api worker beat Set Up Email
Saleor needs SMTP for password resets, staff invitations and order emails. Set EMAIL_URL and DEFAULT_FROM_EMAIL in saleor.env. With Amazon SES, for example:
EMAIL_URL=smtp://<SMTP_USERNAME>:<SMTP_PASSWORD>@email-smtp.us-east-1.amazonaws.com:587/?tls=True
DEFAULT_FROM_EMAIL=noreply@<DOMAIN> URL-encode any special characters in the username and password, then recreate api, worker and beat. Finally, enable and configure the User emails (customer emails) and Admin emails (staff emails) plugins under Extensions in the Dashboard. Saleor sends no email until they are enabled.
Customer Accounts and Email Confirmation
By default, new customers must confirm their email address before they can log in (Configuration → Site Settings → Require email confirmation). Until SMTP and the User emails plugin are set up, those confirmation emails cannot be sent, so pick one of these:
- Set up email as described above.
- Confirm a customer by hand. The Dashboard shows them as Unverified but has no confirm button, so open Playground in the Dashboard and run the mutation below with the customer's ID.
- Turn email confirmation off in Site Settings. Anyone can then register with any email address.
mutation {
customerUpdate(id: "<customer id>", input: { isConfirmed: true }) {
user { isConfirmed }
}
} Guest checkout works without a customer account either way.
Add Another Hostname
Saleor rejects requests whose Host header it does not know, and redirect URLs (password reset, account confirmation) that point at unknown hosts. To serve Saleor on another name, add it to both ALLOWED_HOSTS and ALLOWED_CLIENT_HOSTS in saleor.env. If only your storefront runs on another domain, adding it to ALLOWED_CLIENT_HOSTS is enough. Then recreate api, worker and beat.
Store Product Images in S3
Product images are stored on the instance in /var/lib/saleor/media by default. To move them to S3, give the instance's IAM role (saleor-<DeploymentName>) s3:GetObject, s3:PutObject, s3:DeleteObject and s3:ListBucket on your bucket, then add these lines to saleor.env and recreate the containers:
AWS_MEDIA_BUCKET_NAME=<bucket>
AWS_S3_REGION_NAME=<region> Images uploaded before the change stay in /var/lib/saleor/media. See the Saleor configuration docs for the other storage settings.
Generate an SSL Certificate Manually
If SSL was not issued on first boot, for example because the domain is not in a Route53 hosted zone in this account, Saleor keeps running over HTTP on the Elastic IP. Point your domain's A record at the Elastic IP, log in to the server, and run the standalone certificate script:
sudo bash /root/certificate_generate_standalone.sh If the hosted zone is on Route53 in this account, you can use the DNS challenge instead:
sudo bash /root/certificate_generate_dns.sh Then switch Saleor's public and Dashboard URLs to HTTPS on your domain, recreate the containers and reload nginx. Replace <DOMAIN> with your domain:
cd /opt/saleor
sudo sed -i "s;^PUBLIC_URL=.*;PUBLIC_URL=https://<DOMAIN>/;; s;^DASHBOARD_URL=.*;DASHBOARD_URL=https://<DOMAIN>/dashboard/;" saleor.env
sudo docker compose up -d --force-recreate api worker beat
sudo systemctl reload nginx Check Server Logs
The stack runs from /opt/saleor as six services: api, worker, beat, dashboard, db and cache. Check their status and follow a service's logs:
cd /opt/saleor
sudo docker compose ps
sudo docker compose logs -f api Swap api for worker or beat when you debug emails, webhooks or promotions that do not apply. These are the files you are most likely to need:
| Path | What it holds |
|---|---|
| /opt/saleor/docker-compose.yml | The Compose stack. |
| /opt/saleor/saleor.env | Saleor settings: secrets, database URL, allowed hosts, public URL and email. |
| /opt/saleor/.env | Image versions and the PostgreSQL password. |
| /var/lib/saleor/media | Product images and thumbnails. |
| saleor_saleor-db | The Docker volume with the PostgreSQL data. |
| /etc/nginx/snippets/saleor-locations.conf | Nginx routing for the API, the Dashboard and media. |
| /opt/saleor/dashboard-addons/home-welcome.js | The welcome card on the Dashboard home page. Remove the sub_filter lines in saleor-locations.conf to get Saleor's default home page back. |
Backups
/opt/scripts/dbbackup.sh dumps the saleor database and uploads it to s3://<S3Bucket>/saleor-dbbackup/. Run it by hand, or schedule it with cron, for example daily at 02:00:
sudo /opt/scripts/dbbackup.sh
echo "0 2 * * * root /opt/scripts/dbbackup.sh" | sudo tee /etc/cron.d/saleor-dbbackup Product images in /var/lib/saleor/media are not part of the dump, so back them up separately with EBS snapshots or aws s3 sync. Our guide to backing up business data on AWS automatically covers S3 lifecycle rules, restore tests and what it all costs.
The instance role only has s3:PutObject on the bucket, so the instance cannot list or download backups. Copy a dump to the instance from a machine with read access, then restore it:
cd /opt/saleor
sudo docker compose stop api worker beat
zcat dump_YYYY-MM-DD-HH-MM-SS.sql.gz | sudo docker exec -i saleor-db-1 psql -U saleor -d saleor
sudo docker compose start api worker beat Manage the Deployment
Stop the Instance
- In CloudFormation, open the "Resources" tab and click the link next to the "Instance" resource to open the EC2 instance.
- Stop the Saleor instance from the Instance state dropdown. You can start it again later. The Elastic IP and the root volume, with your database and product images, are kept while the instance is stopped.
Remove Saleor
Delete the CloudFormation stack from the AWS Management Console under "CloudFormation Stacks" by clicking "Delete". This removes the instance and its root volume, so back up the database and /var/lib/saleor/media first if you want to keep your catalog, orders and customers.
Upgrades
When Meetrix publishes a new version in AWS Marketplace, back up your data, then redeploy the CloudFormation stack with the updated AMI ID.
To update Saleor on an existing instance instead, back up the database first, then set the new SALEOR_VERSION and DASHBOARD_VERSION in /opt/saleor/.env (keep both on the same minor version) and run the migrations:
cd /opt/saleor
sudo docker compose pull
sudo docker compose run --rm api python3 manage.py migrate --no-input
sudo docker compose up -d Check the Saleor releases and the upgrade guides before moving to a new minor version.
Troubleshoot
vCPU Quota Errors
If you hit vCPU quota limits, the stack fails with a VcpuLimitExceeded error and rolls back. Request an increase by following how to increase your AWS vCPU quota.
Insufficient Capacity Errors
If you see an InsufficientInstanceCapacity error while creating the stack, try a different instance type, Availability Zone, or region.
502 Bad Gateway
Nginx returns a 502 when the API or Dashboard container is not answering. That is normal for a minute or so after you start or reboot the instance, while the containers come up. If it lasts longer, run sudo docker compose ps in /opt/saleor and check the logs of any service that is not running.
Bad Request on a New Hostname
If Saleor answers a new domain or a load balancer hostname with "Bad Request (400)", that host is not in ALLOWED_HOSTS. Add it as described in "Add Another Hostname".
SSL Did Not Issue
The stack still completes and Saleor is served over HTTP on the Elastic IP. Confirm your DNS record points at the Elastic IP and has propagated, then follow "Generate an SSL Certificate Manually".
Disk Space
The root volume is 30 GB gp3 and holds the database and every product image. If Saleor becomes unresponsive or uploads fail, check whether it is full:
df -h
If the root volume is between 90-100%, resize the EBS volume (per AWS docs) and reboot, or move product images to S3 as your catalog grows.
Conclusion
The Meetrix Saleor Deployment Guide gets a headless, GraphQL-first commerce backend running on your own AWS account in minutes, with the Dashboard, PostgreSQL, Valkey and SSL already wired together. From there you add products, plug in a payment app, connect email, and build the storefront your way on top of the API. Once the storefront is live, self-hosted Umami analytics on AWS tracks visits and conversions without sending your customers' data to a third party.
Technical Support
Reach out to Meetrix Support (support@meetrix.io) for assistance with Saleor issues.
Frequently Asked Questions
What is Saleor?
Saleor is an open-source, headless e-commerce platform built around a GraphQL API. It handles products and variants, multi-channel pricing, stock, checkout, orders, payments through apps, promotions, gift cards and translations. The Saleor Dashboard is the admin UI for running the store, and you build or plug in any storefront on top of the API.
What are the prerequisites for deploying Saleor on AWS?
You need basic knowledge of AWS services (EC2, CloudFormation), an AWS account with permission to create EC2, VPC, IAM and CloudFormation resources, an EC2 key pair, and enough vCPU quota for the instance type you pick. A domain with a Route53 hosted zone in the same account is optional, but it is what lets the stack issue an SSL certificate automatically.
Which instance type should I choose?
t3a.medium (2 vCPU, 4 GB RAM) is the default and runs the whole stack, which uses about 2 GB of memory when idle, for a small store. Move to t3a.large or larger for a busy storefront or large catalog imports.
How do I log in to the Saleor Dashboard for the first time?
Open the DashboardUrl from the stack's Outputs tab and sign in with the AdminEmail and AdminPassword you set as stack parameters. The stack only reaches CREATE_COMPLETE after the admin user exists, so you can log in as soon as it finishes.
Does the Meetrix image include a storefront?
No. The image runs the Saleor API and the Dashboard. Build your own storefront against https://your-domain/graphql/, or deploy Saleor's open-source Next.js storefront and point it at that URL. If the storefront runs on another domain, add that domain to ALLOWED_CLIENT_HOSTS in /opt/saleor/saleor.env.
Why does Saleor not send any emails?
Saleor needs SMTP settings and its email plugins turned on. Set EMAIL_URL and DEFAULT_FROM_EMAIL in /opt/saleor/saleor.env (Amazon SES works), recreate the api, worker and beat containers, then enable the User emails and Admin emails plugins under Extensions in the Dashboard. Until both are done, password resets, staff invitations and order emails are not sent.
Where is my store data, and how do I back it up?
The PostgreSQL database lives in the Docker volume saleor_saleor-db and product images in /var/lib/saleor/media, both on the instance's 30 GB gp3 root volume. Run /opt/scripts/dbbackup.sh to upload a database dump to the S3 bucket you set as S3Bucket, or schedule it with cron. Media is not part of that dump, so back it up separately with EBS snapshots or aws s3 sync.
How do I get technical support?
Reach out to Meetrix Support at support@meetrix.io for assistance with Saleor issues.
Deploy Saleor on AWS in Minutes
Launch a production-ready, self-hosted Saleor commerce backend on AWS with a pre-configured Meetrix image, with the Dashboard, PostgreSQL and SSL ready to go.
Get Saleor for AWS