diff --git a/test/json/invalid-sam-template-wrong-transform.json b/test/json/invalid-sam-template-wrong-transform.json index 6cc6eefd0e..6b711c6ca0 100644 --- a/test/json/invalid-sam-template-wrong-transform.json +++ b/test/json/invalid-sam-template-wrong-transform.json @@ -8,7 +8,7 @@ "Properties": { "Handler": "index.handler", "CodeUri": "s3://testBucket/mySourceCode.zip", - "Runtime": "nodejs4.3" + "Runtime": "nodejs10.x" } } } diff --git a/test/json/valid-sam-template.json b/test/json/valid-sam-template.json index ed963d2801..03f25d0c70 100644 --- a/test/json/valid-sam-template.json +++ b/test/json/valid-sam-template.json @@ -8,7 +8,7 @@ "Properties": { "Handler": "index.handler", "CodeUri": "s3://testBucket/mySourceCode.zip", - "Runtime": "nodejs4.3" + "Runtime": "nodejs10.x" } }, "MySNSTopic" : { diff --git a/test/json/valid-template-with-fns.json b/test/json/valid-template-with-fns.json index 00e1dc92ba..2a4c879af7 100644 --- a/test/json/valid-template-with-fns.json +++ b/test/json/valid-template-with-fns.json @@ -13,7 +13,7 @@ "Role": { "Fn::GetAtt": ["FunctionNameRole", "Arn"] }, - "Runtime": "nodejs4.3" + "Runtime": "nodejs10.x" } }, "FunctionNameRole": { diff --git a/test/yaml/aws-serverless-function-api-event.yaml b/test/yaml/aws-serverless-function-api-event.yaml index 649aef9a3e..f398c11c93 100644 --- a/test/yaml/aws-serverless-function-api-event.yaml +++ b/test/yaml/aws-serverless-function-api-event.yaml @@ -22,7 +22,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: index.put - Runtime: nodejs4.3 + Runtime: nodejs10.x CodeUri: s3:///api_backend.zip Policies: AmazonDynamoDBFullAccess Environment: @@ -39,7 +39,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: index.delete - Runtime: nodejs4.3 + Runtime: nodejs10.x CodeUri: s3:///api_backend.zip Policies: AmazonDynamoDBFullAccess Environment: diff --git a/test/yaml/codestar/nodejs.yml b/test/yaml/codestar/nodejs.yml index f28f69f5d6..4dd83f3561 100644 --- a/test/yaml/codestar/nodejs.yml +++ b/test/yaml/codestar/nodejs.yml @@ -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']] diff --git a/test/yaml/sam-official-samples/alexa_skill/template.yaml b/test/yaml/sam-official-samples/alexa_skill/template.yaml index 80ad8c0a11..f0eb3b2fed 100644 --- a/test/yaml/sam-official-samples/alexa_skill/template.yaml +++ b/test/yaml/sam-official-samples/alexa_skill/template.yaml @@ -7,7 +7,7 @@ Resources: Properties: CodeUri: s3:///alexa_skill.zip Handler: index.handler - Runtime: nodejs4.3 + Runtime: nodejs10.x Events: AlexaSkillEvent: Type: AlexaSkill diff --git a/test/yaml/sam-official-samples/api_backend/template.yaml b/test/yaml/sam-official-samples/api_backend/template.yaml index 5b2710a255..4ad1158352 100644 --- a/test/yaml/sam-official-samples/api_backend/template.yaml +++ b/test/yaml/sam-official-samples/api_backend/template.yaml @@ -6,7 +6,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: index.get - Runtime: nodejs4.3 + Runtime: nodejs10.x CodeUri: s3:///api_backend.zip Policies: AmazonDynamoDBReadOnlyAccess Environment: @@ -23,7 +23,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: index.put - Runtime: nodejs4.3 + Runtime: nodejs10.x CodeUri: s3:///api_backend.zip Policies: AmazonDynamoDBFullAccess Environment: @@ -40,7 +40,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: index.delete - Runtime: nodejs4.3 + Runtime: nodejs10.x CodeUri: s3:///api_backend.zip Policies: AmazonDynamoDBFullAccess Environment: diff --git a/test/yaml/sam-official-samples/api_swagger_cors/template.yaml b/test/yaml/sam-official-samples/api_swagger_cors/template.yaml index d7e8450561..33614d8824 100644 --- a/test/yaml/sam-official-samples/api_swagger_cors/template.yaml +++ b/test/yaml/sam-official-samples/api_swagger_cors/template.yaml @@ -19,7 +19,7 @@ Resources: Properties: CodeUri: s3:///api_swagger_cors.zip Handler: index.handler - Runtime: nodejs4.3 + Runtime: nodejs10.x Events: ProxyApiRoot: Type: Api diff --git a/test/yaml/sam-official-samples/codestar-node4.3.yaml b/test/yaml/sam-official-samples/codestar-node4.3.yaml index f28f69f5d6..4dd83f3561 100644 --- a/test/yaml/sam-official-samples/codestar-node4.3.yaml +++ b/test/yaml/sam-official-samples/codestar-node4.3.yaml @@ -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']] diff --git a/test/yaml/sam-official-samples/inline_swagger/template.yaml b/test/yaml/sam-official-samples/inline_swagger/template.yaml index b9dc3018c4..ca29ec3acf 100644 --- a/test/yaml/sam-official-samples/inline_swagger/template.yaml +++ b/test/yaml/sam-official-samples/inline_swagger/template.yaml @@ -28,7 +28,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: index.handler - Runtime: nodejs4.3 + Runtime: nodejs10.x CodeUri: s3:///inline_swagger.zip Events: GetApi: diff --git a/test/yaml/sam-official-samples/iot_backend/template.yaml b/test/yaml/sam-official-samples/iot_backend/template.yaml index 8486c72a79..121364350c 100644 --- a/test/yaml/sam-official-samples/iot_backend/template.yaml +++ b/test/yaml/sam-official-samples/iot_backend/template.yaml @@ -6,7 +6,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: index.handler - Runtime: nodejs4.3 + Runtime: nodejs10.x CodeUri: s3:///iot_backend.zip Policies: AmazonDynamoDBFullAccess Environment: diff --git a/test/yaml/sam-official-samples/schedule/template.yaml b/test/yaml/sam-official-samples/schedule/template.yaml index 4bd022e8c9..abfcb6d772 100644 --- a/test/yaml/sam-official-samples/schedule/template.yaml +++ b/test/yaml/sam-official-samples/schedule/template.yaml @@ -6,7 +6,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: index.handler - Runtime: nodejs4.3 + Runtime: nodejs10.x CodeUri: s3:///schedule.zip Events: Timer: diff --git a/test/yaml/sam-official-samples/stream_processor/template.yaml b/test/yaml/sam-official-samples/stream_processor/template.yaml index 48de30be6b..bb44d4ae92 100644 --- a/test/yaml/sam-official-samples/stream_processor/template.yaml +++ b/test/yaml/sam-official-samples/stream_processor/template.yaml @@ -6,7 +6,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: index.handler - Runtime: nodejs4.3 + Runtime: nodejs10.x CodeUri: s3:///stream_processor.zip Events: Stream: diff --git a/test/yaml/sam-official-samples/templates/basic.yaml b/test/yaml/sam-official-samples/templates/basic.yaml index eb8dc991ab..5ffbcd8bf0 100644 --- a/test/yaml/sam-official-samples/templates/basic.yaml +++ b/test/yaml/sam-official-samples/templates/basic.yaml @@ -7,7 +7,7 @@ Resources: Properties: CodeUri: s3:///alexa_skill.zip Handler: index.handler - Runtime: nodejs4.3 + Runtime: nodejs10.x Events: AlexaSkillEvent: Type: AlexaSkill \ No newline at end of file diff --git a/test/yaml/sam-official-samples/templates/wrong.yaml b/test/yaml/sam-official-samples/templates/wrong.yaml index de8ae7dcc5..09bd9b9cc9 100644 --- a/test/yaml/sam-official-samples/templates/wrong.yaml +++ b/test/yaml/sam-official-samples/templates/wrong.yaml @@ -6,7 +6,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: index.handler - Runtime: nodejs4.3 + Runtime: nodejs10.x Events: AlexaSkillEvent: Type: AlexaSkill \ No newline at end of file