Skip to content

Commit c00b8a3

Browse files
Shreyapraneetap
authored andcommitted
chore: upgrade to nodejs12.x for all examples and tests (#1363)
1 parent 1165070 commit c00b8a3

File tree

483 files changed

+757
-757
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

483 files changed

+757
-757
lines changed

HOWTO.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Resources:
130130
Type: AWS::Serverless::Function
131131
Properties:
132132
Handler: index.handler
133-
Runtime: nodejs4.3
133+
Runtime: nodejs12.x
134134
CodeUri:
135135
# !Ref function allows you to fetch value
136136
# of parameters and other resources at runtime
@@ -158,7 +158,7 @@ Resources:
158158
FunctionName: !Sub "mylambda-${FunctionNameSuffix}"
159159

160160
Handler: index.handler
161-
Runtime: nodejs4.3
161+
Runtime: nodejs12.x
162162
CodeUri: s3://bucket/key
163163
```
164164

docs/safe_lambda_deployments.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ resource:
9393
Type: AWS::Serverless::Function
9494
Properties:
9595
Handler: index.handler
96-
Runtime: nodejs8.10
96+
Runtime: nodejs12.x
9797
AutoPublishAlias: live
9898
DeploymentPreference:
9999
Type: Linear10PercentEvery10Minutes
@@ -163,7 +163,7 @@ resource:
163163
Action:
164164
- "lambda:InvokeFunction"
165165
Resource: !GetAtt MyLambdaFunction.Arn
166-
Runtime: nodejs8.10
166+
Runtime: nodejs12.x
167167
FunctionName: 'CodeDeployHook_preTrafficHook'
168168
DeploymentPreference:
169169
Enabled: False

examples/2016-10-31/alexa_skill/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Resources:
77
Properties:
88
CodeUri: s3://<bucket>/alexa_skill.zip
99
Handler: index.handler
10-
Runtime: nodejs6.10
10+
Runtime: nodejs12.x
1111
Events:
1212
AlexaSkillEvent:
1313
Type: AlexaSkill

examples/2016-10-31/api_aws_iam_auth/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Resources:
1515
Properties:
1616
CodeUri: .
1717
Handler: index.handler
18-
Runtime: nodejs8.10
18+
Runtime: nodejs12.x
1919
Events:
2020
GetRoot:
2121
Type: Api

examples/2016-10-31/api_backend/template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Resources:
66
Type: AWS::Serverless::Function
77
Properties:
88
Handler: index.get
9-
Runtime: nodejs6.10
9+
Runtime: nodejs12.x
1010
CodeUri: src/
1111
Policies:
1212
- DynamoDBReadPolicy:
@@ -25,7 +25,7 @@ Resources:
2525
Type: AWS::Serverless::Function
2626
Properties:
2727
Handler: index.put
28-
Runtime: nodejs6.10
28+
Runtime: nodejs12.x
2929
CodeUri: src/
3030
Policies:
3131
- DynamoDBCrudPolicy:
@@ -44,7 +44,7 @@ Resources:
4444
Type: AWS::Serverless::Function
4545
Properties:
4646
Handler: index.delete
47-
Runtime: nodejs6.10
47+
Runtime: nodejs12.x
4848
CodeUri: src/
4949
Policies:
5050
- DynamoDBCrudPolicy:

examples/2016-10-31/api_cognito_auth/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Resources:
2929
CodeUri: ./src
3030
Handler: lambda.handler
3131
MemorySize: 1024
32-
Runtime: nodejs8.10
32+
Runtime: nodejs12.x
3333
Environment:
3434
Variables:
3535
COGNITO_USER_POOL_CLIENT_ID: !Ref MyCognitoUserPoolClient
@@ -120,7 +120,7 @@ Resources:
120120
}
121121
Handler: index.handler
122122
MemorySize: 128
123-
Runtime: nodejs8.10
123+
Runtime: nodejs12.x
124124
Timeout: 3
125125
Events:
126126
CognitoUserPoolPreSignup:

examples/2016-10-31/api_gateway_responses/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Resources:
1818
Type: AWS::Serverless::Function
1919
Properties:
2020
Handler: index.get
21-
Runtime: nodejs6.10
21+
Runtime: nodejs12.x
2222
InlineCode: module.exports = async () => throw new Error('Check out the response headers!')
2323
Events:
2424
GetResource:

examples/2016-10-31/api_lambda_auth_cors/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ Resources:
2222
Properties:
2323
CodeUri: src/
2424
Handler: authorizer.handler
25-
Runtime: nodejs10.x
25+
Runtime: nodejs12.x
2626

2727
HelloWorldFunction:
2828
Type: AWS::Serverless::Function
2929
Properties:
3030
CodeUri: src/
3131
Handler: index.handler
32-
Runtime: nodejs10.x
32+
Runtime: nodejs12.x
3333
Events:
3434
HelloWorld:
3535
Type: Api

examples/2016-10-31/api_lambda_request_auth/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Resources:
3030
Properties:
3131
CodeUri: ./src
3232
Handler: index.handler
33-
Runtime: nodejs8.10
33+
Runtime: nodejs12.x
3434
Events:
3535
GetRoot:
3636
Type: Api
@@ -53,7 +53,7 @@ Resources:
5353
Properties:
5454
CodeUri: ./src
5555
Handler: authorizer.handler
56-
Runtime: nodejs8.10
56+
Runtime: nodejs12.x
5757

5858
Outputs:
5959
ApiURL:

examples/2016-10-31/api_lambda_token_auth/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Resources:
2323
Properties:
2424
CodeUri: ./src
2525
Handler: index.handler
26-
Runtime: nodejs8.10
26+
Runtime: nodejs12.x
2727
Events:
2828
GetRoot:
2929
Type: Api
@@ -46,7 +46,7 @@ Resources:
4646
Properties:
4747
CodeUri: ./src
4848
Handler: authorizer.handler
49-
Runtime: nodejs8.10
49+
Runtime: nodejs12.x
5050

5151
Outputs:
5252
ApiURL:

0 commit comments

Comments
 (0)