gcloud auth list
gcloud config set account EMAIL
Last active
May 6, 2019 15:01
-
-
Save frytg/8fc5d1a2ad0313e0ee13d9cf8a38c6e4 to your computer and use it in GitHub Desktop.
Google Cloud
gsutil -m setmeta -r -h "Cache-Control:public, max-age=86000" -h "Content-Disposition" gs://BUCKET/SERVICE/img/*
gsutil -m setmeta -r -h "Cache-Control:privat" -h "Content-Disposition" gs://BUCKET/SERVICE/img/*
gsutil -m rsync local gs://remote
gsutil defacl ch -u AllUsers:R gs://example-bucket
gsutil cors set LOCAL_CORS_FILE gs://
- Make Logging Bucket
gsutil mb -p PROJECT -c regional -l europe-west3 gs://example-logs-bucket
- Allow Access
gsutil acl ch -g cloud-storage-analytics@google.com:W gs://example-logs-bucket
- Make stuff private
gsutil defacl set project-private gs://example-logs-bucket
- Enable Logging
gsutil logging set on -b gs://example-logs-bucket [-o log_object_prefix ] gs://example-bucket
- Double check
gsutil logging get gs://example-bucket
- Make BigQuery table
- Import "Create from source"
- Skip first row
- Enter destination
- DONE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment