From 39152191c8a41e6d301fafccd8d974776d4d5847 Mon Sep 17 00:00:00 2001 From: John Mee Date: Thu, 19 May 2022 01:04:55 +1000 Subject: [PATCH] docs: Mention `patterns` instead of `exclude` in layers.md (#11090) --- docs/providers/aws/guide/layers.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/providers/aws/guide/layers.md b/docs/providers/aws/guide/layers.md index e5dacc1cc..8247549a7 100644 --- a/docs/providers/aws/guide/layers.md +++ b/docs/providers/aws/guide/layers.md @@ -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.