new format

This commit is contained in:
doapp-ryanp 2015-10-26 20:58:00 -05:00
parent 9b2a78917a
commit 6c50709423
3 changed files with 89 additions and 57 deletions

View File

@ -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
View 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
View File

@ -0,0 +1,12 @@
{
"name": "",
"version": "0.0.1",
"location": "https://github.com/...",
"author": "",
"description": "",
"cloudFormation": {
"lambdaIamPolicyDocumentStatements": [],
"apiGatewayIamPolicyDocumentStatements": [],
"resources": {}
}
}