zorrofox
73617d0a66
fix : #1973 deploy fails with unhelpful error message when service name is not a valid CF stack name
2016-09-23 22:47:23 +08:00
David Tanner
d490ed413e
Rename to deploymentBucket as recommended by @flomotlik
2016-09-23 08:18:33 -06:00
David Tanner
1a8b94cc4f
Upping code coverage.
...
Found some unused code when looking for throttling errors, added functionality to get code from SDK errors.
Added tests to cover functionality.
Fixed prefix to be serverless/{serviceName}/{stage}
2016-09-22 15:55:52 -06:00
Florian Motlik
6d91b5755f
Merge pull request #2173 from serverless/support-any-method
...
Add any to list of allowed http methods
2016-09-22 18:59:53 +02:00
David Tanner
66525f259e
Deploy by service and stage.
...
Check that the bucket exists before, and that it is in the correct stage
2016-09-22 10:24:35 -06:00
David Tanner
4172655c1b
Cleanup linting issues
2016-09-22 09:19:58 -06:00
Florian Motlik
953dbfbb1d
Merge pull request #2101 from serverless/update-tracking-functionality
...
Update tracking functionality
2016-09-22 14:35:04 +02:00
David Tanner
a425967654
Add a bucket to the provider for deployments.
...
Also prefix deployments so they can co-exist with other files
2016-09-22 05:35:29 -06:00
Erik Erikson
9ff80a10e5
"Fn:Join" => "Fn::Join"
...
(add a colon - otherwise, it is invalid and blows up stack creation)
2016-09-21 11:22:14 -07:00
kengos
cb74b3b1bb
add filename option to YAML.load
2016-09-21 22:36:13 +09:00
Florian Motlik
f732019d5b
Add any to list of allowed http methods
2016-09-21 12:48:32 +02:00
Roger Lam
5cb7dc1734
fix linting errors
2016-09-20 11:15:35 -07:00
Roger Lam
9a5c01815e
remote comments and debug statements
2016-09-20 10:56:27 -07:00
Philipp Muens
10a638b744
Update tracking functionality according to PR review
2016-09-20 19:24:35 +02:00
Roger Lam
65489ad34c
add ability to pass custom name through options
2016-09-20 00:30:20 -07:00
Roger Lam
7ca12674a4
add additional test for when path and name are provided
2016-09-20 00:28:58 -07:00
Philipp Muens
1f8dc53aea
Add timezone information
2016-09-20 09:12:59 +02:00
Philipp Muens
3338d018d6
Convert date object to string to get the timezone as well
2016-09-20 09:08:47 +02:00
Philipp Muens
b69027b686
Add tests for tracking functionality which check the existence of the trackingId
2016-09-20 09:08:47 +02:00
Philipp Muens
3c84d6112e
Add memorySize and timeout tracking functionality
2016-09-20 09:08:47 +02:00
Philipp Muens
d1a16e283f
Add new tracking functionalities and group them by topic
2016-09-20 09:08:47 +02:00
Philipp Muens
649ada4c2c
Add unique userId (uuid) for tracking functionality
2016-09-20 09:08:47 +02:00
Roger Lam
e04226e922
fix test
2016-09-19 23:40:09 -07:00
Roger Lam
87c37bbc00
Merge branch 'master' of github.com:serverless/serverless into add-name-flag-to-create
2016-09-19 23:05:12 -07:00
Erik Erikson
7d40665fa4
Update Tests
...
(this is just getting embarassing - maybe I should set up a pre-hook?)
2016-09-19 13:12:38 -07:00
Erik Erikson
b768b47090
Remove the "RetentionInDays" Attribute
...
Hopefully this causes the system to fall back to the default setting for the account.
2016-09-19 13:04:44 -07:00
Florian Motlik
67644f7284
Merge pull request #2033 from rowanu/throw-error-on-events-object
...
Add check (and test) that function.events is an array.
2016-09-19 16:34:14 +02:00
Florian Motlik
7e7dcc4923
Merge pull request #2138 from danielkoo/serverless-#2016-wip
...
- ensure the Create/Update CloudFormation templates are always written to disk, even if the noDeploy option was not specified
2016-09-19 16:22:27 +02:00
Andrew McClenaghan
2cebdff5f7
Update test to just test description
2016-09-19 20:34:02 +10:00
Andrew McClenaghan
17ae7ed96f
Clean up duplicate test
2016-09-17 22:23:22 +10:00
Andrew McClenaghan
39ac286e3c
Add description property for lambda function
2016-09-17 22:22:19 +10:00
Florian Motlik
9240bcd967
Merge pull request #2148 from johncmckim/issue-2143
...
fix bug where variableSyntax is never set from config
2016-09-16 20:49:41 +02:00
Florian Motlik
47e654fe71
Fix profile handling when other keys are present
2016-09-16 15:38:27 +02:00
Florian Motlik
07a22d0702
Merge pull request #2015 from rowanu/aws-provider-profile
...
Support provider > profile and profile per stage
2016-09-16 14:05:41 +02:00
John McKim
9e7f7c89f3
fix bug where variableSyntax is never set from config
2016-09-16 17:15:25 +10:00
Daniel Koo
296810c8b3
- ensure the Create/Update CloudFormation templates are always written to disk, even if the noDeploy option was not specified
...
- using ES6 arrow functions
- added tests
- added to the documentation
2016-09-16 09:58:05 +10:00
Erik Erikson
f4b2c60b62
Remove formatting changes made by my editor
2016-09-15 14:02:04 -07:00
Erik Erikson
9d4ed7a13a
Remove Unused Name Generation in CFT Template
2016-09-15 13:06:29 -07:00
Erik Erikson
82272165a0
Fix Policy Naming + Add LogGroup Tests
...
Correct policy naming by doing it in code with appropriate variables - previous code was incorrectly assuming that the template would be rendered with variable names.
Add tests to verify that the CloudWatch LogGroup resources are being properly added into the Service's CFT.
Add minor comment about line length reasoning for extra code.
2016-09-15 13:05:11 -07:00
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
Florian Motlik
2c04703381
Merge pull request #2142 from andymac4182/issue_2140
...
Update to use describeStackResource
2016-09-15 17:04:52 +02:00
Philipp Muens
9699667cc0
Merge pull request #2079 from serverless/api-keys-output
...
Added API Keys to info plugin
2016-09-15 13:40:42 +02:00
Andrew McClenaghan
b92de4ba40
Update to use describeStackResource
2016-09-15 20:56:00 +10:00
rowan
54728ef2b1
Switch CloudFormation OnFailure behaviour to rollback instead of delete. Fixes #2087 .
2016-09-14 10:58:39 +10:00
Erik Erikson
34f4b5a3cc
Tighten Log Rights/iamRoleARN=>role,roleArn/Add Docs
...
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.
Introduce a `role` property that specifies a role defined within the service.
Update tests to ensure this is properly used
Update documentation to describe this
Replace `iamRoleARN` with `roleArn`
Update tests and documentation to reflect this
Add Decision Trees describing the decision points and considerations between individual function rights and shared rights models
2016-09-13 17:06:00 -07:00
horike37
e54ec4d23e
add Node version and Serverless version in CLI errors
2016-09-14 07:53:01 +09:00
Florian Motlik
dcaa33d908
Merge pull request #2030 from Anichale/update-sinon-stubbed-tests
...
Issue #1899 : Update sinon stubbed tests to always check for correct args
2016-09-12 21:33:23 +02: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
Philipp Muens
3d204b4801
Merge pull request #2083 from dougmoscrop/simple_cleanup
...
Small cleanup/refactoring
2016-09-12 20:52:39 +02:00