Mounting folder into workspace

Hello everyone, I'm trying to set up a new workspace that should also include a folder from the host which contains a database dump so we can develop using the same data as in production. As the dump is rather big, I don't want to simply run COPY to add it to the Workspace.

I've added this to my main.tf:
  volumes{
    container_path = "/home/${local.username}/database_dump/"
    host_path      = "/host/path/to/database_dump"
    read_only      = false
    volume_name   = "coder-${data.coder_workspace.me.id}-database"
  }

When creating the workspace, the folder /home/${local.username}/database_dump/ is created, but empty.

What am I missing here?
Was this page helpful?