Skip to content
Learn

Lesson 4 · Step 1 of 7

Two doors

Why. Hold both paths before you pick one in CDK.

All steps in this lesson
  1. 1. Two doors
  2. 2. What AWS_IAM checks
  3. 3. Why the form keeps API Gateway
  4. 4. Why the bot does not
  5. 5. Read the CDK grant
  6. 6. The body stays small
  7. 7. Park. Ticks stay on the device

A contact form is a browser talking to a website. A Discord bot is a process on one machine talking to AWS as itself. Those are different callers, so they get different HTTP doors.

  1. Formbrowser
  2. API Gateway/api/*
  3. Contact LambdaTurnstile
  1. Botinstance role
  2. Function URLAWS_IAM
  3. Retrieval LambdaxAI search

You do not need to memorize the boxes. Remember the caller. Browser → API Gateway. One IAM role → Function URL.

AWS: pick Function URL or API Gateway