4240 Commits

Author SHA1 Message Date
Mohamed Gharsallah
645491e63b remove not important s3 event verification 2016-09-30 14:41:59 +01:00
David Tanner
83dfb88302 Fix typos 2016-09-30 05:45:51 -06:00
zorrofox
9d04ca0a68 modify error message according to the review 2016-09-30 09:22:20 +01:00
Doug Moscrop
a0cde12edc add Merge plugin commands 2016-09-28 13:45:04 -04:00
Doug Moscrop
0c452a6af8 fix Verify that a command is valid before trying to populate variables 2016-09-28 11:34:50 -04:00
Doug Moscrop
d50531b4dc fix #2041 variable population fails for help commands 2016-09-28 11:34:50 -04:00
Doug Moscrop
19f5bfb27f refactor PluginManager and CLI to better support command nesting 2016-09-28 11:34:50 -04:00
David Tanner
71c649b6aa Fix linting issue 2016-09-28 09:33:00 -06:00
David Tanner
f544b778cb Cleaning up the tests to avoid timeouts, might be because of writing file? 2016-09-28 09:27:43 -06:00
David Tanner
4f9f173a3c Fix linting issues, and restore deployFunction 2016-09-28 09:09:21 -06:00
David Tanner
68ef4ceab7 Move CF stack configuration to one place.
The stack is now set up in one place.
The S3 bucket isn't created on create if a bucket is already specified.
Working on configurability for the developer.
There is still the possibility of failing to deploy the stack
if the iamRoleArn is set, and a deploymentBucket is specified
2016-09-28 08:27:09 -06:00
Florian Motlik
e1adf6e921 Merge pull request #2175 from serverless/fix-api-key-value-displaying-in-info-plugin
Fix api key value displaying in info plugin
2016-09-28 16:03:21 +02:00
eL0ck
4fa7457f24 fixed. Was incorrectly catching non-http events as empty http events 2016-09-28 08:49:51 +02:00
eL0ck
0f2510eac4 fixed inconsistent error message 2016-09-28 08:49:51 +02:00
eL0ck
dc0b252564 fixed merge error. Tests all passing 2016-09-28 08:49:51 +02:00
eL0ck
228d52cc7c remove redundant service list 2016-09-28 08:49:51 +02:00
eL0ck
a1563a3a73 fix http event validation 2016-09-28 08:47:43 +02:00
Florian Motlik
bac20da38a Merge pull request #2227 from dougmoscrop/fix_other_providers
fix #2226 non-aws providers throw an error
2016-09-28 08:34:22 +02:00
Florian Motlik
792509084f Merge pull request #2218 from localytics/template_scala_sbt
add aws-scala-sbt template for scala lambdas
2016-09-28 08:30:14 +02:00
Erik Erikson
2cfd611329 Rebuild Credential Handling
(scoped to AWS)
Previously you had a number of options, including legacy options for loading credentials.  Given the 0.x=>1.x change, we can drop a lot of the old approaches.  This PR attempts to bring all the good things.

