GCP storage skill (stub). Use when: (1) storing objects in Cloud Storage — buckets, lifecycle, versioning, signed URLs,
Status: stub. Production depth pending.
| Area | Service |
|---|---|
| Object storage | Cloud Storage (buckets, objects, versioning) |
| Storage classes | Standard, Nearline, Coldline, Archive |
| File systems | Filestore (NFSv3/v4.1), Filestore Enterprise |
| Bulk transfer | Storage Transfer Service, Transfer Appliance |
| Backup | Backup and DR Service |
# Create bucket in SA region, uniform access, default encryption
gcloud storage buckets create gs://my-raw-uploads \
--location africa-south1 \
--uniform-bucket-level-access \
--public-access-prevention
# Lifecycle: auto-move objects >30d to Nearline, >365d to Coldline
gcloud storage buckets update gs://my-raw-uploads \
--lifecycle-file=lifecycle.json
# Signed URL (V4) for time-limited client upload (skip your server)
gcloud storage sign-url gs://my-raw-uploads/incoming/file.pdf \
--duration=1h --http-verb=PUT
| Class | Min storage duration | Best for |
|---|---|---|
| Standard | none | Frequently accessed |
| Nearline | 30 days | Monthly access |
| Coldline | 90 days | Quarterly access |
| Archive | 365 days | Annual access, compliance |
Retrieval costs grow as classes get colder. Lifecycle rules auto-transition.
gs://bucket-name must be globally unique across all GCP projects.us-east1 buckets can't be accessed from us-east4 without egress costs. Same-region compute + storage is essential.