How to update GCS bucket file permission using gsutil command?
# gsutil acl ch -u AllUsers:R gs://<BUCKET_NAME>/static/google-cloud.png Updated ACL on gs://<BUCKET_NAME>/static/google-cloud.png
# gsutil acl ch -u AllUsers:R gs://<BUCKET_NAME>/static/google-cloud.png Updated ACL on gs://<BUCKET_NAME>/static/google-cloud.png
#export COMPUTE_SVC_ACCOUNT=$(gcloud iam service-accounts list –filter=”displayName:’Compute Engine default service account’” –format=’value(email)’) # gsutil iam ch serviceAccount:$COMPUTE_SVC_ACCOUNT:objectAdmin gs://<BUCKET_NAME>
# gsutil cp dir/* gs://<BUCKET_NAME>
# gsutil mb gs://<BUCKET_NAME>