diff --git a/notebooks/community/model_garden/model_garden_movinet_action_recognition.ipynb b/notebooks/community/model_garden/model_garden_movinet_action_recognition.ipynb index ed4897897..9469b9d3b 100644 --- a/notebooks/community/model_garden/model_garden_movinet_action_recognition.ipynb +++ b/notebooks/community/model_garden/model_garden_movinet_action_recognition.ipynb @@ -192,7 +192,7 @@ "\n", "\n", "# Provision permissions to the SERVICE_ACCOUNT with the GCS bucket\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.\n", + "! gcloud storage buckets add-iam-policy-binding $BUCKET_NAME --member=serviceAccount:{SERVICE_ACCOUNT} --role=roles/storage.admin\n", "\n", "! gcloud config set project $PROJECT_ID\n", "! gcloud projects add-iam-policy-binding --no-user-output-enabled {PROJECT_ID} --member=serviceAccount:{SERVICE_ACCOUNT} --role=\"roles/storage.admin\"\n", diff --git a/notebooks/community/model_garden/model_garden_phi3_deployment.ipynb b/notebooks/community/model_garden/model_garden_phi3_deployment.ipynb index 4767d00b3..f90a61a44 100644 --- a/notebooks/community/model_garden/model_garden_phi3_deployment.ipynb +++ b/notebooks/community/model_garden/model_garden_phi3_deployment.ipynb @@ -183,7 +183,7 @@ "\n", "\n", "# Provision permissions to the SERVICE_ACCOUNT with the GCS bucket\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 buckets add-iam-policy-binding and/or gcloud storage buckets remove-iam-policy-binding commands, or replicate the read-modify-write loop.\n", + "! gcloud storage buckets add-iam-policy-binding $BUCKET_NAME --member=serviceAccount:{SERVICE_ACCOUNT} --role=roles/storage.admin\n", "\n", "! gcloud config set project $PROJECT_ID\n", "! gcloud projects add-iam-policy-binding --no-user-output-enabled {PROJECT_ID} --member=serviceAccount:{SERVICE_ACCOUNT} --role=\"roles/storage.admin\"\n", diff --git a/notebooks/official/model_monitoring/batch_prediction_model_monitoring.ipynb b/notebooks/official/model_monitoring/batch_prediction_model_monitoring.ipynb index 64cd1db69..b1ccff492 100644 --- a/notebooks/official/model_monitoring/batch_prediction_model_monitoring.ipynb +++ b/notebooks/official/model_monitoring/batch_prediction_model_monitoring.ipynb @@ -591,8 +591,8 @@ "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. - "! gsutil copy $PUBLIC_TRAINING_DATASET $TRAINING_DATASET" ] + + "! gcloud storage cp $PUBLIC_TRAINING_DATASET $TRAINING_DATASET" ] }, { "cell_type": "markdown",