2020-12-03
gcp 開 Cloud Storage 開外部可下載
紀錄一下 Cloud Shell. (其中 acl 開全限讓外部可下載)
gcloud config set project qwiklabs-gcp-00-7717f40b97e5
export LOCATION=ASIA
gsutil mb -l $LOCATION gs://$DEVSHELL_PROJECT_ID
gsutil cp gs://cloud-training/gcpfci/my-excellent-blog.png my-excellent-blog.png
gsutil cp my-excellent-blog.png gs://$DEVSHELL_PROJECT_ID/my-excellent-blog.png
gsutil acl ch -u allUsers:R gs://$DEVSHELL_PROJECT_ID/my-excellent-blog.png
可瀏覽了
https://storage.googleapis.com/qwiklabs-gcp-00-7717f40b97e5/my-excellent-blog.png
不用 Cloud Shell 這邊設定Bucket 全開放 read