Skip to content

rslim087a/aws-lambda-api-gateway-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

AWS Lambda API Gateway Tutorial

A serverless QR code generator built with AWS Lambda and API Gateway.

What's Included

  • lambda_function.py - QR code generation Lambda handler
  • requirements.txt - Python dependencies (qrcode, pillow)
  • lambda_deployment.zip - Ready-to-upload deployment package

Test Event (for Lambda console)

{
  "body": "{\"url\": \"https://www.youtube.com/@RayanSlim087\"}"
}

cURL Command (after API deployment)

curl -X POST https://YOUR-API-ID.execute-api.us-east-1.amazonaws.com/prod/generate \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.youtube.com/@RayanSlim087"}'

View QR Code in Browser

const base64 = "PASTE_YOUR_BASE64_HERE";
const img = document.createElement('img');
img.src = 'data:image/png;base64,' + base64;
img.style.width = '300px';
document.body.appendChild(img);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages