Logo The David Page
  • Home
  • About
  • Featured Posts
  • Recent Posts
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Posts
  • Cloud
    • AWS
      • CloudFront
        • CloudFront Flat-Rate Migration
      • Networking & VPC
        • Cross-AZ Data Transfer Cost
        • MTU 9001 / PMTUD Black Hole
        • NAT Gateway & S3 Gateway Endpoint
      • DynamoDB
        • DynamoDB On-Demand Ceiling
      • CloudWatch
        • CloudWatch Logs Insights Cost
      • S3
        • Glacier Small-Files Cost Trap
        • Incomplete Multipart Uploads
      • IAM
        • iam:PassRole Privilege Escalation
      • EC2
        • HTTP 429 – Gemini API on AWS
        • IMDSv2 Hop Limit / Containers
      • Lambda
        • Lambda /tmp Warm Start Persistence
      • RDS
        • RDS Proxy & CloudWatch Cost
    • Azure
      • Front Door
        • WAF Policy ArmResourceId Error
Hero Image
HTTP 429 When Calling the Gemini API on AWS

Running into HTTP 429 calling the Gemini API on AWS — and how our team fixed it. Hi everyone 👋 While building our capstone project (a RAG chatbot running on EC2 that calls the Gemini API), we hit an error that anyone who’s integrated a third-party API has probably run into at least once: HTTP 429 – Too Many Requests. At first we were pretty confused, because everything ran fine locally — no signs of trouble at all. But the moment we deployed to EC2 and tested with multiple concurrent users, requests piled up and Gemini politely declined with a 429.

  • AWS
  • Gemini API
  • Rate Limiting
  • Reliability
  • Amazon Bedrock
  • CloudWatch
Sunday, August 2, 2026 Read
Hero Image
The IMDSv2 Hop Limit Trap When Running Containers on EC2

Switching to IMDSv2 is the right security move, full stop. Do it on an EC2 instance running Docker containers, though, and the app inside loses access to its IAM Role credentials immediately. Hi everyone 👋 Upgrading from IMDSv1 to IMDSv2 is standard, correct security guidance — it closes off a real class of credential-theft attacks against the EC2 instance metadata service. But flipping that switch on an instance that runs its application inside a Docker container can break AWS SDK access instantly, with no obvious explanation in the error message.

  • AWS
  • EC2
  • Security
  • Containers
  • Docker
Saturday, August 1, 2026 Read
Navigation
  • About
  • Featured Posts
  • Recent Posts
Contact me:
  • hi@thedavidlee.space

© 2026 Copyright.