DEV Community

Cover image for How to Create Your Own Streaming Service on AWS in 5 minutes?
Maria Artamonova for Ant Media Server

Posted on • Edited on • Originally published at antmedia.io

How to Create Your Own Streaming Service on AWS in 5 minutes?

We are very excited to introduce the AWS Streaming Service Wizard which may change your streaming experiences. With this tool, you will be able to create your own streaming app on AWS in minutes by providing only 2 inputs: number of the streams you need and number of the players you need.

What AWS Streaming Service Wizard does?

AWS Streaming Service Wizard creates an auto-scaling streaming service on AWS in minutes according to your requirements. You provides number of the publishers and the players as an input and you will get streaming and playing endpoint URLs. Then you can start streaming or playing with these endpoints directly.

How AWS Streaming Wizard works?

AWS Streaming Service Wizard generates an AWS CloudFormation template effortlessly. This template can create an Ant Media Server cluster infrastructure which meets your streaming requirements. This infrastructure behaves as a streaming service and every assets in it are in your control. You can also modify it if desired. Or you can stop it whenever you want.

How you can use it?

In remaining part of this post, we’ll walk you through the process of setting up such a cluster with this tool and streamlining the configuration process for optimal performance.

Before starting you only need one thing to use this tool: an AWS account. If you don’t have one you can get it here.

Watch our tutorial on Youtube:

AWS Streaming Service Wizard ⎮Create Your Own Streaming Service on AWS in 5 Minutes💫 - YouTube

Join our community: ► https://github.com/orgs/ant-media/discussionsCheck out some of our success stories:► https://antmedia.io/case-studies/Check out our oth...

favicon youtube.com

Or use this step-by-step instruction:

  1. First, go to the AWS Streaming Service Wizard.
  2. Enter the expected viewer and publisher numbers according to your requirements.
  3. (Optional) If you click on “Generate Free Subdomain and SSL Certificate“, you will have a free subdomain (with .antmedia.cloud extension) provided along with a Let’s Encrypt certificate. If you choose this option, you need to inform us about your load balancer address and subdomain so that we can perform the necessary updates via DNS. If you don’t check this option you can provide your own certificate to the CloudFormation template later.
  4. Click the Submit button.
  5. You will see the cluster configuration summary as a table.

aws streaming service wizard by ant media
AWS streaming service wizard on Ant Media Server

  1. At this point we have a CloudFormation template which can create our streaming service. We can download the template or directly upload it to the AWS CloudFormation service by clicking “Open in CF”.
  2. Now, let’s continue with the easy way by clicking the “Open in CF” button. After this point everything will proceed on AWS console. Once you log in to AWS, console you will be greeted with a screen similar to the one below.

aws cloud setup
AWS cloud setup – Create stack step 1

  1. Fill in the three fields that appear by clicking the “Next” button. After filling in the required fields, click the “Next” button to start the installation process.

aws cloud setup with ant media
AWS cloud setup – Create stack step 2

Stack Name: it will describe your stacks, it will be like a skeleton
KeyName: An Amazon EC2 key pair name. If there is no value here, you must create an ssh key (EC2 > Key Pairs).
(Optional) LoadBalancerCertificateArn: Amazon Resource Name (ARN) of the certificate to associate with the load balancer. Check out “How to get SSL Certificate on AWS Certificate Manager for your Domain Name?” for additional help. If you have selected “Generate Free Subdomain and SSL Certificate,” you will not need the ‘LoadBalancerCertificateArn’. Since the certificates are embedded within the YAML file, they will be automatically imported.

  1. Proceed by clicking Next buttons. Then CloudFormation starts installation.
  2. After the installation is complete, you can access information about your streaming service by clicking on the “Output” tab. Here you will find the endpoint (URLs) for publishing and playing streams.

ant media cluster aws
AWS Streaming Service Endpoints

In this blogpost, we introduced you to our AWS Streaming Service Wizard which creates a streaming service on AWS in minutes. In this service all assets are in you hands. You can modify, stop, restart it as you desired.

Check out community on Github.

Ant Media Server on AWS Marketplace.

Top comments (0)