This will (hopefully) make it easy to deploy a python 3.6 lambda to AWS.
# build
vagrant up
# move into machine
vagrant ssh
# set up ssh
ssh-keygen -t rsa -b 2048
# set up ansible
ansible-playbook /vagrant/playbooks/ssh-addkey.yml --ask-pass
You need to specify a region as well
file: .aws/credentials
[default]
aws_access_key_id=
aws_secret_access_key=
region=
You will need to edit:
When deploying,AWS-Lambda requires that all packages are in the same dir as the .py files.
pip3 install package -t /home/vagrant/app/
Calls an ansible playbook to zip and send up to aws
deploy