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.