Name: sf-summit-hackathon-2018
Owner: AWS Samples
Description: Starter template and sample data for the 2018 AWS SF Summit hackathon
Created: 2018-04-03 17:00:22.0
Updated: 2018-04-27 10:27:06.0
Pushed: 2018-04-04 18:59:07.0
Size: 45
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
If you are new to Serverless or want a starting point for the hackathon, you can use this starter project to help you get started faster. This repo also includes sample data which you can use in your hotel-booking app. This code contains a SAM template that defines the resources in your application, a Nodejs Lambda function starter code and some instructions to get you off the ground. Feel free to use this template to get started, though you are not required to use it. You are free to use other tools or libraries that you might be already familiar with.
Here are the instructions to start using the starter project:
git clone <url>
cd day-one-space-tours
aws s3 mb <bucketname>
package.json
in an editor and replace the <sam-package-bucket>
string in the package command script with the bucket name you choose in previous stepnpm install
to install required modules and start coding!We have pre-configured simple packaging and deploying instructions in the package.json
file. In order to deploy a stack, run npm run package && npm run deploy
. This will upload the code from your computer to the Amazon S3 bucket you had created earlier, and call AWS CloudFormation service to deploy the stack.
This Serverless Application is defined using the AWS Serverless Architecture Model (SAM) Specification. Refer How to create serverless applications using AWS SAM for complete detail on creating and deploying a Serverless Application using AWS SAM.
SAM is deployed using CloudFormation. SAM configuration file mainly describes the Lambda Function for processing and API Gateway for API Endpoints that fronts the Lambda Function.
All logs from your Lambda Function are pushed to Amazon CloudWatch, which can be used to debug the Lambda Function. For more details refer Monitoring and Troubleshooting Lambda-based Applications.
Amazon DynamoDB is a fully managed NoSQL database. The SAM template in this package creates a simple Amazon DynamoDB table. Refer the following documentation to start using DynamoDB in your Serverless Application,
Amazon Aurora is a MySQL and PostgreSQL compatible relational database built for the cloud. The SAM template in this package creates an instance running MySQL Database in it. Refer the following documentation to work with MySQL in Amazon Aurora,