https://github.com/didierfranc/serverless-sample
Serverless sample
https://github.com/didierfranc/serverless-sample
aws aws-lambda elasticache nodejs redis
Last synced: 2 months ago
JSON representation
Serverless sample
- Host: GitHub
- URL: https://github.com/didierfranc/serverless-sample
- Owner: didierfranc
- Created: 2018-04-14T12:48:32.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T19:52:39.000Z (over 3 years ago)
- Last Synced: 2025-04-28T12:56:46.423Z (about 1 year ago)
- Topics: aws, aws-lambda, elasticache, nodejs, redis
- Language: JavaScript
- Homepage:
- Size: 426 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serverless-sample
This sample provide a simple way to start a basic Node.js application with modern Javascript, redis and straightforward secrets management on AWS.
🚨 Be careful if you're using VPC with **serverless** to access resources like **RDS** or **Elasticache** in addition to **SecretsManager** or other external services don't forget to [provide access to internet to your VPC](https://medium.com/@philippholly/aws-lambda-enable-outgoing-internet-access-within-vpc-8dd250e11e12).
## Abstract
* [Elasticache](https://aws.amazon.com/elasticache/) (redis)
* [SecretsManager](https://aws.amazon.com/secrets-manager/)
* Node.js 8.10
## How to play with it ?
### dev
```
yarn dev
```
### deploy
#### 🐌
The first time you need to deploy the stack with
```
yarn deploy
```
#### 🏎
Then you will be able to deploy only your function
```
yarn deploy --function hello
```
### Environment variables and secrets
You can set your secrets locally inside `secrets.json` and environment variables inside `env.json`