File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
google-auth-library-java/scripts Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,18 +74,18 @@ service_account_email=""
7474gcloud config set project ${project_id}
7575
7676# Create the GCS bucket.
77- gsutil mb -b on -l us-east1 gs://${bucket_id}
77+ gcloud storage buckets create gs://${bucket_id} --uniform-bucket-level-access --location us-east1
7878
7979# Give the specified service account the objectAdmin role for this bucket.
80- gsutil iam ch serviceAccount: ${service_account_email} :objectAdmin gs://${bucket_id}
80+ gcloud storage buckets add-iam-policy-binding gs://${bucket_id} --member=serviceAccount: ${service_account_email} --role=roles/storage.objectAdmin
8181
8282# Create both objects.
8383echo " first" >> ${first_object}
8484echo " second" >> ${second_object}
8585
8686# Upload the created objects to the bucket.
87- gsutil cp ${first_object} gs://${bucket_id}
88- gsutil cp ${second_object} gs://${bucket_id}
87+ gcloud storage cp ${first_object} gs://${bucket_id}
88+ gcloud storage cp ${second_object} gs://${bucket_id}
8989
9090echo " Bucket ID: " ${bucket_id}
9191echo " First object ID: " ${first_object}
You can’t perform that action at this time.
0 commit comments