lambda-aws
v0.0.1
Published
A command line utility for quickly deploying AWS Lambda with other AWS services.
Downloads
1
Readme
lambda-aws
A command line utility for quickly deploying AWS Lambda with other AWS services.
- CloudFront to host sites
- API Gateway to handle API gateway REST/WebSocket requests
- SES to manage email status notifications
- SNS to manage notifications
Features
- Multi-region deployment - create a Lambda function and corresponding resources in each region that an app is deployed
Setup
Initialize a Lambda configuration for this
laws init
Configuration file
In lambda-aws.json
{
"name": "function-name",
"region": ["us-east-1"],
"prefix": {
"dev": "dev-"
},
"suffix": {
"production": "-live"
},
"service": [
{
"id": "cloudfront",
"domain": "myfunction.com",
"handler": "frontend",
"aws": {
"distribution": "XYZ123EABC123",
"cache": false
}
},
{
"id": "api-gateway",
"domain": "",
"regional": true,
"aws": {
"api_id": "a1235"
}
},
{
"id": "websocket",
"service": "api-gateway-ws"
}
],
"handler": {
"server": "dist/server.handler",
"worker": "dist/worker.handler"
},
"memory": {
"server": 256,
"default": 128
}
}
Deployment
laws deploy
Monitoring
laws status
Prints
- state of regions
- deployment
- services linked