Skip to content

First 5 minutes

In 5 minutes, you will break a function on purpose and use the AI to understand the error, with no AWS account. You need Python and an AI assistant.

  1. Download the mission.

    Janela do terminal
    npx -y moretes-builder-workshops missao 3 my-mission --lang en
    cd my-mission

    No Node.js? Download the files from the mission folder.

  2. Before you run it, place a bet: what happens if the function receives an empty event?

  3. Run it.

    Janela do terminal
    python3 rodar_local.py '{}'
    KeyError: 'nome'
  4. Ask the AI for help, without asking for the ready-made answer.

    You are my tutor. I am learning to read errors and I do NOT want the ready-made fix.
    This is my code: [paste lambda_function.py]
    This is the error: KeyError: 'nome'
    Tell me which line to look at and ask me a question so I can find the cause.
  5. Answer its question. Done: you just investigated an error instead of only copying the solution.

On AWS, this same error comes with a surprise: the status comes back 200. See it in the full mission, or choose another mission.

Independent community project by Fernando Azevedo, AWS Community Builder. Not official AWS material, and not endorsed by AWS. AWS and related names are trademarks of Amazon.com, Inc. or its affiliates. MIT license.