Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Hello World in AWS Lambda

  • Press "Create function"

  • Name: "hello"

  • Runtime: Python 3.6

  • Role: Create new role from template(s)

  • Role name: "myrole"

  • Policy templates: Basic Edge Lambda Permission

  • Press "Create function"

The default code will look like this:

def lambda_handler(event, context):
    # TODO implement
    return 'Hello World!'
  • Test it (click on "Test")
  • First it will make you create a new test-case.