mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
64 lines
1.6 KiB
JSON
64 lines
1.6 KiB
JSON
{
|
|
"name": "jaws-users-signup",
|
|
"version": "0.0.1",
|
|
"location": "https://github.com/jaws-stack/jaws-users-crud-ddb-jwt-js",
|
|
"author": "JAWS",
|
|
"description": "A group of lambda functions for user crud operations using dynamodb, JSON web tokens and javascript",
|
|
"lambda": {
|
|
"envVars": [
|
|
"MYAPP_SERVICE_KEY",
|
|
"MYAPP_SERVICE2_KEY"
|
|
],
|
|
"deploy": false,
|
|
"package": {
|
|
"optimize": {
|
|
"builder": "browserify",
|
|
"minify": true,
|
|
"ignore": [],
|
|
"exclude": [
|
|
"aws-sdk"
|
|
],
|
|
"includePaths": []
|
|
},
|
|
"excludePatterns": []
|
|
},
|
|
"cloudFormation": {
|
|
"Description": "",
|
|
"Handler": "aws_modules/users/create/index.handler",
|
|
"MemorySize": 1024,
|
|
"Runtime": "nodejs",
|
|
"Timeout": 6
|
|
}
|
|
},
|
|
"apiGateway": {
|
|
"deploy": false,
|
|
"cloudFormation": {
|
|
"Type": "AWS",
|
|
"Path": "users",
|
|
"Method": "POST",
|
|
"AuthorizationType": "none",
|
|
"ApiKeyRequired": false,
|
|
"RequestTemplates": {
|
|
"application/json": "{\"access_token\":\"$input.params('access_token')\",\"body\":\"$input.json('$')\"}"
|
|
},
|
|
"RequestParameters": {
|
|
"integration.request.querystring.integrationQueryParam": "method.request.querystring.access_token"
|
|
},
|
|
"Responses": {
|
|
"default": {
|
|
"statusCode": "200",
|
|
"responseParameters": {
|
|
"method.response.header.Access-Control-Allow-Origin": "'*'"
|
|
},
|
|
"responseTemplates": {
|
|
"application/json": ""
|
|
}
|
|
},
|
|
"400": {
|
|
"statusCode": "400"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|