File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -259,10 +259,17 @@ def create_deployment_package(example_name: str) -> Path:
259259
260260 zip_path = Path (__file__ ).parent / f"{ example_name } .zip"
261261 with zipfile .ZipFile (zip_path , "w" , zipfile .ZIP_DEFLATED ) as zf :
262+ # Add SDK dependencies
262263 for file_path in build_dir .rglob ("*" ):
263- if file_path .is_file ():
264+ if file_path .is_file () and not file_path . is_relative_to ( build_dir / "src" ) :
264265 zf .write (file_path , file_path .relative_to (build_dir ))
265266
267+ # Add example files at root level
268+ src_dir = build_dir / "src"
269+ for file_path in src_dir .rglob ("*" ):
270+ if file_path .is_file ():
271+ zf .write (file_path , file_path .relative_to (src_dir ))
272+
266273 return zip_path
267274
268275
@@ -331,7 +338,7 @@ def deploy_function(example_name: str, function_name: str | None = None):
331338 "Description" : example_config ["description" ],
332339 "Timeout" : 60 ,
333340 "MemorySize" : 128 ,
334- "Environment" : {"Variables" : {"DEX_ENDPOINT " : config ["lambda_endpoint" ]}},
341+ "Environment" : {"Variables" : {"AWS_ENDPOINT_URL_LAMBDA " : config ["lambda_endpoint" ]}},
335342 "DurableConfig" : example_config ["durableConfig" ],
336343 }
337344
You can’t perform that action at this time.
0 commit comments