API Gateway - Configuration

1. Create REST API Go to API Gateway console Create new REST API Create new resource and method Add resource: e.g., “/user-list” Add GET method Integration type: Lambda Function Select your Lambda function Enable CORS if needed Actions → Enable CORS Accept default settings for testing 2. Update “Method request” 3. Update “Integration request” { "limit": "$input.params('limit')" } 4. Deploy and Test Deploy API Note the API endpoint URL ...

June 15, 2025

API Gateway - API Key

In API Gateway: Click on “API Keys” Generate API key for each team member Under API’s Usage Plans: Create new usage plan Add API stage to plan Associate API keys with plan See also: AWS Credentials for CLI AWS STS - Temporary Access Tokens Amazon DynamoDB - Create a Table Amazon DynamoDB - Import CSV Data AWS Lambda - Create a Function AWS Lambda - Grant Access API Gateway - Usage Plan ...

June 15, 2025

API Gateway - Usage Plan

1. Create new usage plan Rate and Burst Rate: Set to 10-20 requests per second for development/testing Recommended: Start with 10 req/sec for controlled testing Burst: Set to 2x your rate (20-40) Recommended: Start with 20 to handle short traffic spikes Quota Settings Quota period: MONTH (most common) Alternative periods: WEEK, DAY Requests per quota period: Start with 50,000/month This allows approximately 1,600 requests per day Can be adjusted based on actual usage patterns Recommended Initial Configuration: ...

June 15, 2025