A demo case shows create and depoly AWS lambda function.

Although there're framework like serverless, zappa handle this for you, it's better to acquaint yourself with some details.