I am using terraform to zip a folder as below code.
data "archive_file" "src" {
type = "zip"
source_dir = "dist"
output_path = ".build/src.zip"
}
It creates the zip file src.zip in .build directory. But the src.zip doesn't include the root folder which is dist. How can I zip the folder include the folder itself?