https://github.com/ramitsurana/the-serverless-setup
Setup your entire infrastructure with serverless functions
https://github.com/ramitsurana/the-serverless-setup
apex aws-lambda cloudformation google-cloud serverless-architectures serverless-framework
Last synced: 6 months ago
JSON representation
Setup your entire infrastructure with serverless functions
- Host: GitHub
- URL: https://github.com/ramitsurana/the-serverless-setup
- Owner: ramitsurana
- License: mit
- Created: 2017-07-30T18:31:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-06T05:42:43.000Z (over 8 years ago)
- Last Synced: 2025-04-19T16:11:12.213Z (11 months ago)
- Topics: apex, aws-lambda, cloudformation, google-cloud, serverless-architectures, serverless-framework
- Language: JavaScript
- Homepage: https://ramitsurana.github.io/the-serverless-setup/
- Size: 145 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The-serverless-setup
Setup your entire infrastructure with serverless functions
## Architecture

## Comparision:
| Features/Options | Serverless | Apex | Chalice | Zappa | SAM |
| -----------------|:---------------------------:|:-------------------:|:---------------------:|:----------------:|:-----------:|
|Language Written |Nodejs | Go | Python| Python | Python|
|Functions Support |Lambda,Google,Azure,Openwhisk | AWS Lambda | AWS Lambda| AWS Lambda| AWS Lambda |
|Provisioning | CloudFormation| Terraform | Cloudformation |Cloudformation|YML/JSON Based Template |
## Use Cases
Benefits of Serverless Framework:
* Based on NodeJS
* CloudFormation Based Template
* Multiple Cloud Provider Support
* High Extensiblity of new features and options
## Setup
* Setup Authentication:
Using your AWS Credentials set up the id's at
````
$ sudo vi ~/.aws/credentials
````
Using your GCP Credentials set up the id's at
````
$ sudo cat /home/$USER/.gcloud/keyfile.json
````
* Running latest nodjs and npm
Make sure to run latest version of nodejs and npm by running the below command:
````
$ sudo npm cache clean -f
$ sudo npm install -g n
$ sudo n stable
$ sudo ln -sf /usr/local/n/versions/node//bin/node /usr/bin/nodejs
````
### Serverless Framework
#### Google Cloud Functions
Using google cloud functions can be currently implemented using Serverless framework.
### Apex
Using the apex framework is easy and simple:
### SAM
SAM denotes for Serverless Application Model.You can use the below commands for packaging and deploying a yaml based cloudformation template:
````
$ aws cloudformation package \
--template-file /path_to_template/template.yaml \
--s3-bucket bucket-name \
--output-template-file packaged-template.yaml
````
For Deploying on AWS:
````
$ aws cloudformation deploy \
--template-file /path_to_template/packaged-template.yaml \
--stack-name my-new-stack \
--capabilities CAPABILITY_IAM
````
## License
MIT License