I made something to do remote vscode development on gcp a while back, using some terraform scripts to spin up and down environments: https://lockwood.dev/development/remote/2020/03/17/experimen...
It's pretty crude but hopefully will give people some ideas!