The options for loading credentials are as follows:
1. define credentials on serverless.yml=>service.provider.credentials = { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey', sessionToken: 'sessionToken' }
2. define a profile from which to get credentials on serverless.yml=>service.provider.profile = 'profile-name' (all profiles loaded using AWS.SharedIniFileCredentials, see http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SharedIniFileCredentials.html)
3. define credentials for all stages using the standard AWS environment variables (see http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/EnvironmentCredentials.html)
4. define a profile for all stages using the environment variable AWS_PROFILE
5. define credentials for each stage using the standard AWS environment variables with the STAGE name inserted (e.g. stage='test', envVarName='AWS_TEST_*')
6. define a profile for each stage using an environment variable `AWS_${stageName.toUpperCase()}_PROFILE`

If credentials/profiles are declared in multiple ways, the later cases will override the former.

These use cases previously covered all user requirements but the current implemenation allows for an expansion of mechanisms if more mechanisms are desirable.
2016-09-27 16:08:00 -07:00
Mohamed Gharsallah
9db30f620b Add unit tests 2016-09-27 21:30:55 +01:00
Mohamed Gharsallah
b69d1c0dc6 check for event prop when s3 rules prop is defined 2016-09-27 21:30:15 +01:00
Erik Erikson
7af0b3d577 Merge branch 'master' into reduce-scope-of-rights-of-default-iamlambdarole 2016-09-27 12:26:05 -07:00
Erik Erikson
e3e686044a Merge branch 'master' into add-per-function-custom-roles
# Conflicts:
#	lib/plugins/aws/deploy/compile/functions/index.js
2016-09-27 12:23:22 -07:00
Doug Moscrop
2aab2a2ccc fix #2226 non-aws providers throw an error 2016-09-27 11:59:31 -04:00
Meaghan Harty
7211c621ed add project directory for sbt assembly and release 2016-09-27 10:50:34 -04:00
Philipp Muens
eb4d17d1b5 Fix linting issues 2016-09-27 12:04:15 +02:00
Philipp Muens
3e93d244d3 Add subdirectory for tmpDirs
Add a subdirectory so that all directories which are generated for the tests are stored there.
Furthermore old tests are updated so that they use the tmpDir name generated by the test
utils functionality. This makes working with Docker way better as the tmpDirs are not created
It the root directory.
2016-09-27 11:48:14 +02:00
Erik Erikson
9497b4149e Merge branch 'master' into reduce-scope-of-rights-of-default-iamlambdarole 2016-09-26 17:41:46 -07:00
Meaghan Harty
a793014bbc add aws-scala-sbt template for scala lambdas 2016-09-26 17:30:23 -04:00
Erik Erikson
fc1a186d23 Merge branch 'master' into add-per-function-custom-roles 2016-09-26 14:18:25 -07:00
Florian Motlik
eec54e348b Merge pull request #2205 from dougmoscrop/fix_win
fix Tests not passing on Windows
2016-09-26 17:28:31 +02:00
Doug Moscrop
4490af73c0 fix Tests not passing on Windows 2016-09-26 09:14:54 -04:00
Sander van de Graaf
d97808008e
make eslint happy 2016-09-26 13:20:52 +02:00
Sander van de Graaf
d90fe1636a
added tests for query parameters 2016-09-26 13:16:58 +02:00
Florian Motlik
d6ffe8962b Add Var at the end of path variable CF name 2016-09-26 12:39:29 +02:00
Philipp Muens
40da6be2b2 Remove dependency on API key id in outputs section 2016-09-26 10:45:03 +02:00
Philipp Muens
a5dcee1cad Add / fix tests for api key value retrieval 2016-09-26 10:45:03 +02:00
Philipp Muens
41ef1d040d Fix api key value displaying in info plugin 2016-09-26 10:45:03 +02:00
Sergio Arcos
e7fedf4fd1 wrong description 2016-09-26 15:09:41 +09:00
Florian Motlik
9b5a58c30f Merge pull request #2125 from rowanu/rollback-on-cfn-failure
Switch CloudFormation OnFailure behaviour to rollback instead of dele…
2016-09-23 21:29:42 +02:00
Florian Motlik
b6a39ef115 Merge pull request #2091 from craftship/support-dash-path-name
Support Dash Character for API Gateway Resource Path
2016-09-23 20:48:17 +02:00
Florian Motlik
2d4918832f Merge pull request #2075 from Nordstrom/aws-event-yml-support
Fix for #1994. Adds test to verify that YAML may be used for event.
2016-09-23 20:18:22 +02:00
Florian Motlik
c0ebd38592 Merge pull request #2043 from sangheestyle/master
follow pep8 - Python style guide checker
2016-09-23 20:16:53 +02:00
Florian Motlik
e4846edb21 Merge pull request #2050 from fruffin/master
Fix #2049: API Gateway integration to return 500 when Lambda functions time out
2016-09-23 19:55:18 +02:00
zorrofox
478209bfa6 fix: #1973 deploy fails with unhelpful error message when service name is not a valid CF stack name 2016-09-24 00:32:03 +08:00
zorrofox
eaf175da06 fix: #1973 deploy fails with unhelpful error message when service name is not a valid CF stack name 2016-09-24 00:22:19 +08:00
Florian Motlik
e10ff9ee23 Merge pull request #1910 from mrlamroger/add-name-flag-to-create
Fix #1902 - Add --name option to create plugin
2016-09-23 18:09:15 +02:00
zorrofox
b8e5bb4eca fix: #1973 deploy fails with unhelpful error message when service name is not a valid CF stack name 2016-09-23 23:59:13 +08:00
zorrofox
dbeaa54832 fix: #1973 deploy fails with unhelpful error message when service name is not a valid CF stack name 2016-09-23 23:04:34 +08:00