Now, maybe just create a dataproc cluster using the following command:
gcloud dataproc clusters create $CLUSTERNAME \
--project $PROJECT \
--num-workers $WORKERS \
--bucket $BUCKET \
--metadata startup-script-url=gs://$BUCKET/setup/setup_env.sh,BUCKET=$BUCKET \
--master-machine-type $VMMASTER \
--worker-machine-type $VMWORKER \
--initialization-actions \
gs://dataproc-initialization-actions/datalab/datalab.sh \
--scopes cloud-platform
, script: https://github.com/kanjih-ciandt/script-dataproc-datalab/tree/master