Is it possible to test locally aws lambda ?
- emulate aws services with localstack
- deploy aws infrastructure with terraform
- based on terraform lambda tutorial
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"
Copy/paste one of this url in your browser