Step 1: Create (or Identify) Lambda-backed API in API Gateway
- Open the API Gateway console.
- If you haven’t already, create a REST API (or HTTP API) and add a resource/method that integrates with your Lambda function:
- REST API: Resource → Create Resource → Method (e.g. GET) → Lambda Function integration.
- HTTP API: Routes → Create → attach an Integration pointing to your Lambda.
Step 2: Generate an API Key
- In API Gateway’s left nav, choose API Keys, then Create API key.
- Give it a name (e.g.
MyServiceKey
) and click Save.
- On the detail page, note the Value (the actual key string clients must send).

Step 3: Define a Usage Plan
A usage plan ties API stages to throttling/quota and API keys.
Console Steps: