Learn how to deploy LiveKit Recording on AWS with our step-by-step guide. It walks you through launching the Meetrix LiveKit Recording stack with CloudFormation, pointing your domain at it, issuing the SSL certificate, signing in as the host, recording your first meeting to your own Amazon S3 bucket, and keeping the meet server and recorders healthy once they run.
LiveKit Recording is a private video meeting platform for your own domain that records meetings without sending them to a third-party service. It pairs LiveKit, the open-source WebRTC media server, with the Meetrix Meet web interface, and adds LiveKit Egress recorders on their own EC2 instances. The meet server runs LiveKit server 1.13.5 on Ubuntu 26.04 behind an Nginx reverse proxy with Let's Encrypt SSL, built-in TURN and TURN over TLS. Each recorder runs LiveKit Egress 1.15.0 with headless Chrome, records one meeting at a time, and uploads the MP4 to your bucket. The meet server is the same one our LiveKit Lite developer guide covers, so if you don't need recordings, that smaller stack is the cheaper choice. If you are still comparing stacks, our LiveKit vs Jitsi comparison covers how Egress and Jibri record.
Prerequisites
Before you get started with the LiveKit Recording AMI, ensure you have the following prerequisites:
- Basic knowledge of AWS services, including EC2 instances, CloudFormation and S3.
- An active AWS account with permission to create EC2, VPC, IAM, Auto Scaling and CloudFormation resources.
- An EC2 key pair in the region you will deploy to.
- An existing S3 bucket for the recordings, in the same AWS account and region as the stack. The stack does not create one, so create the bucket first if you need a new one.
- A domain name you can point at the server. Browsers only allow camera and microphone access over HTTPS, so meetings need a domain with a valid certificate.
- 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.
Launching the AMI
Step 1: Find and Select LiveKit Recording AMI
- Log in to your AWS Management Console.
- Navigate to 'LiveKit Recording' 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 "CloudFormation script to deploy LiveKit Recording" as the fulfillment option and choose the region your S3 bucket is in. Click "Continue to Launch".
- From the "Choose Action" dropdown, select "Launch CloudFormation" and click "Launch".
Create 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".
- Enter the "AdminEmail" used for SSL certificate generation.
- Enter an "AdminPassword" for the meeting host sign-in. It must be 8 to 64 characters long and can use letters, digits and the characters _ @ # % + = . - only.
- Enter an "AdminUsername" for the meeting host sign-in, or keep admin. It must be 3 to 32 letters, digits or _ . - characters.
- Leave "AmiId" as filled in by AWS Marketplace. The meet server and the recorders all launch from it.
- Enter a value for "DeploymentName". It is added to the names of the instances, security groups, IAM role and Auto Scaling group, so use a different one for each stack in the same account.
- Provide a public domain for "DomainName", such as meet.example.com. This is the address hosts and guests will open.
- Select your preferred "KeyName". The same key pair works for the meet server and the recorders.
- Choose "MeetingAccess". With host, only the signed-in host can start a meeting and record it, and guests who open the link wait until the host joins. With open (public), anyone who can reach the server can create meetings, and anyone in a meeting can record it.
- Choose an instance type for "MeetInstanceType" (Recommended: t3a.small for a handful of participants, c6i.large or c6i.xlarge for bigger meetings).
- Set "RecorderCount" from 1 to 5. Each recorder records one meeting at a time, so this is how many meetings you can record at once.
- Choose "RecorderInstanceType" (Recommended: c6a.xlarge). Recording needs 4 vCPUs that are not burstable, so only c6a and c6i sizes are offered.
- Optionally enter a "RecordingFolder", such as meetings, to keep recordings in a folder of the bucket. Leave it empty to write to the bucket root.
- Enter the name of your existing bucket in "S3Bucket".
- Set "SSHLocation" to your own IP range, such as 203.0.113.10/32, or 0.0.0.0/0 to allow SSH from anywhere.
- Keep "SubnetCidrBlock" as 10.0.0.0/24.
- Keep "VpcCidrBlock" 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 parameters you've entered.
- Tick "I acknowledge that AWS CloudFormation might create IAM resources with custom names". The stack creates an IAM role and instance profile for the recorders.
- Click "Submit".
Afterward, you'll be directed to the CloudFormation stacks page. Wait until the stack status shows CREATE_COMPLETE, usually within about 5 minutes. The servers keep setting themselves up for a few minutes after that. On first boot, the meet server applies the host login and meeting access you chose, writes your domain into the LiveKit and Meet configuration, opens Redis to the recorders and tries to request the SSL certificate. Each recorder writes its Egress configuration, warms its disk and launches Chrome once, and only then registers with the meet server to take recording jobs. That takes a recorder about 2 to 3 minutes longer than the meet server, so give it a few minutes before your first recording.
What the stack creates
- A VPC with a public subnet, an internet gateway and a route table.
- The meet server: one EC2 instance with a 20 GiB gp3 root volume and an Elastic IP. It runs LiveKit server, the Meet web interface, Nginx, and Redis, which passes recording jobs to the recorders.
- The recorders: a fixed-size Auto Scaling group of RecorderCount instances, each with a 50 GiB gp3 volume, named livekit-recording-recorder-<DeploymentName>. The group does not scale with load. It only replaces a recorder that fails.
- An IAM role for the recorders that can only upload files into your bucket's recording folder. It cannot read, list or delete anything, and it only works on a bucket in the stack's own AWS account. No access keys are stored on any server.
- Two security groups, one for the meet server and one for the recorders.
The meet server and every recorder share a LiveKit API key, an API secret and a Redis password. They are set on first boot, unique to the stack, and never sent between the servers.
Ports the stack opens
Video meetings need more than HTTPS. The meet server's security group opens these ports, and if you replace it or add a firewall in front of the server, keep them open:
| Port | Protocol | Purpose |
|---|---|---|
| 22 | TCP | SSH, from SSHLocation only |
| 80 | TCP | Certificate issuance and the redirect to HTTPS |
| 443 | TCP | The Meet web interface and WebSocket signalling |
| 5349 | TCP | TURN over TLS, for participants on networks that block UDP |
| 7881 | TCP | WebRTC over TCP |
| 3478 | UDP | TURN |
| 50000-60000 | UDP | WebRTC audio and video |
| 30000-40000 | UDP | TURN relay |
| 6379 | TCP | Redis job queue, from the recorders only |
| 7880 | TCP | LiveKit API, from the recorders only |
The recorders accept SSH from SSHLocation and UDP 1024-65535 from the meet server's Elastic IP, which carries the meeting's audio and video to them. They connect out to the meet server and to S3. Without the UDP ranges, participants can join a meeting but nobody gets audio or video, and without the recorder rule, a recording stops after about a minute.
Update DNS
Step 1: Copy IP Address
Copy the public IP labeled "PublicIp" in the "Outputs" tab. The same tab shows the MeetingUrl, a reminder of how to sign in as the host, and under Recordings, the S3 location the recorders upload to.
Step 2: Update DNS
- Go to AWS Route 53 and navigate to "Hosted Zones".
- Click Create record.
- Add a record name matching the DomainName you entered, keep the record type as A, and paste the copied PublicIp into the value textbox.
- Click "Create records".
If your domain is hosted with another DNS provider, create the same A record there. Only the meet server needs a DNS record. The recorders find it by its private IP address.
Issue the SSL Certificate
The meet server requests a Let's Encrypt certificate on first boot, which only succeeds if your domain already points at the Elastic IP by then. On a new stack the A record usually comes later, because the IP only appears in the Outputs tab once the stack completes. Until the certificate is issued, the server uses a temporary self-signed certificate and your browser warns that the connection is not private.
If you see that warning, issue the certificate once your A record resolves to the PublicIp.
Step 1: Check that DNS resolves
From your own machine, check that the domain returns the PublicIp from the Outputs tab:
nslookup <your LiveKit Recording domain> Step 2: Log in to the meet server
- Open the terminal and go to the directory where your private key is located.
- Run the following command, replacing the key name and IP address.
- Type "yes" and press Enter to confirm.
ssh -i <your key name> ubuntu@<Public IP address>
Step 3: Generate SSL
Run both commands together:
sudo bash /root/certificate_generate_standalone.sh && sudo bash /opt/livekit/livekit-lite-cert-sync.sh The first command issues the certificate for the Meet web interface. The second gives the same certificate to LiveKit for TURN over TLS on port 5349 and restarts it. The certificate renews automatically, and every renewal is synced to LiveKit, so you only run this once. The recorders don't need a certificate.
Access LiveKit Recording
Open the "MeetingUrl" from the Outputs tab, https://<your domain>, in your browser.
Use your domain, not the IP address
Note
The home page lets you start a new meeting, join one with a code or link, and turn on end-to-end encryption.
Sign in as the host
Click "Host sign in" in the top-right corner and enter the AdminUsername and AdminPassword you set in the stack parameters. In host mode, only a signed-in host can start a meeting and record it.
Start your first meeting
- Click "New meeting". Leave "End-to-end encryption" off if you want to record the meeting.
- Allow camera and microphone access when the browser asks.
- Copy the meeting link and send it to your guests. They open it in their browser, or paste the code or link into the home page and click "Join". No account or app is needed.
Inside the meeting, participants can share their screen and chat. You can also protect a meeting with a password, and in host mode, guests who arrive before you wait until you join.
Record a Meeting
To start recording, open the meeting's "…" menu and start the recording. In host mode only the signed-in host can record, and in open mode anyone in the meeting can. Everyone in the meeting sees a REC badge and a notice while the recording runs.
The next free recorder picks up the job, joins the meeting with headless Chrome, records it, and uploads the file to your bucket when the recording stops or the meeting ends:
- Location: s3://<your bucket>/<RecordingFolder>/<room>/<UTC time>.mp4, or the bucket root when RecordingFolder is empty.
- Format: H.264 video at 1280x720 with AAC audio, in a grid layout of the participants.
- Details: with each MP4, a small JSON file named after the Egress ID records the room and the start and end times.
- Length: a recording stops after 4 hours, so a forgotten recording cannot fill the bucket or hold a recorder.
Recording and end-to-end encryption
Download or share a recording
There is no recordings page in the Meet web interface. Open your bucket in the S3 console, or list and download recordings with the AWS CLI from your own machine:
aws s3 ls s3://<your bucket>/<RecordingFolder>/ --recursive
aws s3 cp "s3://<your bucket>/<RecordingFolder>/<room>/<UTC time>.mp4" . To share one recording without giving someone access to the bucket, create a link that expires, here after one hour:
aws s3 presign "s3://<your bucket>/<RecordingFolder>/<room>/<UTC time>.mp4" --expires-in 3600 Recordings stay in the bucket until you delete them. Set an S3 lifecycle rule on the recording folder to delete them or move them to cheaper storage after a set number of days.
Change the Number of Recorders
RecorderCount is fixed: the group does not add recorders when they are all busy. When every recorder is busy, someone who tries to record sees "No recorder is free right now". To record more meetings at once, raise the count with a stack update:
- In CloudFormation, select the stack and click "Update".
- Choose "Use existing template" and click "Next".
- Change RecorderCount and keep the other parameters as they are.
- Tick the IAM acknowledgement again on the review page and submit the update.
New recorders join by themselves after their first boot. Lowering the count stops any recording that is running on a removed recorder, so lower it when nothing is being recorded. Every recorder is billed while it runs, even when it is idle, and a c6a.xlarge costs about $0.15 an hour.
Each c6a.xlarge or c6i.xlarge recorder uses 4 vCPUs of your On-Demand quota, and each 2xlarge uses 8. Five c6a.xlarge recorders and a t3a.small meet server need 22 vCPUs, more than many new accounts allow, so check your quota before you raise the count.
Server Credentials and API Keys
On first boot the meet server writes its URL, host login, meeting access mode, this stack's LiveKit API key and secret, and a short note on recording to a file in the ubuntu user's home directory:
cat ~/livekit-credentials.txt You don't need the API key and secret for meetings in the web interface. They are for custom integrations: building your own client with the LiveKit SDKs, or managing rooms with the lk CLI, pointed at wss://<your domain>. Keep the secret private, because anyone who has it can create tokens for your server.
The meet server and every recorder share the API key and secret and the Redis password. Do not change them by hand on one server, or the recorders stop taking jobs.
Change the Host Login or Meeting Access
- On the meet server, edit HOST_USERNAME, HOST_PASSWORD or MEET_ACCESS (host or open) in the Meet configuration file.
- Restart the Meet web interface.
sudo nano /opt/livekit/meet.env
sudo systemctl restart livekit-meet Changing the login signs the host out on every device. The restart also clears meeting passwords and anyone waiting for the host, because they are kept in memory, so make the change when no meeting is running.
Check Server Logs
Step 1: Log in to the server
Log in to the meet server with its PublicIp. To reach a recorder, find its public IP in the EC2 console, where the recorders are named livekit-recording-recorder-<DeploymentName>.
ssh -i <your key name> ubuntu@<Public IP address>
Step 2: Check the meet server
The meet server runs four services: livekit (the media server), livekit-meet (the Meet web interface), nginx and redis-server. Check that they are running, then follow the logs of the first two:
sudo systemctl status livekit livekit-meet nginx redis-server
sudo journalctl -u livekit -u livekit-meet -f Press Ctrl+C to stop following the logs.
Step 3: Check a recorder
Each recorder runs one service, livekit-egress, which runs Egress in a Docker container named egress. Check the service, read the container's logs, and ask Egress for its health:
sudo systemctl status livekit-egress
sudo docker logs egress --tail 100
curl localhost:9090 An idle recorder answers the health check with a low CpuLoad value, such as 4.
Shutting Down LiveKit Recording
- In CloudFormation, click the physical ID of "meetInstance" in the "Resources" tab to open the meet server in EC2.
- Stop the meet server from the Instance state dropdown. You can restart it later as needed.
The Elastic IP stays attached while the meet server is stopped, so your domain still points at it when you start it again. Any meeting in progress ends when it stops.
The recorders keep running, and keep being billed, while the meet server is stopped. They belong to an Auto Scaling group, which replaces a recorder you stop by hand. To pause them, open Auto Scaling Groups in the EC2 console, edit livekit-recording-recorders-<DeploymentName>, and set the desired and minimum capacity to 0. Set both back to your RecorderCount before you record again.
Remove LiveKit Recording
Delete the CloudFormation stack from the AWS Management Console under "CloudFormation Stacks" by clicking "Delete". This removes the meet server, the recorders, the network and the IAM role. Your S3 bucket and the recordings in it are not part of the stack, so they stay until you delete them yourself. Remove the Route 53 record you created as well.
Upgrades
When a new version is available in AWS Marketplace, launch a new stack with it, pointing to the same S3 bucket and RecordingFolder, then point your DNS record at the new PublicIp and issue the SSL certificate as shown above. Once you've checked the new stack, remove the old one. Recordings already in the bucket are not affected.
Use a new DeploymentName
The new stack has its own API key and secret. If an integration uses the old ones, update it with the values from the new ~/livekit-credentials.txt.
Troubleshoot
If you face vCPU quota limits, request an increase: How to increase AWS quota. The recorders count towards the same On-Demand quota as the meet server.
If you face insufficient capacity errors while creating the stack, try another region or time.
If the page shows a 502 Bad Gateway error, Nginx is running but the Meet web interface is not answering. Right after launch, wait a few minutes and retry. Otherwise check the meet server's services and logs as shown above.
If the browser does not ask for camera and microphone access, or the call cannot start, check that you opened the HTTPS domain without a certificate warning. If there is a warning, issue the certificate as described in Issue the SSL Certificate.
If participants join but see or hear nobody, check that the UDP ranges in Ports the stack opens are still open in the meet server's security group. If only participants on a strict office or hotel network are affected, their network probably blocks UDP, and they connect through TURN over TLS on port 5349. That needs the real certificate, so check which one LiveKit is using:
sudo openssl x509 -in /opt/livekit/certs/fullchain.pem -noout -subject -issuer -enddate If the subject is not your domain, run sudo bash /opt/livekit/livekit-lite-cert-sync.sh. Our WebRTC troubleshooting guide shows how to inspect a call from the browser side.
If the meeting shows "No recorder is free right now", every recorder is already recording a meeting, or a new recorder is still booting. Wait for a recording to finish, or raise RecorderCount as shown in Change the Number of Recorders.
If a recording stops after about a minute, the recorder is not receiving the meeting's media. Check that the recorder security group still allows UDP 1024-65535 from the meet server's Elastic IP.
If a recording is missing from S3, check the bucket name and region in the stack parameters, and that nobody has deleted the bucket or changed the recorder role's policy. When an upload fails, Egress retries 3 times and then keeps the file on the recorder that made it. The meeting shows no error and nothing retries it later, so log in to each recorder, look for the file, and copy it to the bucket yourself. The recorder's own IAM role allows the upload:
sudo find /opt/livekit-egress/recordings -type f -ls
aws s3 cp /opt/livekit-egress/recordings/<path to file>.mp4 "s3://<your bucket>/<RecordingFolder>/<room>/" You can also download it to your own machine with scp.
If a recorder fails in the middle of a recording, that recording is lost, because nothing has been written yet. The app clears the failed recording by itself, and the room can be recorded again after about a minute.
Check whether the instance storage is full. Log into the server and run:
df -h
If the root volume is between 90-100%, resize the EBS volume, then reboot and restart the service. On a recorder, a full disk usually means failed uploads have piled up in /opt/livekit-egress/recordings.
Conclusion
The Meetrix LiveKit Recording Deployment Guide helps you run private video meetings in your AWS environment, on your own domain, with every recording written to an S3 bucket you own. Whether you're recording team meetings, online classes or client calls, this guide provides step-by-step instructions for a secure setup. See the LiveKit Recording store page for what the Meetrix image includes. If you also want a whiteboard, polls and breakout rooms in one server, see our LiveKit Pro developer guide, and if your team already runs Jitsi, the Jitsi Meet with recordings developer guide covers the Jibri route. To build a LiveKit server by hand instead, see how to self-host LiveKit on AWS.
Technical Support
Reach out to Meetrix Support (aws@meetrix.io) for assistance with LiveKit Recording issues.
Frequently Asked Questions
What is LiveKit Recording?
LiveKit Recording is a self-hosted video meeting platform from Meetrix that records meetings to your own Amazon S3 bucket. A CloudFormation template launches a meet server running the open-source LiveKit media server and the Meetrix Meet web interface, plus a fixed group of 1 to 5 recorders running LiveKit Egress. The host records a meeting with one click, and the recorder uploads an MP4 file to S3.
Where are recordings stored, and in what format?
Recordings go to the S3 bucket you chose at launch, as s3://<bucket>/<RecordingFolder>/<room>/<UTC time>.mp4. Each file is H.264 video at 1280x720 with AAC audio, in a grid layout of the participants, and comes with a small JSON file that records the room and the start and end times. Nothing is kept on the meet server.
How many meetings can be recorded at the same time?
One per recorder. RecorderCount sets how many recorders the stack runs, from 1 to 5, so it is also the number of meetings you can record at once. Change it later with a CloudFormation stack update. If every recorder is busy, the meeting shows "No recorder is free right now".
Can I record an end-to-end encrypted meeting?
No. The recorder joins the meeting like a participant without the encryption key, so it cannot decrypt the audio and video. Recording is turned off in end-to-end encrypted meetings. Meetings without end-to-end encryption are still encrypted in transit with standard WebRTC encryption.
Are AWS access keys stored on the servers?
No. The recorders upload through an IAM role attached to their instances. The role can only write new files into your bucket's recording folder, and only if the bucket is in the same AWS account as the stack. It cannot read, list or delete recordings, and the meet server has no AWS permissions at all.
Why do the camera and microphone not work?
Browsers only allow camera and microphone access on a secure HTTPS page. Open LiveKit Recording on your domain, such as https://meet.example.com, after the SSL certificate has been issued. The page loads over http://<Public IP> or with a certificate warning, but a call cannot start.
How do I get technical support?
Reach out to Meetrix Support at aws@meetrix.io for assistance with LiveKit Recording issues.
Ready to Deploy Your Own LiveKit Recording?
Get started in minutes with our pre-configured AMI and record video meetings to your own S3 bucket.
Get LiveKit Recording for AWS