best-boy

command module
v0.0.0-...-6d45106 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2019 License: MIT Imports: 10 Imported by: 0

README

Best Boy

Lambda code to start a transcoder job on receiving an S3 create event.

Based on @mmyoji's guide.

Compiling

docker-compose up

That's it.

Deploying

Best Boy uses Serverless to manage its deployment.

Make an environment config YAML based on the sample config. Name it dev.yml, since dev is the default stage. Staging would be stg and production prd.

Then you can use serverless commands. A dev deployment would be serverless deploy. For the other stages, the --stage option is needed: serverless deploy --stage stg

Limitations

Serverless currently has no way to attach events to already existing S3 buckets (see relevant issue), so you'll have to create that manually.

On the AWS console, find the input S3 bucket, go to Properties, then "Add notification" under Events.

  • Name: really whatever
  • Events: as needed. I use "All object create events"
  • Prefix should be the same as you configured Best Boy to use.
  • Send to: the Lambda function Serverless created (would be video-transcoder-dev-videoTranscoder for example).

That's it!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