Skip to content

Commit

Permalink
chore: Update Runtime to Python3.11 (#3634)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Fuss <jfuss@users.noreply.github.com>
  • Loading branch information
jfuss and jfuss committed Aug 14, 2024
1 parent 2aef955 commit 463d5eb
Show file tree
Hide file tree
Showing 84 changed files with 107 additions and 107 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Resources:
Properties:
CodeUri: ${codeuri}
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11
Policies:

- SQSPollerPolicy:
Expand Down Expand Up @@ -123,7 +123,7 @@ Resources:
Properties:
CodeUri: ${codeuri}
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11
Policies:

- SESEmailTemplateCrudPolicy: {}
Expand Down Expand Up @@ -187,7 +187,7 @@ Resources:
Properties:
CodeUri: ${codeuri}
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11
Policies:
- ElasticMapReduceModifyInstanceFleetPolicy:
ClusterId: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Resources:
InlineCode: |
print("hello")
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
Events:
API3:
Type: Api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Resources:
TriggerFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: python3.8
Runtime: python3.11
Handler: index.handler
InlineCode: |
import boto3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Resources:
Role:
Fn::GetAtt: LambdaRole.Arn
Handler: lambda_function.lambda_handler
Runtime: python3.8
Runtime: python3.11
Timeout: 15
CodeUri: ${codeuri}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Resources:
Properties:
CodeUri: ${codeuri}
Handler: index.handler
Runtime: python3.8
Runtime: python3.11

AutoPublishAlias: Live

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Resources:
Properties:
CodeUri: ${codeuri}
Handler: index.handler
Runtime: python3.8
Runtime: python3.11

AutoPublishAlias: Live

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Resources:
Properties:
CodeUri: ${codeuri}
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
AutoPublishAlias: Live
DeploymentPreference:
Type: Canary10Percent5Minutes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Resources:
Properties:
CodeUri: ${codeuri}
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
AutoPublishAlias: Live

DeploymentRole:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
InlineCode: |
def handler(event, context):
return {'body': 'Hello World!', 'statusCode': 200}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
InlineCode: |
def handler(event, context):
return {'body': 'Hello World!', 'statusCode': 200}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
InlineCode: |
def handler(event, context):
return {'body': 'Hello World!', 'statusCode': 200}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Resources:
Properties:
CodeUri: ${codeuri}
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11
Policies:
- SQSPollerPolicy:
QueueName:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Resources:
Properties:
CodeUri: ${codeuri}
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11
AutoPublishAlias: Live

MyOtherFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: ${codeuri}
Runtime: python3.8
Runtime: python3.11
Handler: hello.handler
Environment:
Variables:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
InlineCode: |
def handler(event, context):
return {'body': 'Hello World!', 'statusCode': 200}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
InlineCode: |
def handler(event, context):
return {'body': 'Hello World!', 'statusCode': 200}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Resources:
InlineCode: |
def handler(event, context):
print("Hello, world!")
Runtime: python3.8
Runtime: python3.11
Architectures:
- x86_64
Events:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Resources:
Properties:
CodeUri: ${codeuri}
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11

MyQueue:
Type: AWS::SQS::Queue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
AutoPublishAlias: live
InlineCode: |
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
AutoPublishAlias: live
InlineCode: |
def handler(event, context):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Resources:
Properties:
CodeUri: ${codeuri}
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11
AutoPublishAlias: live
DeploymentPreference:
Type: Linear10PercentEvery3Minutes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Resources:
Properties:
CodeUri: ${codeuri}
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11
RolePath: /foo/bar/
Metadata:
SamTransformTest: true
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Resources:
print(event)
return "do nothing"
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
Post:
Type: AWS::Serverless::StateMachine
Properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Resources:
Properties:
CodeUri: s3://bucket/key
Handler: app.lambda_handler
Runtime: python3.8
Runtime: python3.11
Role:
Fn::GetAtt:
- HelloWorldFunctionRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Resources:
Properties:
CodeUri: s3://bucket/key
Handler: code/handler
Runtime: python3.8
Runtime: python3.11
Events:
AllEvent:
Type: Api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Resources:
Properties:
CodeUri: s3://bucket/key
Handler: code/handler
Runtime: python3.8
Runtime: python3.11
Events:
AllEvent:
Type: Api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Resources:
MyFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: python3.8
Runtime: python3.11
InlineCode: foo
Handler: bar
Events:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Resources:
print(event)
return "do nothing"
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
Post:
Type: AWS::Serverless::StateMachine
Properties:
Expand Down
2 changes: 1 addition & 1 deletion tests/translator/input/function_with_cw_event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Resources:
MyFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: python3.8
Runtime: python3.11
Handler: foo
InlineCode: bar
Events:
Expand Down
2 changes: 1 addition & 1 deletion tests/translator/input/function_with_ignore_globals.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Globals:
Function:
Runtime: python3.8
Runtime: python3.11
Handler: index.lambda_handler
MemorySize: 128

Expand Down
2 changes: 1 addition & 1 deletion tests/translator/input/function_with_null_events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Resources:
Properties:
CodeUri: s3://sam-demo-bucket/queues.zip
Handler: handlers.handler
Runtime: python3.8
Runtime: python3.11
Events:
12 changes: 6 additions & 6 deletions tests/translator/input/function_with_runtime_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ Resources:
Properties:
CodeUri: s3://sam-demo-bucket/hello.zip
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11
RuntimeManagementConfig:
UpdateRuntimeOn: Auto
MinimalFunctionWithManualRuntimeManagementConfig:
Type: AWS::Serverless::Function
Properties:
CodeUri: s3://sam-demo-bucket/hello.zip
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11
RuntimeManagementConfig:
UpdateRuntimeOn: Manual
RuntimeVersionArn: !Sub arn:aws:lambda:${AWS::Region}::runtime:python3.8::0af1966588ced06e3143ae720245c9b7aeaae213c6921c12c742a166679cc505
RuntimeVersionArn: !Sub arn:aws:lambda:${AWS::Region}::runtime:python3.11::0af1966588ced06e3143ae720245c9b7aeaae213c6921c12c742a166679cc505
FunctionWithRuntimeManagementConfigAndAlias:
Type: AWS::Serverless::Function
Properties:
CodeUri: s3://sam-demo-bucket/hello.zip
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11
AutoPublishAlias: live
RuntimeManagementConfig:
UpdateRuntimeOn: Auto
Expand All @@ -38,15 +38,15 @@ Resources:
Properties:
CodeUri: s3://sam-demo-bucket/hello.zip
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11
RuntimeManagementConfig:
UpdateRuntimeOn: !Ref RuntimeUpdateParam
FunctionWithIntrinsicRuntimeVersion:
Type: AWS::Serverless::Function
Properties:
CodeUri: s3://sam-demo-bucket/hello.zip
Handler: hello.handler
Runtime: python3.8
Runtime: python3.11
RuntimeManagementConfig:
UpdateRuntimeOn: !Ref RuntimeUpdateParam
RuntimeVersionArn: !Ref RuntimeVersionParam
2 changes: 1 addition & 1 deletion tests/translator/input/inline_precedence.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Resources:
pass"
CodeUri: .
Handler: index.lambda_handler
Runtime: python3.8
Runtime: python3.11
2 changes: 1 addition & 1 deletion tests/translator/input/managed_policies_everything.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Resources:
MyFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: python3.8
Runtime: python3.11
Handler: foo
InlineCode: bar
Policies:
Expand Down
2 changes: 1 addition & 1 deletion tests/translator/input/managed_policies_minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Resources:
MyFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: python3.8
Runtime: python3.11
Handler: foo
InlineCode: bar
Policies:
Expand Down
2 changes: 1 addition & 1 deletion tests/translator/input/schema_validation_4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Resources:
OtherFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: python3.8
Runtime: python3.11
Handler: foo
InlineCode: bar
Environment:
Expand Down
2 changes: 1 addition & 1 deletion tests/translator/input/state_machine_with_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Resources:
print(event)
return "do nothing"
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
Post:
Type: AWS::Serverless::StateMachine
Properties:
Expand Down
2 changes: 1 addition & 1 deletion tests/translator/input/state_machine_with_api_single.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Resources:
print(event)
return "do nothing"
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
Post:
Type: AWS::Serverless::StateMachine
Properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Resources:
Properties:
CodeUri: s3://sam-demo-bucket/resolver.zip
Handler: resolver.handler
Runtime: python3.8
Runtime: python3.11

NestedWorkflow:
Type: AWS::Serverless::StateMachine
Expand Down
Loading

0 comments on commit 463d5eb

Please sign in to comment.