diff --git a/samcli/lib/sync/sync_flow_executor.py b/samcli/lib/sync/sync_flow_executor.py index 3d43d74189..db73abc528 100644 --- a/samcli/lib/sync/sync_flow_executor.py +++ b/samcli/lib/sync/sync_flow_executor.py @@ -4,6 +4,7 @@ import time from concurrent.futures import Future, ThreadPoolExecutor from dataclasses import dataclass +from datetime import datetime from queue import Queue from threading import RLock from typing import Callable, List, Optional, Set @@ -311,8 +312,12 @@ def _handle_result( sync_flow_result: SyncFlowResult = future.result() for dependent_sync_flow in sync_flow_result.dependent_sync_flows: self.add_sync_flow(dependent_sync_flow) + message = ( + f"{datetime.now().strftime('%d/%b/%Y:%H:%M:%S')}: " + f"Finished syncing {sync_flow_result.sync_flow.log_name}." + ) LOG.info( - self._color.color_log(msg=f"Finished syncing {sync_flow_result.sync_flow.log_name}.", color="green"), + self._color.color_log(msg=message, color="green"), extra=dict(markup=True), ) return True diff --git a/tests/integration/sync/test_sync_adl.py b/tests/integration/sync/test_sync_adl.py index 854325af20..f5e0a4c32e 100644 --- a/tests/integration/sync/test_sync_adl.py +++ b/tests/integration/sync/test_sync_adl.py @@ -128,7 +128,7 @@ def test_sync_watch_code(self): ) read_until_string( self.watch_process, - "\x1b[32mFinished syncing Layer HelloWorldFunction", + "Finished syncing Layer HelloWorldFunction", timeout=60, ) lambda_response = json.loads(self._get_lambda_response(lambda_functions[0])) @@ -142,7 +142,7 @@ def test_sync_watch_code(self): ) read_until_string( self.watch_process, - "\x1b[32mFinished syncing Layer HelloWorldFunction", + "Finished syncing Layer HelloWorldFunction", timeout=60, ) self._confirm_lambda_error(lambda_functions[0]) @@ -154,7 +154,7 @@ def test_sync_watch_code(self): ) read_until_string( self.watch_process, - "\x1b[32mFinished syncing Function Layer Reference Sync HelloWorldFunction.\x1b[0m\n", + "Finished syncing Function Layer Reference Sync HelloWorldFunction.\x1b[0m\n", timeout=60, ) diff --git a/tests/integration/sync/test_sync_watch.py b/tests/integration/sync/test_sync_watch.py index f450060cb9..133d1ddbde 100644 --- a/tests/integration/sync/test_sync_watch.py +++ b/tests/integration/sync/test_sync_watch.py @@ -223,7 +223,7 @@ def test_sync_watch_code(self): ) read_until_string( self.watch_process, - "\x1b[32mFinished syncing Function Layer Reference Sync HelloWorldFunction.\x1b[0m\n", + "Finished syncing Function Layer Reference Sync HelloWorldFunction.\x1b[0m\n", timeout=45, ) layer_contents = self.get_dependency_layer_contents_from_arn(self.stack_resources, "python", 2) @@ -235,7 +235,7 @@ def test_sync_watch_code(self): self.test_data_path.joinpath("code", "before", "function", "app.py"), ) read_until_string( - self.watch_process, "\x1b[32mFinished syncing Lambda Function HelloWorldFunction.\x1b[0m\n", timeout=30 + self.watch_process, "Finished syncing Lambda Function HelloWorldFunction.\x1b[0m\n", timeout=30 ) lambda_functions = self.stack_resources.get(AWS_LAMBDA_FUNCTION) for lambda_function in lambda_functions: @@ -250,7 +250,7 @@ def test_sync_watch_code(self): ) read_until_string( self.watch_process, - "\x1b[32mFinished syncing Function Layer Reference Sync HelloWorldFunction.\x1b[0m\n", + "Finished syncing Function Layer Reference Sync HelloWorldFunction.\x1b[0m\n", timeout=30, ) lambda_functions = self.stack_resources.get(AWS_LAMBDA_FUNCTION) @@ -264,7 +264,7 @@ def test_sync_watch_code(self): self.test_data_path.joinpath("code", "after", "apigateway", "definition.json"), self.test_data_path.joinpath("code", "before", "apigateway", "definition.json"), ) - read_until_string(self.watch_process, "\x1b[32mFinished syncing RestApi HelloWorldApi.\x1b[0m\n", timeout=20) + read_until_string(self.watch_process, "Finished syncing RestApi HelloWorldApi.\x1b[0m\n", timeout=20) time.sleep(API_SLEEP) rest_api = self.stack_resources.get(AWS_APIGATEWAY_RESTAPI)[0] self.assertEqual(self._get_api_message(rest_api), '{"message": "hello 2"}') @@ -274,9 +274,7 @@ def test_sync_watch_code(self): self.test_data_path.joinpath("code", "after", "statemachine", "function.asl.json"), self.test_data_path.joinpath("code", "before", "statemachine", "function.asl.json"), ) - read_until_string( - self.watch_process, "\x1b[32mFinished syncing StepFunctions HelloStepFunction.\x1b[0m\n", timeout=20 - ) + read_until_string(self.watch_process, "Finished syncing StepFunctions HelloStepFunction.\x1b[0m\n", timeout=20) state_machine = self.stack_resources.get(AWS_STEPFUNCTIONS_STATEMACHINE)[0] time.sleep(SFN_SLEEP) self.assertEqual(self._get_sfn_response(state_machine), '"World 2"') @@ -326,8 +324,7 @@ def test_sync_watch_code_nested_stack(self): ) read_until_string( self.watch_process, - "\x1b[32mFinished syncing Function Layer Reference Sync " - "LocalNestedChildStack/HelloWorldFunction.\x1b[0m\n", + "Finished syncing Function Layer Reference Sync " "LocalNestedChildStack/HelloWorldFunction.\x1b[0m\n", timeout=45, ) layer_contents = self.get_dependency_layer_contents_from_arn(self.stack_resources, "python", 2) @@ -340,7 +337,7 @@ def test_sync_watch_code_nested_stack(self): ) read_until_string( self.watch_process, - "\x1b[32mFinished syncing Lambda Function LocalNestedChildStack/HelloWorldFunction.\x1b[0m\n", + "Finished syncing Lambda Function LocalNestedChildStack/HelloWorldFunction.\x1b[0m\n", timeout=30, ) lambda_functions = self.stack_resources.get(AWS_LAMBDA_FUNCTION) @@ -356,7 +353,7 @@ def test_sync_watch_code_nested_stack(self): ) read_until_string( self.watch_process, - "\x1b[32mFinished syncing Function Layer Reference Sync LocalNestedChildStack/HelloWorldFunction.\x1b[0m\n", + "Finished syncing Function Layer Reference Sync LocalNestedChildStack/HelloWorldFunction.\x1b[0m\n", timeout=30, ) lambda_functions = self.stack_resources.get(AWS_LAMBDA_FUNCTION) @@ -372,7 +369,7 @@ def test_sync_watch_code_nested_stack(self): ) read_until_string( self.watch_process, - "\x1b[32mFinished syncing RestApi LocalNestedChildStack/HelloWorldApi.\x1b[0m\n", + "Finished syncing RestApi LocalNestedChildStack/HelloWorldApi.\x1b[0m\n", timeout=20, ) time.sleep(API_SLEEP) @@ -386,7 +383,7 @@ def test_sync_watch_code_nested_stack(self): ) read_until_string( self.watch_process, - "\x1b[32mFinished syncing StepFunctions LocalNestedChildStack/HelloStepFunction.\x1b[0m\n", + "Finished syncing StepFunctions LocalNestedChildStack/HelloStepFunction.\x1b[0m\n", timeout=20, ) state_machine = self.stack_resources.get(AWS_STEPFUNCTIONS_STATEMACHINE)[0] @@ -413,7 +410,7 @@ def test_sync_watch_code(self): self.test_data_path.joinpath("code", "before", "esbuild_function", "app.ts"), ) read_until_string( - self.watch_process, "\x1b[32mFinished syncing Lambda Function HelloWorldFunction.\x1b[0m\n", timeout=30 + self.watch_process, "Finished syncing Lambda Function HelloWorldFunction.\x1b[0m\n", timeout=30 ) lambda_functions = self.stack_resources.get(AWS_LAMBDA_FUNCTION) for lambda_function in lambda_functions: @@ -473,7 +470,7 @@ def test_sync_watch_code(self): self.test_data_path.joinpath("code", "before", "function", "requirements.txt"), ) read_until_string( - self.watch_process, "\x1b[32mFinished syncing Lambda Function HelloWorldFunction.\x1b[0m\n", timeout=45 + self.watch_process, "Finished syncing Lambda Function HelloWorldFunction.\x1b[0m\n", timeout=45 ) lambda_functions = self.stack_resources.get(AWS_LAMBDA_FUNCTION) @@ -521,7 +518,7 @@ def test_sync_watch_code(self): tags="integ=true clarity=yes foo_bar=baz", ) self.watch_process = start_persistent_process(sync_command_list, cwd=self.test_data_path) - read_until_string(self.watch_process, "\x1b[32mSync watch started.\x1b[0m\n", timeout=30) + read_until_string(self.watch_process, "Sync watch started.\x1b[0m\n", timeout=30) self.stack_resources = self._get_stacks(self.stack_name) @@ -535,7 +532,7 @@ def test_sync_watch_code(self): ) read_until_string( self.watch_process, - "\x1b[32mFinished syncing Function Layer Reference Sync HelloWorldFunction.\x1b[0m\n", + "Finished syncing Function Layer Reference Sync HelloWorldFunction.\x1b[0m\n", timeout=45, ) layer_contents = self.get_dependency_layer_contents_from_arn(self.stack_resources, "python", 2) @@ -547,7 +544,7 @@ def test_sync_watch_code(self): self.test_data_path.joinpath("code", "before", "function", "app.py"), ) read_until_string( - self.watch_process, "\x1b[32mFinished syncing Lambda Function HelloWorldFunction.\x1b[0m\n", timeout=30 + self.watch_process, "Finished syncing Lambda Function HelloWorldFunction.\x1b[0m\n", timeout=30 ) lambda_functions = self.stack_resources.get(AWS_LAMBDA_FUNCTION) for lambda_function in lambda_functions: @@ -562,7 +559,7 @@ def test_sync_watch_code(self): ) read_until_string( self.watch_process, - "\x1b[32mFinished syncing Function Layer Reference Sync HelloWorldFunction.\x1b[0m\n", + "Finished syncing Function Layer Reference Sync HelloWorldFunction.\x1b[0m\n", timeout=30, ) lambda_functions = self.stack_resources.get(AWS_LAMBDA_FUNCTION) @@ -679,7 +676,7 @@ def test_sync_watch_auto_skip_infra(self): self.watch_process = start_persistent_process(sync_command_list, cwd=self.test_dir) read_until_string( - self.watch_process, "\x1b[32mFinished syncing Lambda Function HelloWorldFunction.\x1b[0m\n", timeout=100 + self.watch_process, "Finished syncing Lambda Function HelloWorldFunction.\x1b[0m\n", timeout=100 ) kill_process(self.watch_process) @@ -714,7 +711,7 @@ def test_sync_watch_auto_skip_infra(self): read_until_string( self.watch_process, - "\x1b[32mFinished syncing Function Layer Reference Sync HelloWorldFunction.\x1b[0m\n", + "Finished syncing Function Layer Reference Sync HelloWorldFunction.\x1b[0m\n", timeout=100, ) @@ -749,7 +746,7 @@ def test_sync_watch_auto_skip_infra(self): read_until_string( self.watch_process, - "\x1b[32mFinished syncing RestApi HelloWorldApi.\x1b[0m\n", + "Finished syncing RestApi HelloWorldApi.\x1b[0m\n", timeout=100, ) time.sleep(API_SLEEP) @@ -781,7 +778,7 @@ def test_sync_watch_auto_skip_infra(self): read_until_string( self.watch_process, - "\x1b[32mFinished syncing StepFunctions HelloStepFunction.\x1b[0m\n", + "Finished syncing StepFunctions HelloStepFunction.\x1b[0m\n", timeout=100, ) time.sleep(SFN_SLEEP) diff --git a/tests/integration/testdata/sync/code/before/template-makefile-create-new-file.yaml b/tests/integration/testdata/sync/code/before/template-makefile-create-new-file.yaml index dde583cc6e..d35d56be45 100644 --- a/tests/integration/testdata/sync/code/before/template-makefile-create-new-file.yaml +++ b/tests/integration/testdata/sync/code/before/template-makefile-create-new-file.yaml @@ -11,7 +11,7 @@ Resources: Properties: CodeUri: makefile_function_create_new_file/ Handler: main.handler - Runtime: python3.7 + Runtime: python3.11 Layers: - !Ref HelloWorldLayer Metadata: @@ -22,6 +22,6 @@ Resources: Properties: ContentUri: makefile_layer_create_new_file/ CompatibleRuntimes: - - python3.7 + - python3.11 Metadata: BuildMethod: makefile \ No newline at end of file diff --git a/tests/integration/testdata/sync/code/before/template-python-code-only-layer.yaml b/tests/integration/testdata/sync/code/before/template-python-code-only-layer.yaml index 133dc915de..3c2afbd0df 100644 --- a/tests/integration/testdata/sync/code/before/template-python-code-only-layer.yaml +++ b/tests/integration/testdata/sync/code/before/template-python-code-only-layer.yaml @@ -22,7 +22,7 @@ Resources: Properties: CodeUri: function/ Handler: app.lambda_handler - Runtime: python3.7 + Runtime: python3.11 Layers: - Ref: HelloWorldLayer Tracing: Active @@ -32,7 +32,7 @@ Resources: Properties: CodeUri: function/ Handler: app.lambda_handler - Runtime: python3.7 + Runtime: python3.11 Layers: - Ref: HelloWorldLayerWithoutBuildMethod Tracing: Active @@ -42,7 +42,7 @@ Resources: Properties: CodeUri: function/ Handler: app.lambda_handler - Runtime: python3.7 + Runtime: python3.11 Layers: - Ref: HelloWorldPreBuiltZipLayer Tracing: Active @@ -54,9 +54,9 @@ Resources: Description: Hello World Layer ContentUri: layer/ CompatibleRuntimes: - - python3.7 + - python3.11 Metadata: - BuildMethod: python3.7 + BuildMethod: python3.11 HelloWorldLayerWithoutBuildMethod: Type: AWS::Serverless::LayerVersion @@ -65,7 +65,7 @@ Resources: Description: Hello World Layer without BuildMethod ContentUri: layer_without_build_method/ CompatibleRuntimes: - - python3.7 + - python3.11 HelloWorldPreBuiltZipLayer: Type: AWS::Serverless::LayerVersion @@ -74,7 +74,7 @@ Resources: Description: Hello World Layer which is pre-built as ZIP file ContentUri: layer_zip/layer.zip CompatibleRuntimes: - - python3.7 + - python3.11 HelloStepFunction: Type: AWS::Serverless::StateMachine diff --git a/tests/integration/testdata/sync/code/before/template-python-code-only.yaml b/tests/integration/testdata/sync/code/before/template-python-code-only.yaml index a90129ba1e..0c1200c5c7 100644 --- a/tests/integration/testdata/sync/code/before/template-python-code-only.yaml +++ b/tests/integration/testdata/sync/code/before/template-python-code-only.yaml @@ -16,7 +16,7 @@ Resources: Properties: CodeUri: function/ Handler: app.lambda_handler - Runtime: python3.7 + Runtime: python3.11 Layers: - Ref: HelloWorldLayer Tracing: Active @@ -28,6 +28,6 @@ Resources: Description: Hello World Layer ContentUri: layer/ CompatibleRuntimes: - - python3.7 + - python3.11 Metadata: - BuildMethod: python3.7 + BuildMethod: python3.11 diff --git a/tests/integration/testdata/sync/code/before/template-python-no-dependencies.yaml b/tests/integration/testdata/sync/code/before/template-python-no-dependencies.yaml index b95b0c7670..7961b53ce9 100644 --- a/tests/integration/testdata/sync/code/before/template-python-no-dependencies.yaml +++ b/tests/integration/testdata/sync/code/before/template-python-no-dependencies.yaml @@ -11,4 +11,4 @@ Resources: Properties: CodeUri: python_function_no_deps/ Handler: app.lambda_handler - Runtime: python3.7 \ No newline at end of file + Runtime: python3.11 \ No newline at end of file diff --git a/tests/integration/testdata/sync/code/before/template-python.yaml b/tests/integration/testdata/sync/code/before/template-python.yaml index 56cb642235..7199dfc9ff 100644 --- a/tests/integration/testdata/sync/code/before/template-python.yaml +++ b/tests/integration/testdata/sync/code/before/template-python.yaml @@ -16,7 +16,7 @@ Resources: Properties: CodeUri: function/ Handler: app.lambda_handler - Runtime: python3.7 + Runtime: python3.11 Layers: - Ref: HelloWorldLayer Tracing: Active @@ -40,9 +40,9 @@ Resources: Description: Hello World Layer ContentUri: layer/ CompatibleRuntimes: - - python3.7 + - python3.11 Metadata: - BuildMethod: python3.7 + BuildMethod: python3.11 HelloStepFunction: Type: AWS::Serverless::StateMachine diff --git a/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_level3_nested_zip_functions.json b/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_level3_nested_zip_functions.json index 4bdebf1d5c..501f219ab5 100644 --- a/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_level3_nested_zip_functions.json +++ b/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_level3_nested_zip_functions.json @@ -44,7 +44,8 @@ "CompatibleRuntimes": [ "python3.7", "python3.8", - "python3.9" + "python3.9", + "python3.11" ] }, "Metadata": { @@ -52,7 +53,7 @@ "aws:asset:path": "before/asset.b998895901bf33127f2c9dce715854f8b35aa73fb7eb5245ba9721580bbe6948", "aws:asset:is-bundled": false, "aws:asset:property": "Content", - "BuildMethod": "python3.7" + "BuildMethod": "python3.11" } }, "RandomCitiesFunctionServiceRole4EFB1CF5": { @@ -142,7 +143,7 @@ "Ref": "CountriesLibLayer259A7AF1" } ], - "Runtime": "python3.7" + "Runtime": "python3.11" }, "DependsOn": [ "RandomCitiesFunctionServiceRole4EFB1CF5" diff --git a/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_level3_nested_zip_functions_after.json b/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_level3_nested_zip_functions_after.json index a74eaccfd4..1efd11e775 100644 --- a/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_level3_nested_zip_functions_after.json +++ b/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_level3_nested_zip_functions_after.json @@ -44,7 +44,8 @@ "CompatibleRuntimes": [ "python3.7", "python3.8", - "python3.9" + "python3.9", + "python3.11" ] }, "Metadata": { @@ -52,7 +53,7 @@ "aws:asset:path": "after/asset.b998895901bf33127f2c9dce715854f8b35aa73fb7eb5245ba9721580bbe6948", "aws:asset:is-bundled": false, "aws:asset:property": "Content", - "BuildMethod": "python3.7" + "BuildMethod": "python3.11" } }, "RandomCitiesFunctionServiceRole4EFB1CF5": { @@ -142,7 +143,7 @@ "Ref": "CountriesLibLayer259A7AF1" } ], - "Runtime": "python3.7" + "Runtime": "python3.11" }, "DependsOn": [ "RandomCitiesFunctionServiceRole4EFB1CF5" diff --git a/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_zip_functions.json b/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_zip_functions.json index 9b8144d231..5eb15f6c79 100644 --- a/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_zip_functions.json +++ b/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_zip_functions.json @@ -44,7 +44,8 @@ "CompatibleRuntimes": [ "python3.7", "python3.8", - "python3.9" + "python3.9", + "python3.11" ] }, "Metadata": { @@ -52,7 +53,7 @@ "aws:asset:path": "before/asset.b998895901bf33127f2c9dce715854f8b35aa73fb7eb5245ba9721580bbe6948", "aws:asset:is-bundled": false, "aws:asset:property": "Content", - "BuildMethod": "python3.7" + "BuildMethod": "python3.11" } }, "RandomCitiesFunctionServiceRole4EFB1CF5": { @@ -142,7 +143,7 @@ "Ref": "CountriesLibLayer259A7AF1" } ], - "Runtime": "python3.7" + "Runtime": "python3.11" }, "DependsOn": [ "RandomCitiesFunctionServiceRole4EFB1CF5" diff --git a/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_zip_functions_after.json b/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_zip_functions_after.json index ca59fdf28f..6aead65356 100644 --- a/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_zip_functions_after.json +++ b/tests/integration/testdata/sync/infra/cdk/cdk_v1_synthesized_template_zip_functions_after.json @@ -44,7 +44,8 @@ "CompatibleRuntimes": [ "python3.7", "python3.8", - "python3.9" + "python3.9", + "python3.11" ] }, "Metadata": { @@ -52,7 +53,7 @@ "aws:asset:path": "after/asset.b998895901bf33127f2c9dce715854f8b35aa73fb7eb5245ba9721580bbe6948", "aws:asset:is-bundled": false, "aws:asset:property": "Content", - "BuildMethod": "python3.7" + "BuildMethod": "python3.11" } }, "RandomCitiesFunctionServiceRole4EFB1CF5": { @@ -142,7 +143,7 @@ "Ref": "CountriesLibLayer259A7AF1" } ], - "Runtime": "python3.7" + "Runtime": "python3.11" }, "DependsOn": [ "RandomCitiesFunctionServiceRole4EFB1CF5" diff --git a/tests/integration/testdata/sync/infra/template-python-after.yaml b/tests/integration/testdata/sync/infra/template-python-after.yaml index add839c507..6293b89e29 100644 --- a/tests/integration/testdata/sync/infra/template-python-after.yaml +++ b/tests/integration/testdata/sync/infra/template-python-after.yaml @@ -16,7 +16,7 @@ Resources: Properties: CodeUri: after/Python/function/ Handler: app.lambda_handler - Runtime: python3.7 + Runtime: python3.11 Layers: - Ref: HelloWorldLayer Tracing: Active @@ -40,9 +40,9 @@ Resources: Description: Hello World Layer ContentUri: after/Python/layer/ CompatibleRuntimes: - - python3.7 + - python3.11 Metadata: - BuildMethod: python3.7 + BuildMethod: python3.11 HelloStepFunction: Type: AWS::Serverless::StateMachine diff --git a/tests/integration/testdata/sync/infra/template-python-auto-skip.yaml b/tests/integration/testdata/sync/infra/template-python-auto-skip.yaml index bfe4ca5425..8f3694986c 100644 --- a/tests/integration/testdata/sync/infra/template-python-auto-skip.yaml +++ b/tests/integration/testdata/sync/infra/template-python-auto-skip.yaml @@ -16,7 +16,7 @@ Resources: Properties: CodeUri: after/Python/function/ Handler: app.lambda_handler - Runtime: python3.7 + Runtime: python3.11 Layers: - Ref: HelloWorldLayer Tracing: Active @@ -40,9 +40,9 @@ Resources: Description: Hello World Layer ContentUri: after/Python/layer/ CompatibleRuntimes: - - python3.7 + - python3.11 Metadata: - BuildMethod: python3.7 + BuildMethod: python3.11 HelloStepFunction: Type: AWS::Serverless::StateMachine diff --git a/tests/integration/testdata/sync/infra/template-python-before.yaml b/tests/integration/testdata/sync/infra/template-python-before.yaml index 2ed2834830..6167cfa57e 100644 --- a/tests/integration/testdata/sync/infra/template-python-before.yaml +++ b/tests/integration/testdata/sync/infra/template-python-before.yaml @@ -16,7 +16,7 @@ Resources: Properties: CodeUri: before/Python/function/ Handler: app.lambda_handler - Runtime: python3.7 + Runtime: python3.11 Layers: - Ref: HelloWorldLayer Tracing: Active @@ -40,9 +40,9 @@ Resources: Description: Hello World Layer ContentUri: before/Python/layer/ CompatibleRuntimes: - - python3.7 + - python3.11 Metadata: - BuildMethod: python3.7 + BuildMethod: python3.11 HelloStepFunction: Type: AWS::Serverless::StateMachine diff --git a/tests/integration/testdata/sync/nested/before/child_stack/child_child_stack/template.yaml b/tests/integration/testdata/sync/nested/before/child_stack/child_child_stack/template.yaml index eae704f536..84c06c77ad 100644 --- a/tests/integration/testdata/sync/nested/before/child_stack/child_child_stack/template.yaml +++ b/tests/integration/testdata/sync/nested/before/child_stack/child_child_stack/template.yaml @@ -24,7 +24,7 @@ Resources: # Build with nested stack already exhibits this behaviour CodeUri: ../child_functions/ Handler: child_function.lambda_handler - Runtime: python3.7 + Runtime: python3.11 Layers: - Ref: ParentLayer2 Tracing: Active diff --git a/tests/integration/testdata/sync/nested/before/child_stack/template.yaml b/tests/integration/testdata/sync/nested/before/child_stack/template.yaml index c90b60f94a..ad6c931be3 100644 --- a/tests/integration/testdata/sync/nested/before/child_stack/template.yaml +++ b/tests/integration/testdata/sync/nested/before/child_stack/template.yaml @@ -24,7 +24,7 @@ Resources: # Build with nested stack already exhibits this behaviour CodeUri: child_functions/ Handler: child_function.lambda_handler - Runtime: python3.7 + Runtime: python3.11 Layers: - Ref: ParentLayer Tracing: Active @@ -40,9 +40,9 @@ Resources: # Build with nested stack already exhibits this behaviour ContentUri: ../root_layer/ CompatibleRuntimes: - - python3.7 + - python3.11 Metadata: - BuildMethod: python3.7 + BuildMethod: python3.11 ChildChildStack: Type: AWS::Serverless::Application diff --git a/tests/integration/testdata/sync/nested/before/template.yaml b/tests/integration/testdata/sync/nested/before/template.yaml index ebe0cafc9e..13ec472411 100644 --- a/tests/integration/testdata/sync/nested/before/template.yaml +++ b/tests/integration/testdata/sync/nested/before/template.yaml @@ -19,7 +19,7 @@ Resources: Properties: CodeUri: root_function/ Handler: root_function.lambda_handler - Runtime: python3.7 + Runtime: python3.11 Layers: - Ref: HelloWorldLayer Tracing: Active @@ -31,9 +31,9 @@ Resources: Description: Hello World Layer ContentUri: root_layer/ CompatibleRuntimes: - - python3.7 + - python3.11 Metadata: - BuildMethod: python3.7 + BuildMethod: python3.11 ChildStack: Type: AWS::Serverless::Application diff --git a/tests/integration/testdata/sync/nested_intrinsics/before/child_stack/child_function/template.yaml b/tests/integration/testdata/sync/nested_intrinsics/before/child_stack/child_function/template.yaml index 75488615f7..edd463aa18 100644 --- a/tests/integration/testdata/sync/nested_intrinsics/before/child_stack/child_function/template.yaml +++ b/tests/integration/testdata/sync/nested_intrinsics/before/child_stack/child_function/template.yaml @@ -16,7 +16,7 @@ Resources: Properties: CodeUri: function/ Handler: function.lambda_handler - Runtime: python3.7 + Runtime: python3.11 Layers: - Ref: Layer Tracing: Active \ No newline at end of file diff --git a/tests/integration/testdata/sync/nested_intrinsics/before/child_stack/child_layer/template.yaml b/tests/integration/testdata/sync/nested_intrinsics/before/child_stack/child_layer/template.yaml index 2313c0bf7d..5c8a07432b 100644 --- a/tests/integration/testdata/sync/nested_intrinsics/before/child_stack/child_layer/template.yaml +++ b/tests/integration/testdata/sync/nested_intrinsics/before/child_stack/child_layer/template.yaml @@ -14,9 +14,9 @@ Resources: Description: Hello World Layer ContentUri: layer/ CompatibleRuntimes: - - python3.7 + - python3.11 Metadata: - BuildMethod: python3.7 + BuildMethod: python3.11 Outputs: LayerName: