sample AWS Lambda package for running awscli
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


sample AWS Lambda package for running AWS Command Line Interface


  1. modify as you like
  2. update package zip -r9
  3. deploy package and choose runtime "Python 2.7", set Handler "main.handle"


If the execution environment of AWS Lambda changes, this package may not work. (For example, this package assumes that /usr/bin/python exists.)

This package created on Amazon Linux(amzn-ami-hvm-2017.03.1.20170812-x86_64-gp2).


For the creation commands, refer to the following.

on Amazon Linux, you'll need following 2 steps.

  • install libyaml-devel for PyYAML
sudo yum install libyaml-devel
  • put lib64 library into package
(cd $virtualenv/lib64/python2.7/site-packages; zip -r9 $zipfile .)