1.1.4 • Published 6 years ago

@rheactorjs/aws-lambda v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

aws-lambda

npm version Build Status Greenkeeper badge js-standard-style semantic-release Test Coverage Code Climate

Core components for RESTful AWS lambda endpoints.

See image-service for a concrete usage example.

API Gateway

APIs built with aws-lambda require additional setup on API Gateway.

After creating an API Gateway API for the lambda by configure it as proxy resource the CORS configuration needs to be customized:

Select the /{proxy+} resource and from the Actions drop-down select Enable CORS.
Add Content-Length to the Access-Control-Allow-Headers list. Put 'Content-Type' in the Access-Control-Expose-Headers list under Advanced.
Click Enable CORS and replace existing CORS headers.

Don't forget to deploy the API afterwards.