Archive_file flat

I am using archive_file to help deploy a cloud function v2 in GCP.

data "archive_file" "steampipe" {
  type        = "zip"
  source_dir  = "${path.module}/config/steampipe-import/cloudfunction/"
  output_path = "${path.module}/config/steampipe-import/"

When the deployment is through the resulting container shows an unpacked tree:


When I manually pack my with:

# cd  ./config/steampipe-import/cloudfunction/
# zip * templates/*
updating: (deflated 73%)
updating: requirements.txt (deflated 34%)
updating: templates/ (stored 0%)
  adding: templates/notification.html.j2 (deflated 34%)
  adding: templates/notification.text.j2 (deflated 23%)

this results in a tree:


This tree results in a working cloud function, while the cloud function packed with the terraform provider results in requirements not being installed.

Does anyone know how to create a .zip with a flatter structure? As far as I understand there is no option to set a CWD for this action.