### Is there an existing issue for this?

- [X] I have searched the existing issues

### Feature description

Basically we want to only run the lambda when an insert is occurring in DynamoDB.
I tested using Dynobase deleting a record and the lambda still triggered.

```
resource "aws_lambda_event_source_mapping" "event-log" {
	event_source_arn  = aws_dynamodb_table.event-log.stream_arn
	function_name     = module.main.lambda-arn
	starting_position = "LATEST"
	enabled = true # change to false when truncating the table in localstack
	maximum_retry_attempts = 1 # limit retry on failure to 1 for now

	# https://dev.to/aws-builders/filtering-dynamodb-streams-before-lambda-p5p
	filter_criteria { # Doesn't seem to work on LocalStack for now
		filter {
			pattern = jsonencode({
				body = {
					eventName : ["INSERT"]
				}
			})
		}
	}
}
```


### 🧑‍💻 Implementation

_No response_

### Anything else?

 https://dev.to/aws-builders/filtering-dynamodb-streams-before-lambda-p5p
raise Exception(msg % config.BUCKET_MARKER_LOCAL)
    
    LAMBDA_EXECUTOR.cleanup(lambda_arn)
    if is_local_mount:
        
        
        
        
        lambda_details.cwd = code.get("S3Key")
        return code["S3Key"]
    
    zip_file_content = zip_file_content or get_zip_bytes(code)
    if not zip_file_content:
        return
    
    code_sha_256 = base64.standard_b64encode(hashlib.sha256(zip_file_content).digest())
    latest_version = lambda_details.get_version(VERSION_LATEST)
    latest_version["CodeSize"] = len(zip_file_content)
    latest_version["CodeSha256"] = code_sha_256.decode("utf-8")
    zip_dir_name = f"function.zipfile.{short_uid()}"
    zip_dir = f"{config.dirs.tmp}/{zip_dir_name}"
    mkdir(zip_dir)
    tmp_file = f"{zip_dir}/{LAMBDA_ZIP_FILE_NAME}"
    save_file(tmp_file, zip_file_content)
    TMP_FILES.append(zip_dir)
    lambda_details.zip_dir = zip_dir
    lambda_details.cwd = f"{get_lambda_extraction_dir()}/{zip_dir_name}"
    mkdir(lambda_details.cwd)
    return zip_dir
def set_function_code(lambda_function: LambdaFunction):