diff --git a/docs/runtimes.mdx b/docs/runtimes.mdx index 49a0a85a6..59fdae1c8 100644 --- a/docs/runtimes.mdx +++ b/docs/runtimes.mdx @@ -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). @@ -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: diff --git a/docs/runtimes/runtimes-details.mdx b/docs/runtimes/runtimes-details.mdx index 5230fb3dd..3ecdecf57 100644 --- a/docs/runtimes/runtimes-details.mdx +++ b/docs/runtimes/runtimes-details.mdx @@ -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' ``` @@ -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' ``` diff --git a/tests/FpmRuntime/Functional/serverless.yml b/tests/FpmRuntime/Functional/serverless.yml index 07c108f43..66bf3ea41 100644 --- a/tests/FpmRuntime/Functional/serverless.yml +++ b/tests/FpmRuntime/Functional/serverless.yml @@ -2,7 +2,7 @@ service: bref-tests provider: name: aws - runtime: provided.al2 + runtime: provided.al2023 region: eu-west-1 profile: bref-tests apiGateway: diff --git a/tests/Sam/template.yaml b/tests/Sam/template.yaml index c78dcd7c6..05ca94f6b 100644 --- a/tests/Sam/template.yaml +++ b/tests/Sam/template.yaml @@ -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: @@ -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: @@ -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: @@ -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: