azavea / tilegarden

Serverless raster and vector map tile generation using Mapnik and AWS Lambda
https://azavea.github.io/tilegarden/
Other
98 stars 7 forks source link

Feature/claudia hello world #18

Closed mattdelsordo closed 6 years ago

mattdelsordo commented 6 years ago

Overview

Adds a basic "hello world" for AWS Lambda using Node.

Notes

Requires proper AWS credentials set up to test.

Testing Instructions

added 1 package from 1 contributor in 2.698s validating package validating package npm dedupe -q --no-package-lock zipping package initialising IAM role initialising IAM role iam.getRole RoleName=lambnik-tiler-dev creating Lambda creating Lambda lambda.createFunction FunctionName=hello-world-mdelsordo creating Lambda lambda.setupRequestListeners creating version alias creating version alias lambda.updateAlias FunctionName=hello-world-mdelsordo Name=latest creating version alias lambda.setupRequestListeners creating version alias lambda.createAlias FunctionName=hello-world-mdelsordo Name=latest creating version alias lambda.setupRequestListeners creating REST API creating REST API apigateway.createRestApi name=hello-world-mdelsordo creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API sts.getCallerIdentity creating REST API apigateway.getRestApi restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.updateRestApi restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.getResources restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.getGatewayResponses restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putMethod authorizerId=undefined resourceId=jhp1tlrgse restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putIntegration resourceId=jhp1tlrgse restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putMethodResponse resourceId=jhp1tlrgse restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putIntegrationResponse resourceId=jhp1tlrgse restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putMethod resourceId=jhp1tlrgse restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putIntegration resourceId=jhp1tlrgse restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putMethodResponse resourceId=jhp1tlrgse restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putIntegrationResponse resourceId=jhp1tlrgse restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.createResource parentId=jhp1tlrgse pathPart={name} restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putMethod authorizerId=undefined resourceId=pth2w9 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putIntegration resourceId=pth2w9 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putMethodResponse resourceId=pth2w9 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putIntegrationResponse resourceId=pth2w9 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putMethod resourceId=pth2w9 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putIntegration resourceId=pth2w9 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putMethodResponse resourceId=pth2w9 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putIntegrationResponse resourceId=pth2w9 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.createResource parentId=jhp1tlrgse pathPart=echo restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putMethod authorizerId=undefined resourceId=4a5ia1 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putIntegration resourceId=4a5ia1 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putMethodResponse resourceId=4a5ia1 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putIntegrationResponse resourceId=4a5ia1 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putMethod resourceId=4a5ia1 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putIntegration resourceId=4a5ia1 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putMethodResponse resourceId=4a5ia1 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.putIntegrationResponse resourceId=4a5ia1 restApiId=ot36sxu4a5 creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader creating REST API apigateway.createDeployment restApiId=ot36sxu4a5 stageName=latest creating REST API apigateway.setupRequestListeners creating REST API apigateway.setAcceptHeader saving configuration { "lambda": { "role": "lambnik-tiler-dev", "name": "hello-world-mdelsordo", "region": "us-east-1", "sharedRole": true }, "api": { "id": "ot36sxu4a5", "module": "main", "url": "https://ot36sxu4a5.execute-api.us-east-1.amazonaws.com/latest" } } Done in 10.61s.


* Optional: edit one of the returned strings in main.js and run `yarn update` to update the lambda. It should give you very similar output to `yarn start`.
* Visit the provided URL, you should see a `Hello, world!`. You can also append `/:name` to get `Hello, ${name}`, or `/echo` followed by any request to get returned the request. 

Resolves #7
mattdelsordo commented 6 years ago

Sounds like a good idea, I'll add in the API builder code. I was actually about to ask about .gitignoring claudia.json, I've ran into trouble with it too when switching branches and whatnot.