Update docs to reference new runtime

This commit is contained in:
Mariusz Nowak 2019-11-20 09:43:48 +01:00
parent d33ee52d28
commit 9ffd194d99
No known key found for this signature in database
GPG Key ID: B1FBDA8A182B03F2
8 changed files with 21 additions and 21 deletions

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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:

View File

@ -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
```

View File

@ -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

View File

@ -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

View File

@ -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.