GCP Classroom notes 14/Sep/2024

Object Storage in Google Cloud

  • This is an object store for binary and object data, blobs and unstructured data.
  • object storage use cases include
    • applications that needs to highly available and durable service images and documents (Website)
    • large amounts of data (genomics and data analytics)
    • backups and archives
  • In Google cloud storage we create buckets to organize the objects, Each buckets name should be unique and it will be accessed over http(s)
  • Storage classes:
    • Standard buckets: for high performances, frequent access and highest availability
      • Regional or dual-regional locations
      • Multi-region, for serving content globally
    • Nearline: for data accessed less than once a month
    • Coldline: for data access roughly less than a quarter
    • Archive: for data that you put away for years
  • Cloud Storage service doesnot provide any filesystem.

Lets create GCS bucket

  • For screenshot refer video
  • Refer Here for bucket naming contstraints
  • Options




  • Now we can create folders or upload objects(files) in the bucket

GCS Bucket activities from cli

  • Create a bucket from cli
gcloud storage buckets create gs://lt-bucket-learning --no-public-access-prevention
  • Lets upload an file to the bucket
gsutil cp gcp1.png  gs://lt-bucket-learning/
  • Lets try uploading the whole folder into gcp bucket
 gsutil cp -r .\Images\  gs://lt-bucket-learning/Images

Bucket Versions

  • GCS supports versioning on your bucket. This feature keeps multiple versions of an object

Lifecycle Management

  • GCS supports lifecycle policies to automatically transition objects to differnt storage classes, delete them, perform actions based on conditions like age, creation data, storage classes

Logging and Monitoring

  • GCS integrates with Cloud monitoring and logging to provide detailed logs of access, errors and performance metrics

Other Features

  • Cloud CDN integration
  • Resumable uploads
  • Parallel Composite Uplods
  • JSON and XML APIs
  • Fine grained Access controls

Configuring Bucket Permissions

  • Setup bucket level IAM Permissions to control access GCS Bucket
  • Permission at IAM LEVEL for the GCP Project
  • Permissions at bucket level
  • Permission at object level
  • The permissions can be given to service accounts, where the key has to be downloaded and can be used with cli or programmatic access
  • Refer class room video for
    • Lifecycle Transitions
    • Cross region replications
    • Website hosting Refer Here
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Floating Social Media Icons by Acurax Wordpress Designers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%