Skip to content

Commit

Permalink
Upgrade deprecated runtime nodejs4.3 (awslabs#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscoombs authored Jan 29, 2020
1 parent 1aa45c6 commit 54fe964
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion test/json/invalid-sam-template-wrong-transform.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Properties": {
"Handler": "index.handler",
"CodeUri": "s3://testBucket/mySourceCode.zip",
"Runtime": "nodejs4.3"
"Runtime": "nodejs10.x"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/json/valid-sam-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Properties": {
"Handler": "index.handler",
"CodeUri": "s3://testBucket/mySourceCode.zip",
"Runtime": "nodejs4.3"
"Runtime": "nodejs10.x"
}
},
"MySNSTopic" : {
Expand Down
2 changes: 1 addition & 1 deletion test/json/valid-template-with-fns.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"Role": {
"Fn::GetAtt": ["FunctionNameRole", "Arn"]
},
"Runtime": "nodejs4.3"
"Runtime": "nodejs10.x"
}
},
"FunctionNameRole": {
Expand Down
4 changes: 2 additions & 2 deletions test/yaml/aws-serverless-function-api-event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.put
Runtime: nodejs4.3
Runtime: nodejs10.x
CodeUri: s3://<bucket>/api_backend.zip
Policies: AmazonDynamoDBFullAccess
Environment:
Expand All @@ -39,7 +39,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.delete
Runtime: nodejs4.3
Runtime: nodejs10.x
CodeUri: s3://<bucket>/api_backend.zip
Policies: AmazonDynamoDBFullAccess
Environment:
Expand Down
2 changes: 1 addition & 1 deletion test/yaml/codestar/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.get
Runtime: nodejs4.3
Runtime: nodejs10.x
Role:
Fn::ImportValue:
!Join ['-', [!Ref 'ProjectId', !Ref 'AWS::Region', 'LambdaTrustRole']]
Expand Down
2 changes: 1 addition & 1 deletion test/yaml/sam-official-samples/alexa_skill/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Resources:
Properties:
CodeUri: s3://<bucket>/alexa_skill.zip
Handler: index.handler
Runtime: nodejs4.3
Runtime: nodejs10.x
Events:
AlexaSkillEvent:
Type: AlexaSkill
Expand Down
6 changes: 3 additions & 3 deletions test/yaml/sam-official-samples/api_backend/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.get
Runtime: nodejs4.3
Runtime: nodejs10.x
CodeUri: s3://<bucket>/api_backend.zip
Policies: AmazonDynamoDBReadOnlyAccess
Environment:
Expand All @@ -23,7 +23,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.put
Runtime: nodejs4.3
Runtime: nodejs10.x
CodeUri: s3://<bucket>/api_backend.zip
Policies: AmazonDynamoDBFullAccess
Environment:
Expand All @@ -40,7 +40,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.delete
Runtime: nodejs4.3
Runtime: nodejs10.x
CodeUri: s3://<bucket>/api_backend.zip
Policies: AmazonDynamoDBFullAccess
Environment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Resources:
Properties:
CodeUri: s3://<bucket>/api_swagger_cors.zip
Handler: index.handler
Runtime: nodejs4.3
Runtime: nodejs10.x
Events:
ProxyApiRoot:
Type: Api
Expand Down
2 changes: 1 addition & 1 deletion test/yaml/sam-official-samples/codestar-node4.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.get
Runtime: nodejs4.3
Runtime: nodejs10.x
Role:
Fn::ImportValue:
!Join ['-', [!Ref 'ProjectId', !Ref 'AWS::Region', 'LambdaTrustRole']]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs4.3
Runtime: nodejs10.x
CodeUri: s3://<bucket>/inline_swagger.zip
Events:
GetApi:
Expand Down
2 changes: 1 addition & 1 deletion test/yaml/sam-official-samples/iot_backend/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs4.3
Runtime: nodejs10.x
CodeUri: s3://<bucket>/iot_backend.zip
Policies: AmazonDynamoDBFullAccess
Environment:
Expand Down
2 changes: 1 addition & 1 deletion test/yaml/sam-official-samples/schedule/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs4.3
Runtime: nodejs10.x
CodeUri: s3://<bucket>/schedule.zip
Events:
Timer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs4.3
Runtime: nodejs10.x
CodeUri: s3://<bucket>/stream_processor.zip
Events:
Stream:
Expand Down
2 changes: 1 addition & 1 deletion test/yaml/sam-official-samples/templates/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Resources:
Properties:
CodeUri: s3://<bucket>/alexa_skill.zip
Handler: index.handler
Runtime: nodejs4.3
Runtime: nodejs10.x
Events:
AlexaSkillEvent:
Type: AlexaSkill
2 changes: 1 addition & 1 deletion test/yaml/sam-official-samples/templates/wrong.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs4.3
Runtime: nodejs10.x
Events:
AlexaSkillEvent:
Type: AlexaSkill

0 comments on commit 54fe964

Please sign in to comment.