mirror of
https://github.com/serverless/serverless.git
synced 2026-02-01 16:07:28 +00:00
new format
This commit is contained in:
parent
9b2a78917a
commit
6c50709423
@ -1,57 +0,0 @@
|
||||
{
|
||||
"name": "create-user",
|
||||
"version": "0.0.1",
|
||||
"location": "",
|
||||
"author": "Joe Smith <vera@gmail.com> http://joe.io",
|
||||
"description": "",
|
||||
"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": {
|
||||
"path": "",
|
||||
"method": "GET",
|
||||
"authorizationType": "none",
|
||||
"apiKeyRequired": false,
|
||||
"requestTemplates": {},
|
||||
"requestParameters": {},
|
||||
"responses": {
|
||||
"default": {
|
||||
"statusCode": "200",
|
||||
"responseParameters": {},
|
||||
"responseModels": {},
|
||||
"responseTemplates": {
|
||||
"application/json": ""
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"statusCode": "400"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
77
examples/lambda.awsm.json
Normal file
77
examples/lambda.awsm.json
Normal file
@ -0,0 +1,77 @@
|
||||
{
|
||||
"name": "",
|
||||
"envVars": [],
|
||||
"package": {
|
||||
"optimize": {
|
||||
"builder": "browserify",
|
||||
"minify": true,
|
||||
"ignore": [],
|
||||
"exclude": [
|
||||
"aws-sdk"
|
||||
],
|
||||
"includePaths": []
|
||||
},
|
||||
"excludePatterns": []
|
||||
},
|
||||
"plugins": [],
|
||||
"cloudFormation": {
|
||||
"lambda": {
|
||||
"Function": {
|
||||
"Type": "AWS::Lambda::Function",
|
||||
"Properties": {
|
||||
"Handler": "",
|
||||
"Role": {
|
||||
"Ref": "aaLambdaRoleArn"
|
||||
},
|
||||
"Code": {
|
||||
"S3Bucket": "",
|
||||
"S3Key": ""
|
||||
},
|
||||
"Runtime": "nodejs",
|
||||
"Timeout": 6,
|
||||
"MemorySize": 1024
|
||||
}
|
||||
},
|
||||
"EventSourceMapping": {
|
||||
"Type": "AWS::Lambda::EventSourceMapping",
|
||||
"Properties": {
|
||||
"EventSourceArn": {},
|
||||
"FunctionName": "",
|
||||
"StartingPosition": ""
|
||||
}
|
||||
},
|
||||
"AccessPolicyX": {
|
||||
"Type": "AWS::Lambda::Permission",
|
||||
"Properties": {
|
||||
"FunctionName": "",
|
||||
"Action": "",
|
||||
"Principal": "",
|
||||
"SourceAccount": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"apiGateway": {
|
||||
"Endpoint": {
|
||||
"Type": "AWS::ApiGateway::Endpoint",
|
||||
"Path": "",
|
||||
"Method": "GET",
|
||||
"AuthorizationType": "none",
|
||||
"ApiKeyRequired": false,
|
||||
"RequestTemplates": {},
|
||||
"RequestParameters": {},
|
||||
"Responses": {
|
||||
"400": {
|
||||
"statusCode": "400"
|
||||
},
|
||||
"default": {
|
||||
"statusCode": "200",
|
||||
"responseParameters": {},
|
||||
"responseTemplates": {
|
||||
"application/json": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
12
examples/module.awsm.json
Normal file
12
examples/module.awsm.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "",
|
||||
"version": "0.0.1",
|
||||
"location": "https://github.com/...",
|
||||
"author": "",
|
||||
"description": "",
|
||||
"cloudFormation": {
|
||||
"lambdaIamPolicyDocumentStatements": [],
|
||||
"apiGatewayIamPolicyDocumentStatements": [],
|
||||
"resources": {}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user