Appendix B. Installation and setup
This appendix covers
- Identity and Access Management setup in AWS
- Creation of S3 buckets, Lambda functions, and Elastic Transcoder in AWS
- Local system setup and installation of the Node package manager
- Creation of package.json for a Lambda function
The purpose of this appendix is to help you set up your machine, environment, and AWS for the 24-Hour Video example that begins in chapter 3. 24-Hour Video will be referred to and improved throughout the book, so we highly recommend that you try to implement it to get a better understanding of serverless architecture.
Before you begin, there are two main prerequisites: a computer running Mac OSX, Linux, or Windows and a working internet connection. We’ll take care of everything else as we journey through the book.
In this appendix you’re going to set up services in AWS and install software on your computer. Here’s what you’ll install on your machine:
- Node.js and its package manager (npm) to help manage Lambda functions and keep track of dependencies.
- AWS Command Line Interface (CLI) to help perform deployments.
- If you’re a Windows user, you may also have to install a utility (such as GnuWin32) to create zip files out of Lambda functions to help with deployment.
In AWS you’ll create the following:
- Identity and Access Management user and role
- S3 buckets to store video files
- The first Lambda function
- Elastic Transcoder pipeline to help encode videos