8000 GitHub - demo-rnd/aws-serverless: Serverless app runs locally using AWS SAM, Lambda, API Gateway, and DynamoDB.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

demo-rnd/aws-serverless

 
 

Repository files navigation

AWS Serverless CRUD App

Implements Lambdas, API Gateway, and DynamoDB

This project runs a serverless application locally by implementing Lambdas, API Gateway, and DynamoDB. This project uses AWS SAM. Tutorial on getting AWS SAM running locally.

This project has a companion client-side project for UI interactions.

.env file:
DYNAMODB_ENDPOINT=http://docker.for.mac.host.internal:8000
AWS_UPLOAD_BUCKET=YOUR_AWS_UPLOAD_BUCKET
AWS_UPLOAD_BUCKET_REGION=YOUR_AWS_UPLOAD_BUCKET_REGION

A few notes.

Adopt least privileged

Have an account specifically for uploading to your S3 bucket.
Also know that if you attempt to use a local enviornment variable named AWS_ACCESS_KEY_ID (process.env.AWS_ACCESS_KEY_ID) it will be overridden (when run locally) by your aws configure value. Thus, specify unique environment variables for uploading to S3 to most closely mimic other enviornments.

AWS_S3_UPLOAD_ACCESS_KEY_ID=YOUR_KEY
AWS_S3_UPLOAD_SECRET_ACCESSKEY=YOUR_SECRET_ACCESS_KEY

About

Serverless app runs locally using AWS SAM, Lambda, API Gateway, and DynamoDB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.8%
  • Shell 9.2%
0