4240 Commits

Author SHA1 Message Date
Philipp Muens
75e4683ed3 Merge branch 'master' into visualize_stuff 2017-03-23 15:01:30 +01:00
Ryan S. Brown
b1fdf15398 PR #3360 introduced an incorrect IAM policy for log groups 2017-03-23 09:16:44 -04:00
Assaf Lavie
f2ccc00484 Test that nodejs6.10 local invoke works. 2017-03-23 15:14:42 +02:00
Philipp Muens
bc7c5a64d7 Merge master into PR and resolve conflicts 2017-03-23 12:50:31 +01:00
Assaf Lavie
b5a365e055 support any AWS nodejs runtime, not just 4.3 2017-03-23 13:46:45 +02:00
Philipp Muens
bd2b8d3679 Update recently added tests 2017-03-23 12:40:49 +01:00
Philipp Muens
8d348da0ce Merge master into PR 2017-03-23 12:29:07 +01:00
Eslam λ Hefnawy
eeb8b8a68c Merge pull request #3327 from HyperBrain/support-entrypoints-for-plugins
Allow entrypoints to be defined and called by plugins.
2017-03-17 23:59:05 +08:00
Eslam λ Hefnawy
8af647eba3 Merge pull request #3360 from ryansb/reduce-policy-dep
Reduce dependency tree depth between IAM & Log Groups
2017-03-17 23:56:21 +08:00
Eslam λ Hefnawy
808e666627 Merge pull request #3375 from serverless/updateDepricationNotice
update deprication message
2017-03-17 23:45:44 +08:00
Philipp Muens
96b135b7e7 Remove slightly misleading error message 2017-03-17 11:11:22 +01:00
davidwells
ade23e0d4c update linting 2017-03-16 15:10:58 -07:00
davidwells
4f6c719075 update test to work with new message 2017-03-16 15:04:14 -07:00
davidwells
da220cc826 add forums and chat links to errors 2017-03-16 14:57:00 -07:00
davidwells
59c33a1f36 update deprication message 2017-03-16 14:45:11 -07:00
Philipp Muens
4ee198c62c Add serverless-alpha autoloading 2017-03-16 13:06:14 +01:00
Philipp Muens
fef124e800 Restore global setTimeout to get into a clean state again 2017-03-15 12:12:38 +01:00
Philipp Muens
0784680f78 Merge pull request #3304 from jmannau/master
Corrected Access-Control-Allow-Methods for ANY HTTP events
2017-03-15 08:17:19 +01:00
Philipp Muens
0d7c66fda3 Fix linting issues 2017-03-15 07:55:05 +01:00
Philipp Muens
e1a312fa3f Merge pull request #3353 from bytekast/aws-groovy-gradle
AWS Groovy Gradle Template
2017-03-15 07:51:32 +01:00
Philipp Muens
485c8aa018 Merge pull request #3359 from ryansb/faster-tests-plz
Reduce test time by 50%
2017-03-15 07:34:59 +01:00
Rowell Belen
86e10fe8f1 Checkin missing file 2017-03-14 22:44:57 -06:00
Rowell Belen
7e5378db8f Feedback Updates 2017-03-14 22:23:28 -06:00
Ryan S. Brown
c95b40c584 Use stub on setTimeout instead 2017-03-14 18:14:05 -04:00
Eslam A. Hefnawy
c2e51a6eb3 releasing v1.9 2017-03-15 03:07:52 +08:00
Ryan S. Brown
1ee36e798f Reduce test time by 50%
This commit removes a hardcoded 5 second sleep intended to help handle
rate limits. The retry interval is changed during the test to 250ms from
5 seconds, with no change to the runtime behavior of the framework.
2017-03-14 09:16:48 -04:00
Ryan S. Brown
855a1cf3f8 Add explicit dependency from Function -> LogGroups 2017-03-13 20:42:40 -04:00
Frank Schmid
9ea13b4a37 Added pluginManager tests for spawn functionality. 2017-03-14 00:15:37 +01:00
Ryan S. Brown
4a2a917994 LINT FOR THE LINT GODS 2017-03-13 18:38:59 -04:00
Philipp Muens
1594868266 Merge pull request #3180 from nrako/fix_plugin_manager
Fix node_modules (serverless plugins) lookup
2017-03-13 13:54:28 +01:00
Philipp Muens
cbc939a04c Rename missing .gitignore files for templates 2017-03-13 13:12:33 +01:00
Eslam λ Hefnawy
f264671736 Merge pull request #3187 from tgjorgoski/fix-for-custom-claims
Fix for authorizer claims: multiple claims and custom property claims  (#3088)
2017-03-13 19:44:40 +08:00
Eslam λ Hefnawy
8530463d25 Merge pull request #3147 from y13i/feat-add-support-for-cfn-service-role
Add support for CloudFormation service roles
2017-03-13 19:30:37 +08:00
Eslam λ Hefnawy
9e271999a7 Merge pull request #3065 from vladgolubev/preserve-gitignore-on-npm-publish
Store .gitignore as gitignore in template dir. Rename on template creation
2017-03-13 19:27:16 +08:00
Eslam λ Hefnawy
8a32b39c37 Merge pull request #3037 from breath103/master
add features on AWSInvokeLocal Plugin.
2017-03-13 19:23:39 +08:00
Ryan S. Brown
5f876cfb98 Add tests for new Fn::Sub template style 2017-03-12 19:02:13 -04:00
Ryan S. Brown
5c06296533 Remove implicit dependency between IAM policy and log groups
Until now, the IAM policy had a dependency on log groups completing
before it could finish because of the use of `Fn::GetAtt` with a log
group, meaning the policy couldn't provision until all log groups were
ready.

This patch changes the log group reference in the CFN template from:

```
{ "Fn::GetAtt": ["MyFuncLogGroup", "Arn"] }
```

to

```
{"Fn::Sub": "arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/my-service-dev-myfunction:*"}
```

Meaning the policy can be resolved 100% with pseudoparams for log group ARNs.
This speeds up the CFN initial deploy significantly, and somewhat
improves deployments that add or rename functions.

Having this dependency removed is also the first step in allowing log
groups to be moved to a nested stack.
2017-03-11 14:03:04 -05:00
Rowell Belen
081fc5217c Revert HTTP event 2017-03-10 23:25:39 -07:00
Rowell Belen
a53893e33b Make Response API Gateway Compliant 2017-03-10 23:24:09 -07:00
Rowell Belen
ca1eee3e05 AWS Groovy Gradle Template 2017-03-10 22:23:49 -07:00
Eslam λ Hefnawy
dae7975478 Merge pull request #3349 from dougmoscrop/globby
Use globby instead of glob-all
2017-03-10 17:49:02 +08:00
Doug Moscrop
e9bf9f3045 Use globby instead of glob-all because it can handle large lists of includes 2017-03-09 19:53:00 -05:00
Daniel Schep
1f0e671f5b Add virtualenv suppport to Python invokeLocal
Since the invoke local functionality overrides `process.env.PATH`, only the
system python is found, not the python provided by an active virtualenv. This
checks for the `VIRTUAL_ENV` environment variable and if present, adds it's bin
dir to `PATH`.
2017-03-09 16:47:26 -05:00
Jonathan Carter
e9bd70b61a Adding template README 2017-03-07 09:12:29 -08:00
Tanas Gjorgoski
4654ce33c0 support other properties with colon (e.g. cognito:username) 2017-03-07 09:56:50 +01:00
Jonathan Carter
744e87bc27 Adding test 2017-03-06 15:44:16 -08:00
Jonathan Carter
15e3fcd08d Fixing lint errors 2017-03-06 15:23:51 -08:00
Jonathan Carter
07667d13be Adding Azure/Node create template 2017-03-06 15:11:28 -08:00
Frank Schmid
07d1141f99 Allow entrypoints to be defined and called by plugins.
Commands can contain a type property. The only allowed value currently is 'entrypoint'. This declares the command as hidden from the CLI. It will not appear in the help screen, nor can it be called from there.
However, entrypoint type commands can be called by plugins via the new PluginManager.spawn(commandsArray) method. In contrast to PluginManager.run() this method allows access to entrypoint commands and can be used to enter a plugin internal sub lifecycle. With this mechanism in place, plugins can expose their own lifecycle events which become then part of the global lifecycle and can be hooked again by dependent plugins.
2017-03-03 15:05:09 +01:00
Ryan S. Brown
8f7584b37e Enforce schema on dynamic stream ARNs
This commit enforces that any dynamic stream *must* have either
Fn::GetAtt or Fn::ImportValue, and can't have any extra keys.
2017-03-02 19:46:25 -05:00