Serverless mp3 and mp4 to HLS converter using Zappa, AWS Lambda, API Gateway, S3 and FFmpeg : Installing and setting up AWS

Installing and setting up AWS

Let us install the AWS Command Line Interface on Linux or MacOs depending on your development platform.

Install AWS CLI on Linux:

1. Download the CLI package

$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"

2. Unzip the package or installer

$ unzip awscliv2.zip

3. Run the installer

$ sudo ./aws/install

Install AWS CLI on MacOS if you are on MacOS:

1. Download the CLI package

$ curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"

2. Run the MacOS installer

$ sudo installer -pkg AWSCLIV2.pkg -target /

Now it is time to configure the AWS settings for interacting with your AWS resources. You will need to do this so that you can interact with your AWS resources via the command line. Also, the Serverless Zappa command line interface will use the configured AWS settings to deploy and execute your lambda functions.

Before starting, you will need to create an AWS IAM user credentials. Copy or download the access key and secret from your AWS console. For an introduction of AWS IAM, you can read this article and for the creation of an IAM user and credentails refer to this AWS documentation

On your terminal execute:

$ aws configure

This will prompt you for the access key ID and an access key secret you created in your AWS console. 

For quick testing purposes you can use an AdministratorAccess policy for deployment. For an execution policy, you can create a custom policy are described here: https://github.com/Miserlou/Zappa#using-custom-aws-iam-roles-and-policies


course logo
Serverless mp3 and mp4 to HLS converter using Zappa, AWS Lambda, API Gateway, S3 and FFmpeg
Number of sections:
7
Content length:
Delivery formats:

Instructor

Evans Boateng Owusu
Evans is a Computer Engineer and cloud technology enthusiast. He has a Masters degree in Embedded Systems (focusing on Software design) from the Technical University of Eindhoven (The Netherlands) and a Bachelor of Science in Electronic and Computer Engineering from the Polytechnic University of Turin (Italy). In addition, he has worked for the high-tech industry in the the Netherlands and other large corporations for over seven years.... Show more
Serverless mp3 and mp4 to HLS converter using Zappa, AWS Lambda, API Gateway, S3 and FFmpeg