80 Commits

Author SHA1 Message Date
Philipp Muens
91fc7c97e6 Merge pull request #2521 from serverless/prettify-aws-compile-functions-error-messages
Prettify AwsCompileFunctions error messages
2016-10-24 15:53:29 +02:00
Philipp Muens
691eab5da6 Prettify AwsCompileFunctions error messages 2016-10-24 13:32:27 +02:00
Eslam A. Hefnawy
5379008ad8 fixed conflicts 2016-10-24 16:27:09 +07:00
Philipp Muens
81617dc46a Merge pull request #2425 from mankins/master
add ability for functions to override runtime to have multi-language …
2016-10-20 07:41:15 +02:00
Philipp Muens
c273abec68 Move AwsProvider plugin into aws directory 2016-10-19 08:32:06 +02:00
Philipp Muens
c7b7472a48 Update provider properties in plugins 2016-10-19 08:32:06 +02:00
Matt Mankins
c874cc86df [TEST] add tests for function override runtime PR#2425 2016-10-18 15:01:24 -04:00
Matt Mankins
c03e2a87dd add ability for functions to override runtime to have multi-language services 2016-10-17 18:46:12 -04:00
Philipp Muens
a7a04eb6f6 Closes #2292 - Remove outdated README.md files 2016-10-11 20:21:27 -07:00
Erik Erikson
a5c316cb31 Merge Changes
The split of stack configuration and function compilation required a more in depth merge.

Commentary: it also creates strange interaction of the expectations and code across those two files.
2016-10-04 17:27:32 -07:00
Erik Erikson
2a5cbcc07e Merge branch 'master' into reduce-scope-of-rights-of-default-iamlambdarole
# Conflicts:
#	lib/plugins/aws/deploy/compile/functions/index.js
#	lib/plugins/aws/deploy/compile/functions/tests/index.js
2016-10-04 16:25:44 -07:00
David Tanner
b97c7176d5 Fix issue using this.bucketName, but the bucket on the service package instead.
Also added the content-type to the json file so you can read the file in the browser.
2016-09-30 08:30:35 -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
Erik Erikson
7af0b3d577 Merge branch 'master' into reduce-scope-of-rights-of-default-iamlambdarole 2016-09-27 12:26:05 -07:00
David Tanner
d490ed413e Rename to deploymentBucket as recommended by @flomotlik 2016-09-23 08:18:33 -06:00
David Tanner
4172655c1b Cleanup linting issues 2016-09-22 09:19:58 -06: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
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
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
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
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
John McKim
83a9d5e0fd fixes from pr comments 2016-09-03 12:32:13 +10:00
John McKim
ea864be300 merge with master 2016-09-02 07:17:57 +10: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
a5218fb686 fixed conflicts with master 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
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
John McKim
ff8a6cc71f remove todo and ensure createstack returns promise 2016-08-30 08:40:14 +10:00
堀家隆宏
d9c62e68fb Add iamRoleARN to serverless.yml 2016-08-28 22:36:06 +09:00
John McKim
5a5240ccc5 fix tests after merge with master 2016-08-25 07:39:39 +10:00
John McKim
a413a4a471 merge 2016-08-25 07:23:47 +10:00
Philipp Muens
3cac122ed9 Update compileFunctions code
So that the S3Key properties are prepended with the artifactDirectoryName.
2016-08-24 11:37:19 +02:00
Erik Erikson
b16cc082ff Increase the specificity of the logging rights. 2016-08-23 16:22:37 -07:00
John McKim
5a2c9d2224 update packaging to support individual packages per function 2016-08-22 07:40:16 +10:00
Philipp Muens
6e4e693804 Remove unnecessary empty-object-setting of Outputs section 2016-08-15 15:46:37 +02:00
Philipp Muens
919caa8f91 Remove validations for existence of compiledCloudFormationTemplate
Because it's already available at the beginning of the deploy plugin as the core CloudFormation
template will be attached there (which is then used to merge other resources into it later on).
2016-08-15 15:36:54 +02:00