Skip to content

Instantly share code, notes, and snippets.

@chrillo
Created October 11, 2015 16:42
Show Gist options
  • Save chrillo/5f733028494980cd633c to your computer and use it in GitHub Desktop.
Save chrillo/5f733028494980cd633c to your computer and use it in GitHub Desktop.
{
"lambda": {
"envVars": [],
"deploy": false,
"package": {
"optimize": {
"builder": "browserify",
"minify": true,
"babel": true,
"ignore": [],
"exclude": [
"aws-sdk"
],
"includePaths": []
},
"excludePatterns": []
},
"cloudFormation": {
"Description": "",
"Handler": "aws_modules/toggl/sync/handler.handler",
"MemorySize": 512,
"Runtime": "nodejs",
"Timeout": 180
}
},
"apiGateway": {
"deploy": false,
"cloudFormation": {
"Type": "AWS",
"Path": "toggl/sync",
"Method": "GET",
"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": {
"400": {
"statusCode": "400"
},
"default": {
"statusCode": "200",
"responseParameters": {
"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