[handler].zip Instant

: Use the output_base64sha256 attribute in Terraform to ensure the ZIP file only triggers a redeployment when the underlying code has actually changed [10].

In the context of Infrastructure as Code (IaC) and cloud deployments, typically refers to the deployment package for a serverless function, most commonly an AWS Lambda function . [handler].zip

: Automatically packages files into a .serverless directory, often naming the primary artifact based on the function name, though it can be manually specified as handler.zip in the serverless.yml [8]. 4. Best Practices : Use the output_base64sha256 attribute in Terraform to

data "archive_file" "lambda_zip" { type = "zip" source_file = "${path.module}/src/handler.py" output_path = "${path.module}/dist/handler.zip" } Use code with caution. Copied to clipboard : Points to your raw script (e.g., src/handler.py ). : When zipping entire directories, always exclude local

: When zipping entire directories, always exclude local environment folders (like venv/ or node_modules/ ) and version control metadata (like .git/ ) to keep the file size under the deployment limits [10].

: The entry point file containing the function (e.g., def lambda_handler(event, context): ).