Create

Create an AWS Lambda function

tapit create lambda name=function_name runtime=python3.12 [handler=handler.handler] [function_code=CODE] | docker_tag=TAG) [description='desc'] [memory_mb=128] [timeout_seconds=30] [--ignore-existing]

Required

  • name

Parameters

  • name: Name for the Lambda function (required)
  • runtime: Lambda runtime (e.g., python3.12, nodejs18.x) - required for zip deployment
  • handler: Handler function (default: handler.handler)
  • function_code: Inline function code
  • docker_tag: Docker image tag for container-based Lambda
  • description: Description of the function
  • memory_mb: Memory allocation in MB (default: 128)
  • timeout_seconds: Function timeout in seconds (default: 30)
  • --ignore-existing: Skip creation if a resource with the same name already exists (useful for idempotent scripts)