mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
docs: Mention patterns instead of exclude in layers.md (#11090)
This commit is contained in:
parent
f10bc22c70
commit
39152191c8
@ -73,8 +73,8 @@ provider:
|
||||
name: aws
|
||||
|
||||
package:
|
||||
exclude:
|
||||
- layerSourceTarball.tar.gz
|
||||
patterns:
|
||||
- '!layerSourceTarball.tar.gz'
|
||||
|
||||
layers:
|
||||
layerOne:
|
||||
@ -94,11 +94,11 @@ layers:
|
||||
layerOne:
|
||||
path: layerOne
|
||||
package:
|
||||
exclude:
|
||||
- layerSourceTarball.tar.gz
|
||||
patterns:
|
||||
- '!layerSourceTarball.tar.gz'
|
||||
```
|
||||
|
||||
Keep in mind that all `include` and `exclude` patterns (even when inherited from the service config) are resolved against the layer's `path` and not the service `path`.
|
||||
Keep in mind that all patterns (even when inherited from the service config) are resolved against the layer's `path` and not the service `path`.
|
||||
|
||||
You can also specify a prebuilt archive to create your layer. When you do this, you do not need to specify the `path` element of your layer.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user