Show HN: CDK Tutor – Interactive Courses to Learn CDK in Python

4 months ago 6

A CLI application that teaches AWS CDK to users through interactive challenges.

With pip:

With pipx:

With uvx:

List available challenges

cdk-tutor list-challenges
cdk-tutor start [CHALLENGE_NAME]

If you don't specify a challenge name, you'll be prompted to choose from available challenges.

Setup a Python virtual environment

python -m venv .venv source .venv/bin/activate # On Windows use .venv\Scripts\activate pip install -r requirements.txt

Grade a completed challenge

cdk-tutor grade [CHALLENGE_DIR]
  • Interactive CLI with rich text formatting
  • Step-by-step challenges to learn AWS CDK
  • Automatic grading of solutions
  • Detailed feedback to help users improve

Each challenge includes:

  • Starter code with TODOs to complete
  • Clear instructions in a README
  • Expected CloudFormation output for grading
  • Solution files for reference

To add new challenges:

  1. Create a new challenge in src/cdk_tutor/challenges/
  2. Follow the Challenge model structure
  3. Add your challenge to the list in get_available_challenges()

MIT

Read Entire Article