Use this when creating or securing object storage buckets.
Buckets
A bucket is the top-level container in object storage. It has a globally or account-unique name, region, access policy, versioning, lifecycle rules and object lock settings that apply to the objects inside.
1. A bucket is a namespace for objects with policies and settings.
2. Block public access by default.
3. Encryption at rest.
4. Naming rules (DNS compatible).
5. One owner/account.
bucket settings → access/encryption → objects
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Bucket policies allowing
*principals.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Bucket policy and IAM decide access.
- Block public access unless required.
- Versioning and lock are set per bucket.
aws s3api get-bucket-policy --bucket <b>— policyaws s3api get-public-access-block --bucket <b>— public blockaws s3api get-bucket-encryption --bucket <b>— encryption
ReferenceHow it works1 section · depth on demand
Reference
- Block public access at account and bucket level.
- Default encryption (SSE-S3/SSE-KMS).
- Access logging or CloudTrail data events.
- Least-privilege bucket policies.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
A bucket is the top-level container, and its name is global
In S3 and compatible object stores, a bucket holds objects. Policies, versioning, lifecycle rules, encryption defaults and replication are configured per bucket.
Naming rules (AWS, general purpose buckets)
| Rule | Detail |
|---|---|
| Length | 3–63 characters |
| Characters | Lowercase letters, digits, periods, hyphens |
| Start and end | A letter or digit |
| Forbidden | Two adjacent periods; IP-address format; reserved prefixes such as xn-- and suffixes such as -s3alias |
| Uniqueness | Global across all accounts in the partition; a name cannot be changed later |
AWS also warns about two traps. After a bucket is deleted, another account can claim the name and receive requests meant for the old bucket, so empty and keep buckets instead of deleting them. And names with periods break virtual-host-style HTTPS, because the TLS certificate doesn't match.
$ aws s3api create-bucket --bucket acme-backups-prod-7f3a2c --region eu-north-1 \
--create-bucket-configuration LocationConstraint=eu-north-1
$ aws s3api put-bucket-versioning --bucket acme-backups-prod-7f3a2c --versioning-configuration Status=Enabled
$ aws s3api put-public-access-block --bucket acme-backups-prod-7f3a2c \
--public-access-block-configuration BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true
$ aws s3api get-bucket-encryption --bucket acme-backups-prod-7f3a2c
Bucket design
| Decision | Guidance |
|---|---|
| One bucket per application and environment | Separate policies, lifecycle and cost reporting |
| Unpredictable suffix in names | AWS recommends unique names (for example a GUID) for automatically created buckets |
| No sensitive data in names | Names appear in URLs and logs |
| Block public access by default | Open only what must be public, deliberately |
| Keys (object names) as pseudo-folders | logs/2026/11/27/ prefixes for lifecycle rules and listing |
Self-hosted S3 (MinIO, Ceph RGW) has its own namespace, but follow the same naming rules for client compatibility.
Documented example, not captured output.
How it works
A bucket is a container for objects with its own settings: access policy, versioning, lifecycle, replication and object lock. Bucket names are unique within the storage system (globally unique on AWS S3).
Reference
aws s3api create-bucket --bucket corp-backups --region eu-north-1 --create-bucket-configuration LocationConstraint=eu-north-1
aws s3api get-bucket-policy --bucket corp-backups
aws s3api get-public-access-block --bucket corp-backups
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Object Storage → Buckets. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.snia.org/tech_activities/standards/curr_standards/cdmi · confidence 94%