aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • Platforms

How To Create A Bucket And Manage Its Lifecycle In GCP

  • root
  • August 12, 2019
  • 3 minute read

Overview

Lifecycle is useful if you want to manage how the objects live in the bucket. An example is after 30 days you want your object(s) to be archived in the “Nearline” storage class, then after another 30 days moved to “Coldline”, which have less storage cost when compared to “Regional” and “Multi-Regional”.

 


Partner with aster.cloud
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

Prerequisites

  • GCP Account that can access the GCP Cloud Console
  • IAM Account should be to manage Cloud Storage (e.g. Storage Admin)

 

Cloud Storage Creation

01. Login to the Google Cloud Console at https://console.cloud.google.com/

 

02. On the Navigation Menu, under “Storage” section, select “Storage” > “Browser”.

 

03. A list of existing Buckets will be shown if there are any. If empty, select the “Create bucket” button.

 

04. A step-by-step form will be shown where you have to enter the following details. The 1st section will ask to enter the Bucket Name.

 

Bucket Name Name of the bucket. Note this is a globally unique name. If another bucket with the name already exist, even if from a different account, it will be unavailable for use.

Example: zo-geek-bucket

 

05. Next is to select the Storage Class and Location.

 

Storage Class Options:

— Multi-Regional

— Regional

— Nearline

— Coldline

Regional if you want your data to reside within only the selected region in the “Location” selected.

Multi-Regional is used when your content needs to be accessed from multiple regions. Is more costly than “Regional”

Nearline are best used if the objects needed to be accessed like once a month. The storage cost for Nearline is less than Regional and Multi-Regional, but the retrieval price is more. Use this for data lakes and backups.

Coldline has the lowest storage cost but the highest access cost. Best used for storing archive like document retention and compliance.

Example: Regional

Location Depending on the “Storage Class” selected. The choices here are different. Select the location where the data will be accessed.

Example: asia-southeast1 (Singapore)

 

06. Next is to configure Access control model

 

07. The last section is Advanced Settings.

Encryption Options

— Google-managed key

— Customer-managed key

Data-at-rest at the Bucket are encrypted. If you want to select your own key, you can select “Customer-managed key” and choose from your own keys that have been added at the Cloud Key Management service. Choosing “Google-managed key” will let GCP create and manage the key.

Retention Policy Selecting the retention policy will set a duration on how long before the objects can be deleted. This provides protection from accidental deletion or modification after uploaded.
Labels Key-value pairs used for grouping related info. Can be used for filtering resources.

 

08. Review the details then select the “Create” button.

 

09. Once created, the view will look something like the following. You can then upload files and folders directly from the web console or use the SDK to perform programmatic interaction with the bucket. To get started with GCP SDK on Ubuntu view this guide.

 

Managing Lifecycle

Object lifecycle can be managed. This is useful if you want to keep archive or backups and want to do it automatically.

 

01. On the Buckets list. Select the Bucket that will be updated it’s Lifecycle.

 

02. On the bucket details, select the “Bucket Lock” tab. Then select “Add lifecycle rule” button.

 

03. You will need to specify the condition for the object and what actions will be done if the conditions are met.

 

CONDITIONS
Age Specifies the number of days the object has lived in the bucket.
Creation date All objects created on or before the specified date.
Storage class Depends on the storage class of the object.
Newer versions The number of versions the object has. Example, if “2” is specified, this means that if the object has been updated 2 times then it meets the condition.
Live state Options:

— Live

— Archived

Note that the term “Live” means that this is the active or latest version of the object.

ACTION Options:

— Set to Nearline

— Set to Coldline

— Delete

Changes the object storage class to “Nearline” or “Coldline” or even deletes the object. Sample use case is after “30” days change the storage class of the Object to Nearline. Then another is that when “Nearline” objects reached “60” days set the storage class to “Coldline”.

 

