Sometimes you need to do computations that may require resources or compute power beyond what can be expected in the cient browser. This is where Functions as a Service come into play in the Serverless world. This section is about writing those little functions.
AD
AD
AD
AD
http://stackoverflow.com/questions/31329958/how-to-pass-a-querystring-or-route-parameter-to-aws-lambda-from-amazon-api-gatew
AD
AD
If you want to test this locally from localhost, then you need to set CORS headers: http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors.html#how-to-cors-console Don't forget to redeploy after setting this up.
AD
AD
http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html
You'll need an SSL certificate: https://aws.amazon.com/certificate-manager/ looks nice but at the time of writing:
So you'll need to get a key from another provider and enter it in API Gateway.
Generate a Certificate Signing Request (CSR) using: openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr
AD
AD