Skip to content

Instantly share code, notes, and snippets.

@kevinold
Forked from furf/options-awsm.json
Created December 19, 2015 21:27
Show Gist options
  • Save kevinold/a5e92d0fc239ff2efbcd to your computer and use it in GitHub Desktop.
Save kevinold/a5e92d0fc239ff2efbcd to your computer and use it in GitHub Desktop.
{
"lambda": {
"envVars": [],
"deploy": false,
"package": {
"optimize": {
"builder": "browserify",
"minify": true,
"ignore": [],
"exclude": [
"aws-sdk"
],
"includePaths": []
},
"excludePatterns": []
},
"cloudFormation": {
"Description": "",
"Handler": "aws_modules/user/profile-options/handler.handler",
"MemorySize": 1024,
"Runtime": "nodejs",
"Timeout": 6
}
},
"apiGateway": {
"deploy": false,
"cloudFormation": {
"Type": "AWS",
"Path": "user/profile",
"Method": "OPTIONS",
"AuthorizationType": "none",
"ApiKeyRequired": false,
"RequestTemplates": {
"application/json": ""
},
"RequestParameters": {},
"Responses": {
"400": {
"statusCode": "400"
},
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods": "'*'",
"method.response.header.Access-Control-Allow-Origin": "'*'"
},
"responseModels": {},
"responseTemplates": {
"application/json": ""
}
}
}
}
}
}
{
"lambda": {
"envVars": [],
"deploy": true,
"package": {
"optimize": {
"builder": "browserify",
"minify": true,
"ignore": [],
"exclude": [
"aws-sdk"
],
"includePaths": []
},
"excludePatterns": []
},
"cloudFormation": {
"Description": "",
"Handler": "aws_modules/user/profile/handler.handler",
"MemorySize": 1024,
"Runtime": "nodejs",
"Timeout": 6
}
},
"apiGateway": {
"deploy": false,
"cloudFormation": {
"Type": "AWS",
"Path": "user/profile",
"Method": "POST",
"AuthorizationType": "none",
"ApiKeyRequired": false,
"RequestTemplates": {
"application/json": ""
},
"RequestParameters": {},
"Responses": {
"400": {
"statusCode": "400"
},
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods": "'*'",
"method.response.header.Access-Control-Allow-Origin": "'*'"
},
"responseModels": {},
"responseTemplates": {
"application/json": ""
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment