AWS Amplify - NinaKWelch/75shots Wiki

Command Line

  1. Update

npm i -g @aws-amplify/cli




START WITH Upload a file to S3 using Amplify | Serverless

Uploading Objects

You can upload any file type—images, backups, data, movies, etc.—into an S3 bucket. The maximum size of a file that you can upload by using the Amazon S3 console is 160 GB. To upload a file larger than 160 GB, use the AWS CLI, AWS SDK, or Amazon S3 REST API.

Add Video

To use AWS On Demand Video, remember to add the IAM permissions for MediaConvert via Identity and Access Management.

Then follow the getting started guide for adding video via Amplify.

Initially the Video on Demand storage bucket is set for staging, not production. This may have to be changed in order to deploy a CloudFront distribution in front of S3 origin, enabling automatically cached content on the Amazon edge network.

Also set up an API Key for default authorization.

The video processing plane of Amplify Video VOD uses an S3 bucket for source material that generates S3 events on object PUT. A Lambda Function, triggered from the S3 event, schedules the MediaConvert job to process content. The outputs of MediaConvert are put into the Output S3 bucket and also generate S3 events on object PUT. These events trigger a final Lambda function which sets access policies on the content served to users in the output bucket.

The data plane consists of AppSync hosted GraphQL APIs, Lambda Resolvers, and DynamoDB as the persistance layer for video metadata and access URLs.

Authentication for the web application is governed through Cognito User Pools, which protect access to the GraphQL API. The API has fine-grained access based on the group in the Cognito User Pool. Cognito also generates temporary, limited-privilege AWS credentials for access to upload content into S3.



Video tutorials

Search: Search: