Skip to content

Running Ant Media Server Container on ECS

Murat Ugur Eminoglu edited this page May 17, 2022 · 6 revisions

Attention: We have migrated our documentation to our new platform, Ant Media Resources. Please follow this link for the latest and up-to-date documentation.

In this document we will tell how you can run Ant Media Server Enterprise edition container on ECS in cluster mode.

Step 0. Register to Ant Media Server Container product

Step 1. Create AWS ECS Cluster

  • Open AWS ECS Service

  • Navigate Clusters

  • Click Create Cluster

  • Select EC2 Linux+Networking Type then click next

  • Write ams-cluster as cluster name

  • UnderInstance settings

    • Set EC2 instance type to c5.xlarge
    • Select your keypair

  • Under Networkin Settings Select public VPC as Cluster VPC

    • Select at least one subnet from VPC
    • Set Auto Assigned Public IP to Enabled
    • Create a Security Group for Ant Media Server with the following rules

  • then click create

Step 2: Create AMS task definition

  • Open AWS ECS Service

  • Navigate Task Definitions

  • Click Create New Task Definition

  • Select EC2 then click next

  • Write ams-task-definiton as Task Definition Name

  • Create a role with name of ecsTaskExecutionRole and attach AmazonECSTaskExecutionRolePolicy, AWSMarketplaceMeteringRegisterUsage policies

  • Select ecsTaskExecutionRole as Task Role

  • Select Host as Network Mode

  • ISet Task Memory 4096 and Task CPU 4096

  • Click Add Container Write

    • ams-container into Container Name,
    • 709825985650.dkr.ecr.us-east-1.amazonaws.com/ant-media/ant-media-server-ee:2.4.0.2 into Image
  • In Task Definition Page click Create

Step 3. Run AMS task definition

  • Open AWS ECS Service

  • Navigate Clusters

  • Selec ams-cluster

  • Navigate Tasks tab

  • Click Run New Task

  • Select EC2 as Launch type

  • Select ams-task-definition as Task Definition

  • Click Run Task

Step 4. Test the structure

User Guide

Reference

Troubleshooting

Draft

Proposals

Clone this wiki locally