mirror of
https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
synced 2026-09-26 14:42:04 +00:00
Manual Changes-Updated the cell by replacing 'gsutil copy' with the correct 'gcloud storage cp'
This commit is contained in:
+3
-3
@@ -436,10 +436,10 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"! # Note: Migrating scripts using gsutil iam ch is more complex than get or set. You need to replace the single iam ch command with a series of gcloud storage bucket add-iam-policy-binding and/or gcloud storage bucket remove-iam-policy-binding commands, or replicate the read-modify-write loop.\n",
|
||||
|
||||
"! gcloud storage buckets add-iam-policy-binding $BUCKET_URI --member=serviceAccount:{SERVICE_ACCOUNT} --role=roles/storage.objectCreator\n", "\n",
|
||||
# Note: Migrating scripts using gsutil iam ch is more complex than get or set. You need to replace the single iam ch command with a series of gcloud storage bucket add-iam-policy-binding and/or gcloud storage bucket remove-iam-policy-binding commands, or replicate the read-modify-write loop.
|
||||
! gcloud storage buckets add-iam-policy-binding $BUCKET_URI --member=serviceAccount:{SERVICE_ACCOUNT} --role=roles/storage.objectViewer ]
|
||||
|
||||
"! gcloud storage buckets add-iam-policy-binding $BUCKET_URI --member=serviceAccount:{SERVICE_ACCOUNT} --role=roles/storage.objectViewer" ]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
|
||||
@@ -591,7 +591,7 @@
|
||||
"TRAINING_DATASET = f\"{INPUT_GS_PATH}/churn_bp_insample.csv\"\n",
|
||||
"TRAINING_DATASET_FORMAT = \"csv\"\n",
|
||||
"\n",
|
||||
|
||||
"# TODO: Command "gsutil copy" not found in migration guide. Manual review required."
|
||||
"! gcloud storage cp $PUBLIC_TRAINING_DATASET $TRAINING_DATASET" ]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user