165 Commits

Author SHA1 Message Date
Erik Erikson
596bb0eb98 Fix the tests to use the updated log group reference
TODO: verify the loggroup resource addition
2016-09-15 11:52:26 -07:00
Erik Erikson
b8134cb15e Create & Ref CloudWatch LogGroup
Remove the create log group permissions
Add CloudWatch LogGroup to the CFT
Reference the co-created CloudWatch LogGroup as one of the resources for the IamPolicyLambdaExecution's logging statement
2016-09-15 11:29:21 -07:00
Erik Erikson
017914e661 Specific Log Resources Specific to Functions
Switch from an all lambdas logging resource IAM policy to one that targets specifically and only those CloudWatch logs produces by the lambdas declared by the service.
Modify tests to ensure this is properly done.
2016-09-12 12:08:26 -07:00
Erik Erikson
5e5efd7774 Resolve Lint Errors
Yeesh.  Sorry for the noob moves.  Resolves lint.
Note that the reduction in coverage is a result of the reduction of lines of code via removal of those lines without removal of uncovered lines.
2016-09-07 15:39:10 -07:00
Erik Erikson
a1eabd7b41 Update Tests
Rather than expecting static strings, expect the new joins of various variables.
2016-09-07 15:13:12 -07:00
Erik Erikson
f5470c0828 Removing code-based policy name and resource assignment 2016-09-07 14:56:34 -07:00
Erik Erikson
39500714ff Merge branch 'master' into reduce-scope-of-rights-of-default-iamlambdarole 2016-09-07 13:38:53 -07:00
Florian Motlik
f9f212b404 WIP 2016-09-05 16:18:58 +02:00
Florian Motlik
1364f05f61 Merge pull request #1917 from johncmckim/issue-1777
Update packaging to support individual packages per function
2016-09-05 14:56:07 +02:00
John McKim
83a9d5e0fd fixes from pr comments 2016-09-03 12:32:13 +10:00
Florian Motlik
62131e3b63 Add documentation for default 500 status 2016-09-02 17:19:56 +02:00
Florian Motlik
bb2ca44623 Capture Exception in handler with 500 status code 2016-09-02 17:02:30 +02:00
Philipp Muens
41260b834e Change from object representation to string representation for status code 2016-09-02 16:01:16 +02:00
Philipp Muens
16863c3303 Fix tests to use new resource logical IDs 2016-09-02 14:20:58 +02:00
Philipp Muens
dede40ba7d Fix broken markdown syntax for table of status codes 2016-09-02 14:20:58 +02:00
Philipp Muens
09139fda18 Add status code support for API Gateway 2016-09-02 14:20:58 +02:00
John McKim
ea864be300 merge with master 2016-09-02 07:17:57 +10:00
John DeVerna
12a069d2f2 Fixing #1168 - adding ability to specify APIG pass through behavior 2016-09-01 11:12:46 -04:00
John McKim
44823ebc71 merge with master 2016-09-01 07:30:17 +10:00
Eslam A. Hefnawy
6bf34263df switched back the deployment bucket name logical id 2016-09-01 01:08:34 +09:00
Eslam A. Hefnawy
9f0b6c09fa resolved conflicts and fixed tests 2016-08-31 23:34:23 +09:00
Eslam A. Hefnawy
f996b3549b fixed logical ids tests 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
718aa3169c fixed logical id references 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
c6f4b2e4fe fixed authorizer tests 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
a5218fb686 fixed conflicts with master 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
e9e565e2ec fixed cors bug 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
ae4f094bc7 fix linting issues 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
d475b386a4 logical IDs updates 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
ce31c7bc1c tiny fix 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
8257924d00 added more tests for s3 and sns events 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
959d0a17d3 updated tests with new logical ids 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
a5e3c31974 updating logical ids 2016-08-31 23:25:15 +09:00
Florian Motlik
308889b128 Merge pull request #1988 from puug/cors_custom_headers
Fixed issue where custom cors headers were not being set, and was jus…
2016-08-31 14:10:28 +02:00
Florian Motlik
4118e7ca5b Merge pull request #1968 from serverless/api-gateway-request-response-templates-support
API Gateway request / response templates support
2016-08-31 13:24:30 +02:00
Alexandru Savin
9fd32fbb39 Small typo in documentation 2016-08-31 11:26:28 +02:00
Philipp Muens
c14018bb2f Add tests for correct error throwing 2016-08-31 10:18:13 +02:00
Ryan Murfitt
b59c53fe82 More lint issue fixes 2016-08-31 18:11:45 +10:00
Ryan Murfitt
e7ed3573da Combined the tests a bit nicer 2016-08-31 18:03:14 +10:00
Philipp Muens
85deac68d2 Add checks if request template and response headers are provided as objects 2016-08-31 09:45:16 +02:00
Ryan Murfitt
330d3471e7 trailing comma fix 2016-08-31 17:39:02 +10:00
Ryan Murfitt
219f20e8f1 Fixed issue where custom cors headers were not being set, and was just using defaults' 2016-08-31 17:26:22 +10:00
Philipp Muens
20d0d574e8 Update docs according to PR feedback 2016-08-31 09:23:44 +02:00
Philipp Muens
1159de41fd Update merging of custom request templates to support only strings 2016-08-31 09:23:44 +02:00
Philipp Muens
a56c28f554 Add documentation for request / response templates support 2016-08-31 09:23:44 +02:00
Philipp Muens
c036836bfa Remove automatic enclosing of response header values with single quotes 2016-08-31 09:23:44 +02:00
Philipp Muens
28f2aab1e2 Add support for custom request templates 2016-08-31 09:23:44 +02:00
Philipp Muens
d6d2f83bee Refactor default request template setup
To be added inline (rather than referenced from the CloudFormation
"Mappings" section) because they're independent and not re-used anyway.
2016-08-31 09:23:44 +02:00
Philipp Muens
9afc5834d5 Add support for merging of custom headers 2016-08-31 09:23:44 +02:00
Philipp Muens
1c63524446 Add custom response template support 2016-08-31 09:23:44 +02:00
Philipp Muens
c3d34b2d30 Add support for default text/html response template 2016-08-31 09:23:44 +02:00