From 9ffd194d99604ab048e4eb01062b2fef8c1d09cf Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Wed, 20 Nov 2019 09:43:48 +0100 Subject: [PATCH] Update docs to reference new runtime --- docs/providers/aws/cli-reference/print.md | 4 ++-- docs/providers/aws/events/apigateway.md | 4 ++-- docs/providers/aws/events/websocket.md | 2 +- docs/providers/aws/guide/credentials.md | 4 ++-- docs/providers/aws/guide/functions.md | 14 +++++++------- docs/providers/aws/guide/serverless.yml.md | 4 ++-- docs/providers/aws/guide/services.md | 6 +++--- docs/providers/aws/guide/variables.md | 4 ++-- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/providers/aws/cli-reference/print.md b/docs/providers/aws/cli-reference/print.md index 376d26bfd..7b1a3ed13 100644 --- a/docs/providers/aws/cli-reference/print.md +++ b/docs/providers/aws/cli-reference/print.md @@ -44,7 +44,7 @@ custom: provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x stage: ${opt:stage, "dev"} functions: @@ -68,7 +68,7 @@ custom: bucketName: test provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x stage: dev # <-- Resolved functions: hello: diff --git a/docs/providers/aws/events/apigateway.md b/docs/providers/aws/events/apigateway.md index d15e2d07b..e1a9f8095 100644 --- a/docs/providers/aws/events/apigateway.md +++ b/docs/providers/aws/events/apigateway.md @@ -1266,7 +1266,7 @@ service: my-api provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x stage: dev region: eu-west-2 @@ -1454,7 +1454,7 @@ Resource policies are policy documents that are used to control the invocation o ```yml provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x resourcePolicy: - Effect: Allow diff --git a/docs/providers/aws/events/websocket.md b/docs/providers/aws/events/websocket.md index b448748d2..bc5aa990a 100644 --- a/docs/providers/aws/events/websocket.md +++ b/docs/providers/aws/events/websocket.md @@ -63,7 +63,7 @@ service: serverless-ws-test provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x websocketsApiName: custom-websockets-api-name websocketsApiRouteSelectionExpression: $request.body.action # custom routes are selected by the value of the action property in the body diff --git a/docs/providers/aws/guide/credentials.md b/docs/providers/aws/guide/credentials.md index 67a888e15..46c5ecbc8 100644 --- a/docs/providers/aws/guide/credentials.md +++ b/docs/providers/aws/guide/credentials.md @@ -149,7 +149,7 @@ You can even set up different profiles for different accounts, which can be used service: new-service provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x stage: dev profile: devProfile ``` @@ -194,7 +194,7 @@ This example `serverless.yml` snippet will load the profile depending upon the s service: new-service provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x stage: ${opt:stage, self:custom.defaultStage} profile: ${self:custom.profiles.${self:provider.stage}} custom: diff --git a/docs/providers/aws/guide/functions.md b/docs/providers/aws/guide/functions.md index dc0153ef0..7b08cc882 100644 --- a/docs/providers/aws/guide/functions.md +++ b/docs/providers/aws/guide/functions.md @@ -26,7 +26,7 @@ service: myService provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x memorySize: 512 # optional, in MB, default is 1024 timeout: 10 # optional, in seconds, default is 6 versionFunctions: false # optional, default is true @@ -61,7 +61,7 @@ service: myService provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x functions: functionOne: @@ -81,7 +81,7 @@ service: myService provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x memorySize: 512 # will be inherited by all functions functions: @@ -97,7 +97,7 @@ service: myService provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x functions: functionOne: @@ -133,7 +133,7 @@ service: myService provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x iamRoleStatements: # permissions for all of your functions can be set here - Effect: Allow Action: # Gives permission to DynamoDB tables in a specific region @@ -390,7 +390,7 @@ service: service provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x functions: hello: @@ -443,7 +443,7 @@ service: myService provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x tracing: lambda: true ``` diff --git a/docs/providers/aws/guide/serverless.yml.md b/docs/providers/aws/guide/serverless.yml.md index 30d2d3993..400756fe2 100644 --- a/docs/providers/aws/guide/serverless.yml.md +++ b/docs/providers/aws/guide/serverless.yml.md @@ -27,7 +27,7 @@ frameworkVersion: '>=1.0.0 <2.0.0' provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x stage: ${opt:stage, 'dev'} # Set the default stage used. Default is dev region: ${opt:region, 'us-east-1'} # Overwrite the default region used. Default is us-east-1 stackName: custom-stack-name # Use a custom name for the CloudFormation stack @@ -164,7 +164,7 @@ functions: description: My function # The description of your function. memorySize: 512 # memorySize for this specific function. reservedConcurrency: 5 # optional, reserved concurrency limit for this function. By default, AWS uses account concurrency limit - runtime: nodejs10.x # Runtime for this specific function. Overrides the default which is set on the provider level + runtime: nodejs12.x # Runtime for this specific function. Overrides the default which is set on the provider level timeout: 10 # Timeout for this specific function. Overrides the default set above. role: arn:aws:iam::XXXXXX:role/role # IAM role which will be used for this function onError: arn:aws:sns:us-east-1:XXXXXX:sns-topic # Optional SNS topic / SQS arn (Ref, Fn::GetAtt and Fn::ImportValue are supported as well) which will be used for the DeadLetterConfig diff --git a/docs/providers/aws/guide/services.md b/docs/providers/aws/guide/services.md index c539493ae..740432bc6 100644 --- a/docs/providers/aws/guide/services.md +++ b/docs/providers/aws/guide/services.md @@ -103,7 +103,7 @@ service: users provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x stage: dev # Set the default stage used. Default is dev region: us-east-1 # Overwrite the default region used. Default is us-east-1 stackName: my-custom-stack-name-${self:provider.stage} # Overwrite default CloudFormation stack name. Default is ${self:service}-${self:provider.stage} @@ -233,7 +233,7 @@ service: users provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x memorySize: 512 … @@ -250,7 +250,7 @@ service: users provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x memorySize: 512 … diff --git a/docs/providers/aws/guide/variables.md b/docs/providers/aws/guide/variables.md index 08078cf12..6b4f21919 100644 --- a/docs/providers/aws/guide/variables.md +++ b/docs/providers/aws/guide/variables.md @@ -196,7 +196,7 @@ You can add such custom output to CloudFormation stack. For example: service: another-service provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x region: ap-northeast-1 memorySize: 512 functions: @@ -621,7 +621,7 @@ service: new-service provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x variableSyntax: "\\${{([ ~:a-zA-Z0-9._@\\'\",\\-\\/\\(\\)]+?)}}" # notice the double quotes for yaml to ignore the escape characters! # variableSyntax: "\\${((?!AWS)[ ~:a-zA-Z0-9._@'\",\\-\\/\\(\\)]+?)}" # Use this for allowing CloudFormation Pseudo-Parameters in your serverless.yml -- e.g. ${AWS::Region}. All other Serverless variables work as usual.