Lambda
Real function execution — Python locally, Docker for other runtimes — with layers, versions, aliases, event source mappings, and Function URLs.
Quick start
import boto3, io, zipfile
zf = io.BytesIO()
with zipfile.ZipFile(zf, "w") as z:
z.writestr("app.py", "def handler(e, c): return {'ok': True}")
lam = boto3.client("lambda", endpoint_url="http://localhost:4566",
region_name="us-east-1",
aws_access_key_id="test", aws_secret_access_key="test")
lam.create_function(FunctionName="f", Runtime="python3.11",
Role="arn:aws:iam::000000000000:role/r",
Handler="app.handler", Code={"ZipFile": zf.getvalue()})
print(lam.invoke(FunctionName="f")["Payload"].read())
Supported operations
48 operations exposed by this service as of MiniStack 1.3.14. Extracted directly from the handler dispatch in the source module.
create_alias
create_esm
create_function
create_function_url_config
DELETE
delete_alias
delete_esm
delete_event_invoke_config
delete_function
delete_function_concurrency
delete_function_url_config
delete_layer_version
delete_provisioned_concurrency
GET
get_account_settings
get_alias
get_docker_client
get_esm
get_event_invoke_config
get_func_record_for_qualifier
get_function
get_function_concurrency
get_function_config
get_function_url_config
get_layer_version
get_layer_version_by_arn
get_layer_version_policy
get_policy
get_provisioned_concurrency
list_aliases
list_esms
list_function_event_invoke_configs
list_function_url_configs
list_functions
list_layer_versions
list_layers
list_tags
list_versions
POST
PUT
put_event_invoke_config
put_function_concurrency
put_provisioned_concurrency
update_alias
update_code
update_config
update_esm
update_function_url_config
CloudFormation
The CloudFormation engine provisions these resource types via this service:
AWS::Lambda::Function
AWS::Lambda::Version
AWS::Lambda::Alias
AWS::Lambda::Permission
AWS::Lambda::Layer
AWS::Lambda::EventSourceMapping
See CloudFormation engine for intrinsic support and lifecycle details.
Known limitations
- CloudWatch metrics (Invocations, Errors, Duration, Throttles) are not emitted.
- SnapStart is not implemented — requests succeed as if disabled.
- LAMBDA_STRICT=1 requires Docker; without Docker you'll hit Runtime.DockerUnavailable.
Source
ministack/services/lambda_svc.py:542-591
Read the source to verify the ops list above — dispatch tables and handler functions are the ground truth.