diff --git a/notebooks/community/ml_ops/stage4/get_started_with_vertex_ml_metadata_and_automl.ipynb b/notebooks/community/ml_ops/stage4/get_started_with_vertex_ml_metadata_and_automl.ipynb index 4ad30f66e..509b97b5d 100644 --- a/notebooks/community/ml_ops/stage4/get_started_with_vertex_ml_metadata_and_automl.ipynb +++ b/notebooks/community/ml_ops/stage4/get_started_with_vertex_ml_metadata_and_automl.ipynb @@ -463,8 +463,7 @@ }, "outputs": [], "source": [ - "! gsutil mb -l $REGION $BUCKET_URI" - ] + "! gcloud storage buckets create --location=$REGION $BUCKET_URI" ] }, { "cell_type": "markdown", @@ -483,8 +482,7 @@ }, "outputs": [], "source": [ - "! gsutil ls -al $BUCKET_URI" - ] + "! gcloud storage ls --all-versions --long $BUCKET_URI" ] }, { "cell_type": "markdown", @@ -685,12 +683,10 @@ "source": [ "FILE = IMPORT_FILE\n", "\n", - "count = ! gsutil cat $FILE | wc -l\n", - "print(\"Number of Examples\", int(count[0]))\n", + "count = ! gcloud storage cat $FILE | wc -l\n", "print(\"Number of Examples\", int(count[0]))\n", "\n", "print(\"First 10 rows\")\n", - "! gsutil cat $FILE | head" - ] + "! gcloud storage cat $FILE | head" ] }, { "cell_type": "markdown", @@ -1468,8 +1464,7 @@ "delete_bucket = False\n", "\n", "if delete_bucket or os.getenv(\"IS_TESTING\"):\n", - " ! gsutil rm -r $BUCKET_URI" - ] + " ! gcloud storage rm --recursive $BUCKET_URI" ] } ], "metadata": { diff --git a/notebooks/community/ml_ops/stage6/get_started_with_fastapi.ipynb b/notebooks/community/ml_ops/stage6/get_started_with_fastapi.ipynb index 5b0b85e01..7616bfb38 100644 --- a/notebooks/community/ml_ops/stage6/get_started_with_fastapi.ipynb +++ b/notebooks/community/ml_ops/stage6/get_started_with_fastapi.ipynb @@ -444,8 +444,7 @@ }, "outputs": [], "source": [ - "! gsutil mb -l $REGION $BUCKET_URI" - ] + "! gcloud storage buckets create --location=$REGION $BUCKET_URI" ] }, { "cell_type": "markdown", @@ -464,8 +463,7 @@ }, "outputs": [], "source": [ - "! gsutil ls -al $BUCKET_URI" - ] + "! gcloud storage ls --all-versions --long $BUCKET_URI" ] }, { "cell_type": "markdown", @@ -1027,8 +1025,7 @@ "MODEL_DIR=$1\n", "\n", "mkdir -p ./serve/model/\n", - "gsutil cp -r ${MODEL_DIR} ./serve/model/ \n", - "\n", + "gcloud storage cp --recursive ${MODEL_DIR} ./serve/model/ \n", "\n", "cat > ./serve/Dockerfile <