129 Commits

Author SHA1 Message Date
Frédéric Barthelet
38c204762c
feat(Config Schema): Schema for AWS provider properties (#8297) 2020-10-01 10:24:55 +02:00
Piotr Grzesik
b867df147a
refactor: Replace _.{entries|entriesIn|toPairs} with Object.entries
(PR #8275)
2020-09-23 13:13:54 +02:00
Piotr Grzesik
0ced414174
feat: Deprecate an attempt to extend nonexistent resources (#8266) 2020-09-18 17:30:26 +02:00
Geoff Baskwill
16bae33744
fix: Support Condition attribute in resources.extensions (#8217) 2020-09-10 16:54:13 +02:00
Mariusz Nowak
05921b61ee test: Upgrade to use new fixtures engine 2020-09-09 11:17:21 +02:00
Mariusz Nowak
8c3c7c4e3a chore: Rename "tests" folder to "test"
Also upgrade @serverless/eslint-config to v2
2020-08-28 16:22:09 +02:00
Mariusz Nowak
d608402428 test: Upgrade to @serverless/test v4.2 2020-07-10 17:35:23 +02:00
Mariusz Nowak
cad1f0af82 test: Upgrade @serverless/test to v4 2020-07-10 17:35:23 +02:00
andreizet
7bbd04a693
refactor: Replace _.has with better counterparts (#7915) 2020-07-07 17:18:48 +02:00
Dai Van Nguyen
4c33476210
refactor: Replace _.isEmpty with native counterparts (#7873) 2020-06-25 15:17:52 +02:00
Nguyễn Việt Đức
4c6f8be5cc
refactor: Replace _.map with array.map (#7827) 2020-06-12 09:59:42 +02:00
Nguyễn Việt Đức
20cef81555
refactor: Replace _.isUndefined with native checks (#7826) 2020-06-12 09:54:00 +02:00
srd2014
053f5f420b
refactor: Replace _.split with string.split (#7820) 2020-06-09 12:23:14 +02:00
Chris Villanueva
77fbb5969b
refactor: Replace _.includes with val.includes (#7818) 2020-06-08 09:13:50 +02:00
TATSUNO Yasuhiro
5e0af21313
refactor: Replace _.forEach and _.each with array.forEach (#7748) 2020-05-28 10:45:25 +02:00
Chris Villanueva
d43241ea8b
refactor: Replace _.keys with Object.keys (#7784) 2020-05-28 09:25:20 +02:00
Nguyễn Việt Đức
85e9cd4455
refactor: Replace _.assign and _.extend with Object.assign (#7766) 2020-05-26 10:24:46 +02:00
Ahmad Mahmoud Mohammad
3144be82d1
feat(AWS Lambda): Support disableLogs setting for functions (#7720) 2020-05-13 13:14:02 +02:00
Mariusz Nowak
08dc745cbf fix(AWS IAM): Fix role and policy name resolution
Custom stack name should be used only for CloudFormation stack.

Regression introduced with #7357
2020-05-11 13:39:35 +02:00
TATSUNO Yasuhiro
3fe2e98f15
refactor: Replace _.isArray with native Array.isArray (#7703) 2020-05-11 10:24:41 +02:00
Geoff Baskwill
08ec261a3c
feat: Support resource.extensions for safe resource extensions (#7352)
Merge logic for extending resources with the existing framework
using `resources.Resources` has some surprising behaviours.

This introduces a more formalized definition for extending resources, where
`Metadata` and `Properties` will be shallowly merged (the values for existing
keys will be replaced instead of merged), the `DependsOn` list will be added
to, and the values for `CreationPolicy`, `DeletionPolicy`, `UpdatePolicy`, and
`UpdateReplacePolicy` will be replaced if they exist in the extension.

Extension of other resource attributes is not supported at this time.
2020-02-24 10:45:14 +13:00
Thomas Schaaf
9a0aaa843b
fix: Ensure consistency in IAM role and policy names (#7357) 2020-02-20 10:37:55 +13:00
Thomas Schaaf
09466b5a17
feat: Support provider.rolePermissionsBoundary to set IAM boundary (#7319) 2020-02-13 09:43:24 +13:00
Mariusz Nowak
4a947b215c
fix(AWS Lambda): Fix CloudWatch logs creation access
Fixes #6241
Closes #6692
2019-12-23 13:58:33 +01:00
Mariusz Nowak
1e87d5856d
test: Upgrade to @serverless/test v3 2019-12-12 14:27:40 +01:00
Mariusz Nowak
4e48f98f99
Prettify 2019-11-25 12:14:05 +01:00
Mariusz Nowak
ae9edb459e
Fix policy definition 2019-11-07 18:30:55 +01:00
Mariusz Nowak
33fdc78279
Rely on ${AWS::Partition} 2019-11-07 16:19:53 +01:00
Mariusz Nowak
b39c10c8d2
Fix handling of china region 2019-11-07 11:05:11 +01:00
Mariusz Nowak
c0513b89be
Seclude common options 2019-11-07 10:46:09 +01:00
Mariusz Nowak
ef10fd5827
Reconfigure tests to rely on runServerless util 2019-11-07 10:25:36 +01:00
Mariusz Nowak
38ed445e8a
Ensure default bucket policy is not configured for custom bucket 2019-10-31 12:57:13 +01:00
Mariusz Nowak
f5405a60e6
Remove obsolete lint instruction 2019-10-31 12:56:11 +01:00
Mariusz Nowak
67db1647d4
Merge pull request #6823 from neverendingqs/aws/httpsbucket
AWS - deployment bucket policy for HTTPS only
2019-10-23 07:05:49 -05: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
Mark Tse
238068cfc5 chore - prettified. 2019-10-11 22:38:16 -04:00
Mark Tse
060dc2c050 aws - deployment bucket policy for HTTPS only. 2019-10-11 22:33:16 -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
Kevin Tardif
b069e09e9f Updated logRetentionInDays checks 2019-08-19 13:35:06 -04:00
Kevin Tardif
a1d2f7d090 getLogRetentionInDays now returns null if config value is unset 2019-08-16 08:28:45 -04:00
Kevin Tardif
462c936e7c Set AWS API Gateway RetentionInDays to value of provider.logRetentionInDays 2019-08-15 10:22:44 -04:00
Ethan Smith
56d96c4afe
Only add merged IAM policies for Lambda when they will be used (#6262) 2019-08-13 13:12:37 -04:00
Mariusz Nowak
4944f471b1
Prettify 2019-06-26 12:43:01 +02:00
Mariusz Nowak
093881b6a5
Add code comments 2019-06-12 16:00:29 +02:00
Mariusz Nowak
025d58579e
Fix setup of IAM policies for functions with custom names 2019-06-12 15:55:01 +02:00
Mariusz Nowak
426393b2b3
Configure test exposing issue with custom function name
Related to #6236
2019-06-12 15:48:27 +02:00
Mariusz Nowak
6796ccf866
Ensure tests reflect more closely a real world 2019-06-12 15:38:16 +02:00