All skills
Skillintermediate
/configure-gcs - Configure Google Cloud Storage
Create and configure a GCS bucket with proper security settings.
Claude Code Knowledge Pack7/10/2026
Overview
/configure-gcs - Configure Google Cloud Storage
Create and configure a GCS bucket with proper security settings.
Steps
- Ask the user for the bucket purpose: storage, hosting, backups, data lake
- Choose the storage class: Standard, Nearline, Coldline, or Archive based on access patterns
- Select the location: region, dual-region, or multi-region based on requirements
- Configure uniform bucket-level access (recommended over ACLs)
- Set up default encryption with Google-managed or customer-managed keys
- Configure lifecycle rules: transition to cheaper storage classes, delete old objects
- Enable object versioning for data protection
- Set up CORS configuration for web application access
- Configure IAM bindings with least-privilege access for service accounts
- Set up Pub/Sub notifications for object change events if needed
- Generate the Terraform or gcloud commands for bucket creation
- Document: bucket name, location, storage class, lifecycle rules, access policy
Rules
- Always enable uniform bucket-level access over legacy ACLs
- Choose the storage class based on actual access frequency
- Enable versioning for buckets containing important or user-generated data
- Set lifecycle rules to transition to cheaper storage after access decreases
- Use customer-managed encryption keys for sensitive data
- Configure retention policies for compliance requirements
- Avoid public access unless serving static website content