Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/san-pblr-gct/serverless-techtalk
Techtalk in xto10x for building lambdas through serverless framework
https://github.com/san-pblr-gct/serverless-techtalk
Last synced: about 1 month ago
JSON representation
Techtalk in xto10x for building lambdas through serverless framework
- Host: GitHub
- URL: https://github.com/san-pblr-gct/serverless-techtalk
- Owner: san-pblr-gct
- Created: 2020-01-14T10:46:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T15:00:06.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T08:27:25.031Z (almost 2 years ago)
- Language: JavaScript
- Size: 69.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Techtalk on using serverless framework with lambdas
## Prerequisites.
Install serverless
npm install serverless -g## To run this project .
1. npm install/yarn
2. configure your aws credentials using below command if you have not configured aws cli.
serverless config credentials --provider aws --key XXXXX --secret XXXXX
3. Decrypt secret file
serverless decrypt --stage dev --password 'test'
4. Deploy
sls deploy## General serverless commands
To install serverless
npm install serverless -gnpm install serverless-secrets-plugin --save-D (for serverless secrets)
npm install serverless-domain-manager --save-dev (for Custom domain)
To configure Aws node js template
serverless create -t aws-nodejsTo configure AWS credentials and save in profile
serverless config credentials --provider aws --key XXXXX --secret XXXXX --profile EFDEVThe environment variables are hidden in secrets.dev.yml and it is explicitly ignored while checkin using gitignore. Only the encrypted file is checked in. Encryption is done using the below command
serverless encrypt --stage dev --password 'test'
To decrypt it:
serverless decrypt --stage dev --password 'test'