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
2. Click on Create Stack
3. Option Specify an Amazon S3 template URL with the following URL
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|
|Fully qualified domain name||Your custom domainFor example: if your full URL is https://openvidu.io/ then this is openvidu.io||Your custom domainFor 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
|KEY File||Content of your .key file
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
|OpenVidu Secret||Your choice||Your choice||Your choice|
|Free HTTP access to recorded videos
|true / false||true / false||true / false|
|Instance Type||Your choice(at least
||Your choice(at least
||Your choice(at least
|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 Next ➞ Next ➞ Create
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:
- 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.