Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

This is a project instruct how to use serverless(serverless.com) to package the lambda program and using Zencoder as the example

License

Notifications You must be signed in to change notification settings

dbpeng/aws-lambda-python-example-zencoder

Repository files navigation

About the project

This project uses AWS API gateway, lambda, s3, serverless, zencoder, flywaydb to build an example how to successfully deploy a python based lambda project into AWS lambda environment. Using virtualenv is highly recommended to try this project.

Setup guide

flyway

At the project root running the following commmands, be sure you have created the flyway.conf at project root.

#> flyway init
#> flyway migrate

serverless

Before using serverless deploy you have to write the variable files stored in /serverless. There are 3 example files, replace the values with your environment setups and remove -example in the filename. Here's the example of deployment command

#> serverless deploy --stage dev --profile <your profile> 

Send a job request

curl -X "POST" "https://{DOMAIN_NAME_AND_PATH}/transcoders/zencoder/" \
     -H 'Content-Type: application/json' \
     -d $'{
  "src": "https://wowza-video.escapex.com/hk3345678-2.mp4",
  "profile": "zen-hls"
}'

About

This is a project instruct how to use serverless(serverless.com) to package the lambda program and using Zencoder as the example

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.