04. Confirm each section (Conditions and Actions), by selecting the “Continue” button. Then select the “Save” button on the bottom.

 

05. The Lifecycle rule for the bucket will now be updated.

Below is an example of rules assigned to the Bucket that sets the storage class from Regional to Nearline after 30 days, then after another 30 days to Coldline.

Read More  Microsoft Build 2019 | Simplifying blockchain development with Azure Blockchain Service

For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

root

Related Topics
  • Bucket
  • GCP
  • Google Cloud
  • Objects
You May Also Like
Google Cloud and Smart Communications
View Post
  • Platforms
  • Technology

Smart Communications, Inc. Dials into Google Cloud AI to Help Personalize Digital Services for Filipinos

  • October 25, 2024
View Post
  • Platforms
  • Public Cloud

Empowering builders with the new AWS Asia Pacific (Malaysia) Region

  • August 30, 2024
Red Hat and Globe Telecoms
View Post
  • Platforms
  • Technology

Globe Collaborates with Red Hat Open Innovation Labs to Modernize IT Infrastructure for Greater Agility and Scalability

  • August 19, 2024
Huawei Cloud Cairo Region Goes Live
View Post
  • Cloud-Native
  • Computing
  • Platforms

Huawei Cloud Goes Live in Egypt

  • May 24, 2024
Asteroid
View Post
  • Computing
  • Platforms
  • Technology

Asteroid Institute And Google Cloud Identify 27,500 New Asteroids, Revolutionizing Minor Planet Discovery With Cloud Technology

  • April 30, 2024
IBM
View Post
  • Hybrid Cloud
  • Platforms

IBM To Acquire HashiCorp, Inc. Creating A Comprehensive End-to-End Hybrid Cloud Platform

  • April 24, 2024
View Post
  • Platforms
  • Technology

Canonical Delivers Secure, Compliant Cloud Solutions for Google Distributed Cloud

  • April 9, 2024
Redis logo
View Post
  • Platforms
  • Software

Redis Moves To Source-Available Licenses

  • April 2, 2024

Stay Connected!
LATEST
  • college-of-cardinals-2025 1
    The Definitive Who’s Who of the 2025 Papal Conclave
    • May 7, 2025
  • conclave-poster-black-smoke 2
    The World Is Revalidating Itself
    • May 6, 2025
  • 3
    Conclave: How A New Pope Is Chosen
    • April 25, 2025
  • Getting things done makes her feel amazing 4
    Nurturing Minds in the Digital Revolution
    • April 25, 2025
  • 5
    AI is automating our jobs – but values need to change if we are to be liberated by it
    • April 17, 2025
  • 6
    Canonical Releases Ubuntu 25.04 Plucky Puffin
    • April 17, 2025
  • 7
    United States Army Enterprise Cloud Management Agency Expands its Oracle Defense Cloud Services
    • April 15, 2025
  • 8
    Tokyo Electron and IBM Renew Collaboration for Advanced Semiconductor Technology
    • April 2, 2025
  • 9
    IBM Accelerates Momentum in the as a Service Space with Growing Portfolio of Tools Simplifying Infrastructure Management
    • March 27, 2025
  • 10
    Tariffs, Trump, and Other Things That Start With T – They’re Not The Problem, It’s How We Use Them
    • March 25, 2025
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • 1
    IBM contributes key open-source projects to Linux Foundation to advance AI community participation
    • March 22, 2025
  • 2
    Co-op mode: New partners driving the future of gaming with AI
    • March 22, 2025
  • 3
    Mitsubishi Motors Canada Launches AI-Powered “Intelligent Companion” to Transform the 2025 Outlander Buying Experience
    • March 10, 2025
  • PiPiPi 4
    The Unexpected Pi-Fect Deals This March 14
    • March 13, 2025
  • Nintendo Switch Deals on Amazon 5
    10 Physical Nintendo Switch Game Deals on MAR10 Day!
    • March 9, 2025
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.