Philipp Muens
8f8975b205
Wrap code into BbPromise.try
2019-10-23 13:17:23 +02:00
Philipp Muens
25bb4e2da1
Merge branch 'master' into jackdanger/allow-specific-apigateway-logs-role
2019-10-23 13:03:47 +02:00
Philipp Muens
68c46b434f
Merge branch 'master' into jackdanger/allow-specific-apigateway-logs-role
2019-10-22 12:59:48 +02:00
Philipp Muens
3d2879ef56
Introduce logical id naming function
2019-10-22 11:45:06 +02:00
Philipp Muens
3cede35cc9
Add / Update tests
2019-10-22 11:38:30 +02:00
Philipp Muens
ee25a30f8a
Update code to return Promise
2019-10-22 11:38:12 +02:00
Eetu Tuomala
7927148f54
fix arn name
2019-10-18 13:06:16 +03:00
Eetu Tuomala
51aacdfd71
add missing tests
2019-10-18 12:05:29 +03:00
Eetu Tuomala
886057864b
allow ref in stream arn property
2019-10-18 10:42:48 +03:00
Philipp Muens
bf06e727ce
Add spacing to constructed error message
2019-10-16 12:54:34 +02:00
Philipp Muens
09a2e285dc
Add spacing in error message
2019-10-16 12:50:48 +02:00
Calle Kabo
cc76b93b5c
prettier
2019-10-16 12:08:29 +13:00
Calle Kabo
5c9eb2e81c
support NotAction and NotResource
2019-10-16 11:52:52 +13:00
Philipp Muens
6e55723505
Merge pull request #6827 from bgaillard/master
...
Fix perms with several CloudWatch log subscriptions
2019-10-15 11:26:54 +02:00
Mariusz Nowak
fe044758fd
Revert "Pause for mfa input"
2019-10-14 13:25:13 +02:00
Mark Tse
e62ddadc9d
chore - stop using deprecated 'new Buffer()' method.
2019-10-13 15:15:26 -04:00
Baptiste Gaillard
d565234543
Fix perms with several CloudWatch log subscriptions.
2019-10-13 20:50:37 +02:00
Philipp Muens
03fe15d11c
Run Prettier
2019-10-10 12:48:42 +02:00
drexler
8f5d59987c
test: update cover test
2019-10-10 06:34:53 -04:00
drexler
e8f6026566
fix: remove unneeded validation check
2019-10-10 06:34:41 -04:00
Jesse Doyle
f1c768c42b
S3 Block Public Access
...
* Add a new boolean property named `blockPublicAccess`to the
`deploymentBucket` config object for the AWS provider.
* The property defaults to `false` to retain backwords
compatibility with existing infrastructure.
* When `true`, the configuration property will enable the
[S3 Block Public Access][1]. This will prevent all future
policies or ACLs that may grant public access to the
deployment bucket.
* Update the serverless.yml reference docs to reflect the
addition.
[1]: https://aws.amazon.com/blogs/aws/amazon-s3-block-public-access-another-layer-of-protection-for-your-accounts-and-buckets/
resolves: https://github.com/serverless/serverless/issues/6706
2019-10-01 22:21:10 -06:00
Jack Danger
4ad1ded244
Allow specifying ApiGateway logs role ARN
...
Since #6531 improved how we manage API Gateway's CloudWatch log IAM role
it's now simpler to allow hardcoding a role ARN in the YAML config.
This addresses [this
comment](https://github.com/serverless/serverless/pull/6591#discussion_r321010087 )
and unblocks anyone who needs to keep the IAM permissions for an app
scoped to just that app.
Example usage:
provider:
name: aws
logs:
restApi:
role:
arn:aws:iam::123456789:role/a-service-with-all-necessary-permissions
2019-09-26 15:32:46 -07:00
Alex DeBrie
f59a44f746
PR comment
2019-09-24 08:38:06 -05:00
Alex DeBrie
c93956ff22
Prettier
2019-09-24 07:21:32 -05:00
Alex DeBrie
1a183f79ff
Add batchWindow option to stream event types
2019-09-24 07:03:11 -05:00
Rich Trott
7f010a11ef
Fix regular expression escaping in aws plugin.
...
Also, remove leading `.*` in the regular expression. It will still match
if there are any characters preceding the matching text.
Fixes: https://github.com/serverless/serverless/issues/6688
2019-09-13 22:46:03 -07:00
exoego
f4b25b37e4
Respect logRetentionInDays in log group for websocket
2019-09-10 10:06:27 +09:00
Philipp Muens
3a7d77b4ff
Use hooks to log Lambda@Edge removal reminder
2019-09-09 13:31:51 +02:00
Philipp Muens
ef602c1ea6
Merge pull request #6642 from theburningmonk/master
...
Add support for Condition and DependsOn
2019-09-09 11:03:21 +02:00
theburningmonk
242cd35374
test: removed duplicated test case
2019-09-07 02:27:12 +02:00
Philipp Muens
9faeb5048a
Support functions without events in CloudFront remove logging
2019-09-06 13:22:26 +02:00
theburningmonk
43f383583a
style: fixed prettier errors
2019-09-06 01:38:24 +02:00
theburningmonk
b2cd8b7c0a
feat: add support for condition and dependsOn
2019-09-05 22:43:17 +02:00
Philipp Muens
b3506b4737
Only call logRemoveReminder on removals
2019-09-05 12:51:07 +02:00
Philipp Muens
8ea498f546
Restructure tests
2019-09-05 12:51:07 +02:00
Philipp Muens
baf7f4a8cd
Validate memorySize and timeout properties
2019-09-05 12:51:07 +02:00
Philipp Muens
5d0dde6930
Only log removal info when cloudFront event is used
2019-09-05 12:51:07 +02:00
Philipp Muens
2247030fc3
Remove support for async stack deployments / removals
2019-09-05 12:51:07 +02:00
Philipp Muens
071da8952a
Fix tests
2019-09-05 12:51:07 +02:00
Philipp Muens
7aa8ab096c
Add support for async stack remove operations
2019-09-05 12:51:07 +02:00
Philipp Muens
ae0967943b
Add DeletionPolicy of Retain to Lambda@Edge functions
2019-09-05 12:51:07 +02:00
Philipp Muens
e20a026dc5
Add support for async stack deploy operations
2019-09-05 12:51:07 +02:00
Philipp Muens
23c0350245
Automatically set necessary CloudFront function defaults
2019-09-05 12:51:07 +02:00
Philipp Muens
ada1055009
Address PR review comments
2019-09-05 12:51:06 +02:00
Philipp Muens
dce68432cb
Run Prettier
2019-09-05 12:51:06 +02:00
Eetu Tuomala
d879730866
use lodash to check empty values, change version function order
2019-09-05 12:51:06 +02:00
Eetu Tuomala
4c99b2d237
add test for prepareFunctions and naming
2019-09-05 12:51:06 +02:00
Eetu Tuomala
aeb3bb5a93
fix node 4 and 6 related syntax errors
2019-09-05 12:51:06 +02:00
Eetu Tuomala
cc526ff850
add cloudfront to enpoints info, fix target origin id test, add cloudfront to getStackinfo test
2019-09-05 12:51:06 +02:00
Eetu Tuomala
d3f54ea62f
refactor origin and behavior indexing
2019-09-05 12:51:06 +02:00