AMToolkit identifyStream on AWS ECS Implementation Guide
©2000-2023 Audible Magic Corporation 1
Introduction
This document shows how to implement the Audible Magic Toolkit identifyStream application within AWS
Elastic Container Service via a Python wrapper in a Docker container. While the example below showcases the
identifyStream capabilities in conjunction with streams that are processed by the AWS Interactive Video
Service (IVS), identifyStream can be used with any standalone media stream.
In this example, when a stream is started within the AWS IVS, it triggers an event that is pushed to an AWS SQS
queue, where an AWS ECS task will consume the message and start to run identifications on the stream that was
started. Identification responses that are produced by the AWS ECS task will be pushed/saved to an AWS S3
bucket.
Prerequisites
To follow along with this guide, the following items are required:
• Audible Magic Toolkit package for Amazon Linux 2
o This guide uses the following Toolkit package (Toolkit v45+ will work with this guide):
AudibleMagicToolkit_45.2_AmazonLinux2.tgz.
• Audible Magic Toolkit configuration file
o This guide uses the following Toolkit configuration file: Toolkit.config
• An AWS account with appropriate permissions
o AWS region that will be used is us-east-1
This document assumes familiarity with the following technologies:
• AWS Simple Storage Service (S3)
• AWS Simple Queue Service (SQS)
• AWS Elastic Container Registry (ECR)
• AWS Elastic Container Service (ECS)
• AWS Interactive Video Service (IVS)
• Docker
• Python v3.8
General Setup Steps
Follow the steps to use the application with a Python wrapper in a Docker container:
1. Set up AWS Interactive Video Service (IVS)
2. Create an S3 bucket for output for identification responses
3. Create an SQS queue to receive event notifications
4. Create AWS EventBridge event rule
5. Create the Python wrapper script
6. Create the Toolkit Docker image for use in AWS Elastic Container Service (ECS)
7. Upload the image to AWS Elastic Container Registry (ECR)
8. Create the ECS Task
9. Create the ECS Service
10. Test the AWS ECS Service