@@ -698,10 +698,7 @@ def wait_for_callback(
698698
699699 # Timeout reached
700700 elapsed = time .time () - start_time
701- msg = (
702- f"Callback did not available within { timeout } s "
703- f"(elapsed: { elapsed :.1f} s."
704- )
701+ msg = f"Callback did not available within { timeout } s (elapsed: { elapsed :.1f} s."
705702 raise TimeoutError (msg )
706703
707704
@@ -850,26 +847,20 @@ def stop(self) -> None:
850847 self ._executor = None
851848
852849 def _create_boto3_client (self ) -> Any :
853- """Create boto3 client for lambdainternal service.
850+ """Create boto3 client for Lambda service.
854851
855- Configures AWS data path and creates a boto3 client with the
856- local runner endpoint and region from configuration.
852+ Creates a boto3 client with the local runner endpoint and region from configuration.
857853
858854 Returns:
859- Configured boto3 client for lambdainternal service
855+ Configured boto3 client for Lambda service
860856
861857 Raises:
862858 Exception: If client creation fails - exceptions propagate naturally
863859 for CLI to handle as general Exception
864860 """
865- # Set up AWS data path for boto models
866- package_path = os .path .dirname (aws_durable_execution_sdk_python .__file__ )
867- data_path = f"{ package_path } /botocore/data"
868- os .environ ["AWS_DATA_PATH" ] = data_path
869-
870861 # Create client with Lambda endpoint configuration
871862 return boto3 .client (
872- "lambdainternal " ,
863+ "lambda " ,
873864 endpoint_url = self ._config .lambda_endpoint ,
874865 region_name = self ._config .local_runner_region ,
875866 )
@@ -904,14 +895,9 @@ def __init__(
904895 self .lambda_endpoint = lambda_endpoint
905896 self .poll_interval = poll_interval
906897
907- # Set up AWS data path for custom boto models (durable execution fields)
908- package_path = os .path .dirname (aws_durable_execution_sdk_python .__file__ )
909- data_path = f"{ package_path } /botocore/data"
910- os .environ ["AWS_DATA_PATH" ] = data_path
911-
912898 client_config = boto3 .session .Config (parameter_validation = False )
913899 self .lambda_client = boto3 .client (
914- "lambdainternal " ,
900+ "lambda " ,
915901 endpoint_url = lambda_endpoint ,
916902 region_name = region ,
917903 config = client_config ,
@@ -1154,10 +1140,7 @@ def wait_for_callback(
11541140
11551141 # Timeout reached
11561142 elapsed = time .time () - start_time
1157- msg = (
1158- f"Callback did not available within { timeout } s "
1159- f"(elapsed: { elapsed :.1f} s."
1160- )
1143+ msg = f"Callback did not available within { timeout } s (elapsed: { elapsed :.1f} s."
11611144 raise TimeoutError (msg )
11621145
11631146 def _fetch_execution_history (
0 commit comments