DocsAWS 101BlogServices

Lambda

Real function execution — Python locally, Docker for other runtimes — with layers, versions, aliases, event source mappings, and Function URLs.

REST-JSON multi-tenant 52 operations

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

52 operations exposed by this service as of MiniStack 1.4.6. Extracted directly from the handler dispatch in the source module.

AddLayerVersionPermission AddPermission CheckpointDurableExecution CreateAlias CreateEventSourceMapping CreateFunction CreateFunctionUrlConfig DeleteAlias DeleteEventSourceMapping DeleteFunction DeleteFunctionConcurrency DeleteFunctionUrlConfig DeleteLayerVersion GetAlias GetDurableExecution GetDurableExecutionHistory GetDurableExecutionState GetEventSourceMapping GetFunction GetFunctionCodeSigningConfig GetFunctionConcurrency GetFunctionConfiguration GetFunctionEventInvokeConfig GetFunctionUrlConfig GetLayerVersion GetLayerVersionByArn GetLayerVersionPolicy GetPolicy ListAliases ListDurableExecutionsByFunction ListEventSourceMappings ListFunctions ListFunctionUrlConfigs ListLayers ListLayerVersions ListTags ListVersionsByFunction PublishLayerVersion PublishVersion PutFunctionConcurrency PutFunctionEventInvokeConfig RemoveLayerVersionPermission RemovePermission RequestResponse StopDurableExecution TagResource UntagResource UpdateAlias UpdateEventSourceMapping UpdateFunctionCode UpdateFunctionConfiguration UpdateFunctionUrlConfig

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

Read the source to verify the ops list above — dispatch tables and handler functions are the ground truth.