Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
134 lines (111 sloc) 6.87 KB

Deploying OpenVidu on AWS


Deploying OpenVidu Server on AWS with Cloud Formation

The deployment of OpenVidu can be a piece of cake if you have an AWS account. Just follow these steps:

1. Access to the console of AWS Cloud Formation

Go to CloudFormation

2. Click on Create Stack

3. Option Specify an Amazon S3 template URL with the following URL

https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/CF-OpenVidu-latest.json Copy

4. Complete the configuration fields

We provide 3 different scenarios: you can use the default SELF-SIGNED CERTIFICATE stored in the application (users will need to accept the security alert) or if you have a custom domain, either allow LET'S ENCRYPT to automatically generate a valid and free certificate for your domain or use your own CUSTOM CERTIFICATE if you already have one.

Self-Signed certificate Let's Encrypt certificate Custom certificate
Stack name Your choice Your choice Your choice
Type of SSL Certificate selfsigned letsencrypt owncert
Email Your choice
Fully qualified domain name Your custom domain
For example: if your full URL is https://openvidu.io/ then this is openvidu.io
Your custom domain
For example: if your full URL is https://openvidu.io/ then this is openvidu.io
Elastic IP One AWS Elastic IP you generated
(check AWS Docs to generate a new one)
One AWS Elastic IP you generated
(check AWS Docs to generate a new one)
CRT File Content of your .crt file
-----BEGIN CERTIFICATE-----
fooFOOfooFOOfooFOOfoo...
-----END CERTIFICATE-----
KEY File Content of your .key file
-----BEGIN RSA PRIVATE KEY-----
fooFOOfooFOOfooFOOfoo...
-----END RSA PRIVATE KEY-----
OpenVidu Secret Your choice Your choice Your choice
Free HTTP access to recorded videos
(see openvidu.recording.public-access property here)
true / false true / false true / false
Instance Type Your choice
(at least t2.medium recommended)
Your choice
(at least t2.medium recommended)
Your choice
(at least t2.medium recommended)
KeyName Your choice
(check AWS Docs to create a new one)
Your choice
(check AWS Docs to create a new one)
Your choice
(check AWS Docs to create a new one)

If you are using LET'S ENCRYPT CERTIFICATE, of course you will need to register your ElasticIP in your DNS hosting service and associate it with the fully qualified domain name.

5. Create your Stack

No extra options are necessary. Click on NextNextCreate

CREATE_IN_PROGRESS status will show up. You will now have to wait for a few minutes until it shows CREATE_COMPLETE (between 6-10 minutes).

6. Access and test your OpenVidu Server through your new IP

After status changes to CREATE_COMPLETE, go to Outputs tab to get your brand new IP and click on it (or if you have deployed under your own custom domain, then you should access through it).

You will connect to your OpenVidu dashboard. To access to it use:

  • OPENVIDUAPP as username
  • The secret you chose on Step 4 as password (field OpenVidu Secret in the table).

At OpenVidu dashboard you can test the video transmission. You can now add your own application to your instance. To learn how check the next section.


<script src="/js/copy-btn.js"></script>