Basic Bucket Operations
You'll learn how to create, list, and delete buckets using three different methods: the web console, command-line tools, and code-based SDKs.
Why Bucket Operations Matter
Think of buckets like filing cabinets in an office. Before storing any documents (objects), you need to set up the cabinet itself. Basic bucket operations are the foundation of working with object storage—you'll perform these actions constantly when managing cloud storage.
The Three Ways to Manage Buckets
Console (Web Interface)
The visual, point-and-click method. You navigate to your cloud provider's storage service, click "Create Bucket," enter a name, choose a region, and confirm. Listing buckets shows them in a dashboard view. Deleting requires clicking the bucket and selecting "Delete" (only works on empty buckets).
CLI (Command-Line Interface)
Tools like AWS CLI, Azure CLI, or gsutil let you script operations. For example, you'd run commands like create-bucket my-bucket-name, list-buckets, or delete-bucket my-bucket-name directly from your terminal. This approach is faster for repetitive tasks.
SDK (Software Development Kit)
Languages like Python, JavaScript, or Go provide libraries to manage buckets programmatically within applications. Your code calls functions like create_bucket(), list_buckets(), or delete_bucket() with proper authentication configured.
Permissions Are Essential
Every method requires proper permissions assigned to your user or service account. Without "create bucket" permission, your request fails regardless of which tool you use. Cloud providers use identity and access management (IAM) to control who can perform these operations.
Key Takeaway: Creating, listing, and deleting buckets are foundational operations available through console, CLI, and SDK—but all require explicit permissions to execute successfully.