Manual Changes-Updated the cell by replacing 'gsutil copy' with the correct 'gcloud storage cp'

This commit is contained in:
bhandarivijay
2025-12-11 17:42:21 +00:00
parent 9c55a00b1e
commit 175eaa4fe8
2 changed files with 4 additions and 4 deletions
@@ -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" ]
},
{