215 Commits

Author SHA1 Message Date
Philipp Muens
b87326d5dd Minor refactorings 2017-06-16 09:19:41 +01:00
Philipp Muens
b912ad91bd Minor code cleanup 2017-06-16 08:36:19 +01:00
Max Redmond
abef261722 update serverside encryption options so that they are configured in the deploymentBucket section 2017-06-16 08:12:23 +01:00
Max Redmond
9a8b2354ed fixing lint error 2017-06-16 08:12:23 +01:00
Max Redmond
56049e34f8 new function to add serverside encryption params 2017-06-16 08:12:23 +01:00
Max Redmond
09979a170b adding sse test cases 2017-06-16 08:12:23 +01:00
Max Redmond
6aad85e7e7 lint clean up 2017-06-16 08:12:23 +01:00
Max Redmond
9ffba7fdc6 adding check for deploymentBucketOptions to anohter part of the code 2017-06-16 08:12:23 +01:00
Max Redmond
6873abda0d adding a check for deploymentBucketOptions
checking if deploymentBucketOptions exists in the yaml so that you can deploy without any deploymentBucketOptions defined
2017-06-16 08:12:23 +01:00
Max Redmond
46d4466898 adding serverside encryption options to deployment bucket in the provider section of serverless.yml 2017-06-16 08:12:23 +01:00
Philipp Muens
b060dbca94 Rephrase error message for invalid template 2017-06-05 11:45:54 +02:00
Philipp Muens
0abc60335f Add sinon-chai usage definition 2017-05-31 14:08:23 +02:00
Philipp Muens
5004c2d37b Remove commented out test 2017-05-31 14:00:19 +02:00
Philipp Muens
9919134e6c Update tests to use chai-as-promised 2017-05-31 13:57:14 +02:00
Philipp Muens
adcb471429 Update validateTemplate functionality and add tests 2017-05-31 13:30:59 +02:00
Eslam A. Hefnawy
d97ec82442 added tests for extendedValidate file 2017-05-11 20:41:05 +07:00
Eslam A. Hefnawy
4556f51d44 fix bug with packaging service free functions 2017-05-11 19:24:06 +07:00
Eslam λ Hefnawy
4e752fbc5e Merge pull request #3527 from HyperBrain/filter-self-reference
Persist self references with "${self:}" and restore it correctly
2017-04-27 18:35:13 +07:00
Frank Schmid
9257256e7a Restore self references on state restore 2017-04-26 22:09:51 +02:00
Eslam A. Hefnawy
f86703add1 releasing 1.12 2017-04-26 22:42:56 +07:00
Philipp Muens
9b0d5619f4 Revert name of compiled CloudFormation template 2017-04-26 13:57:05 +02:00
Philipp Muens
67a7031c83 Fix naming of compiled CloudFormation template 2017-04-26 13:23:18 +02:00
Eslam A. Hefnawy
4623e0bbed final packaging fixes 2017-04-25 23:03:46 +07:00
Frank Schmid
a67674528e Do not persist artifact if individually is set true. 2017-04-24 10:44:53 +02:00
Frank Schmid
aa29c9632e Persist artifact in saved state
The `service.package.artifact` property was missing in the saveState function, so it was not available in the deploy phase.
This PR saves and restores the property correctly, and for AWS additionally sets it during packaging. For AWS the initialization of the property also was missing, possibly due to a merge conflict.

Combination of the following commits:
Re-revert changes for saveServiceState and extendedValidate
Revert most recent changes
Update package artifact to include path and .zip name
Update artifact file path for packaging and name for service state
Update tests for saveServiceState
Do not persist artifacts as it is not needed
Persist package.artifact correctly
2017-04-21 19:50:00 +02:00
Eslam A. Hefnawy
13689a0674 removed references to --noDeploy 2017-04-10 02:33:53 +07:00
Eslam A. Hefnawy
bc0eaf23e6 fixed unit tests 2017-04-07 18:30:11 +07:00
Eslam A. Hefnawy
7da3a1ae35 resovled conflicts on master 2017-04-06 18:28:59 +07:00
Eslam A. Hefnawy
cd71ccfa1e fixing tests for package plugin 2017-04-06 18:28:59 +07:00
Eslam A. Hefnawy
9631fa9c95 fixed some tests in package plugin 2017-04-06 18:28:59 +07:00
Frank Schmid
0b88ed08fd Use correct artifact path on update stack 2017-04-06 18:28:59 +07:00
Frank Schmid
802ce6053d First working separated build/deploy 2017-04-06 18:28:59 +07:00
Frank Schmid
b72c990497 Serverless deploy working 2017-04-06 18:28:59 +07:00
Frank Schmid
0af0ef95b1 Adjusted package lifecycle for non-breaking state. 2017-04-06 18:28:59 +07:00
Frank Schmid
c5e75c780e Define deploy inner lifecycles. 2017-04-06 18:28:59 +07:00
Eslam A. Hefnawy
e38f22585f seperated packaging and deployment 2017-04-06 18:28:59 +07:00
Eslam A. Hefnawy
b9f3152817 updated tests for package function individually 2017-04-03 19:42:11 +07:00
Eslam A. Hefnawy
a9d001e03c updated/added unit tests and docs 2017-03-31 21:09:51 +07:00
Eslam A. Hefnawy
3251ebb4a7 added support for function.package.individually 2017-03-31 18:39:05 +07:00
Ryan S. Brown
b1fdf15398 PR #3360 introduced an incorrect IAM policy for log groups 2017-03-23 09:16:44 -04: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
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
Ryan S. Brown
4a2a917994 LINT FOR THE LINT GODS 2017-03-13 18:38:59 -04: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
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
Nick den Engelsman
1e7bc75334 Remove logs:CreateLogGroup from the default IAM policy since Log group resources are created through CloudFormation by default 2017-02-27 12:46:21 +01:00
Nick den Engelsman
5a55233d96 Make sure we always create the log group resources 2017-02-23 13:14:55 +01:00
Nick den Engelsman
574a4a78a7 Rebase on top of master 2017-02-20 21:08:45 +01:00