using Python 3 with AWS lambda
Lambda functions run in a container on a well-known AMI. While you must handle the initial event with Python2.7, you can call out to anything installed on the AMI. In particular, Python3 is already installed. It's a bit complicated, but you can establish a virtualenv to take advantage of the installed python3.
For a few of the details, see http://www.cloudtrek.com.au/blog/running-python-3-on-aws-lambda/.
Edit: that link went dead. Try https://www.linkedin.com/pulse/running-python-3-aws-lambda-lyndon-swan.
Python 3.6 is now available in Ohio! (us-east-2)
I ran:
def lambda_handler(event, context): # TODO implement return sys.version
And it kicked back:
"3.6.1 (default, Mar 27 2017, 23:56:45) \n[GCC 4.9.3]"