Skip to content

keivinonline/aws-apigateway-lambda-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-apigateway-lambda-go

Purpose of this repo is to demonstrate the usage of AWS API Gateway and Lambda with Go.

deployed URL based on code in this repo

url: https://djte904663.execute-api.ap-southeast-1.amazonaws.com/api

objectives

  1. - return a status 400 if the "authentication" header is malformed or missing in the following lambda code
  2. - return a status 403 if "token" is invalid or empty
  3. - Fix Query user notes
  4. - Limit user notes to 10

go test

cp .env.example .env # fille in the requirement aws credentials
go test -v -cover lambda-go/main*  

Setup

Terraform is used to provision the required AWS resources:

  • terraform v1.3.7
  • pre-req for terraform deployment
export AWS_ACCESS_KEY_ID="xxx"
export AWS_SECRET_ACCESS_KEY="yyy"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages