Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions src/aws_durable_execution_sdk_python/lambda_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,11 +862,19 @@ def initialize_local_runner_client() -> LambdaClient:
@staticmethod
def initialize_from_env() -> LambdaClient:
LambdaClient.load_preview_botocore_models()
client = boto3.client(
"lambdainternal",
)

logger.debug("Initialized lambda client")
"""
TODO - we can remove this when were using the actual lambda client,
but we need this with the preview model because boto won't match against lambdainternal.
"""
endpoint_url = os.getenv("AWS_ENDPOINT_URL_LAMBDA", None)
if not endpoint_url:
client = boto3.client(
"lambdainternal",
)
else:
client = boto3.client("lambdainternal", endpoint_url=endpoint_url)

return LambdaClient(client=client)

def checkpoint(
Expand Down