Skip to content

LeafSoftware/lambder-replicate-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambder-replicate-images

replicate-images is an AWS Lambda function for use with Lambder.

REQUIRES:

  • python-lambder

Getting Started

  1. Test the sample lambda function

    python lambda/replicate-images/replicate-images.py

  2. Deploy the sample Lambda function to AWS

    lambder functions deploy

  3. Invoke the sample Lambda function in AWS

    lambder functions invoke --input input/ping.json

  4. Add useful code to lambda/replicate-images/replicate-images.py

  5. Add any permissions you need to access other AWS resources to iam/policy.json

  6. Update your lambda and permissions policy in one go

    lambder functions deploy

Sharing your lambder function

If you decide to share your lambder function, you want to be sure you don't share the name of your s3 bucket. We suggest you add lambder.json to your .gitignore so it won't be commited to your repo. Instead, copy it to example_lambder.json and remove any secrets before pushing to a public repository.

Using virtualenvwrapper

Your Lambdas should be as small as possible to reduce spinup time. If you need to include extra python modules, use virtualenvwrapper. The deploy script will look for a site-packages directory in $WORKON_HOME/lambder-replicate-images and bundle those packages into the zip that it uploads to AWS Lambda.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages