Skip to content

nio-dtp/test-terraform-localstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POC

Is it possible to test locally aws lambda ?

Tested solution

  • emulate aws services with localstack
  • deploy aws infrastructure with terraform
  • based on terraform lambda tutorial

Boot

docker-compose up

Will create aws infrastructure with terraform

  • s3
  • lambda
  • apigateway
  • iam

After plan is applied, terminal prints urls

Outputs:

lambda_invoke_url_base = "http://localhost:4566/restapis/v27lasxpbr/poc/_user_request_/hello"
lambda_invoke_url_with_parameter = "http://localhost:4566/restapis/v27lasxpbr/poc/_user_request_/hello?name=Fulll"

Test lambda with apigateway

Copy/paste one of this url in your browser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published