using Python 3 with AWS lambda

前端 未结 5 597
[愿得一人]
[愿得一人] 2021-02-05 04:09

Can one use application built with Python3 in lambda, and not just python2.7. Possibly looking at options around - https://gun.io/blog/announcing-zappa-serverless-python-aws-lam

5条回答
  •  情话喂你
    2021-02-05 04:28

    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]"
    

提交回复
热议问题