Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/runtimes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ into this:
functions:
hello:
# ...
runtime: provided.al2
runtime: provided.al2023
layers:
- 'arn:aws:lambda:us-east-1:873528684822:layer:php-84:21'
```

☝️ `provided.al2` [is the generic Linux environment for custom runtimes](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html#runtimes-custom-use), and the `layers` config points to Bref's AWS Lambda layers.
☝️ `provided.al2023` [is the generic Linux environment for custom runtimes](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html#runtimes-custom-use), and the `layers` config points to Bref's AWS Lambda layers.

Thanks to the Bref plugin, our `serverless.yml` is simpler. It also automatically adapts to the AWS region in use, and automatically points to the correct layer version. You can learn more about "layers" [in this page](./runtimes/runtimes-details.mdx).

Expand All @@ -161,7 +161,7 @@ If you want to reference AWS Lambda layers directly (instead of using the simple
service: app
provider:
name: aws
runtime: provided.al2
runtime: provided.al2023
plugins:
- ./vendor/bref/bref
functions:
Expand Down
4 changes: 2 additions & 2 deletions docs/runtimes/runtimes-details.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ provider:
functions:
hello:
# ...
runtime: provided.al2
runtime: provided.al2023
layers:
- 'arn:aws:lambda:us-east-1:873528684822:layer:php-84:21'
```
Expand All @@ -47,7 +47,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
# ...
Runtime: provided.al2
Runtime: provided.al2023
Layers:
- 'arn:aws:lambda:us-east-1:873528684822:layer:php-84:21'
```
Expand Down
2 changes: 1 addition & 1 deletion tests/FpmRuntime/Functional/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ service: bref-tests

provider:
name: aws
runtime: provided.al2
runtime: provided.al2023
region: eu-west-1
profile: bref-tests
apiGateway:
Expand Down
8 changes: 4 additions & 4 deletions tests/Sam/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Resources:
FunctionName: 'bref-tests-function'
CodeUri: ../..
Handler: tests/Sam/Php/function.php
Runtime: provided.al2
Runtime: provided.al2023
Layers:
- 'arn:aws:lambda:us-east-1:873528684822:layer:php-74:18'
Environment:
Expand All @@ -21,7 +21,7 @@ Resources:
FunctionName: 'bref-tests-http'
CodeUri: ../..
Handler: tests/Sam/PhpFpm/index.php
Runtime: provided.al2
Runtime: provided.al2023
Layers:
- 'arn:aws:lambda:us-east-1:873528684822:layer:php-74-fpm:18'
Events:
Expand All @@ -40,7 +40,7 @@ Resources:
FunctionName: 'bref-tests-http-missing-handler'
CodeUri: ../..
Handler: tests/Sam/PhpFpm/UNKNOWN.php
Runtime: provided.al2
Runtime: provided.al2023
Layers:
- 'arn:aws:lambda:us-east-1:873528684822:layer:php-74-fpm:18'
Events:
Expand All @@ -56,7 +56,7 @@ Resources:
FunctionName: 'bref-tests-psr7'
CodeUri: ../..
Handler: tests/Sam/Php/psr7.php
Runtime: provided.al2
Runtime: provided.al2023
Layers:
- 'arn:aws:lambda:us-east-1:873528684822:layer:php-74:18'
Events:
Expand Down
Loading