A bucket policy is attached to this bucket. Access is granted via both IAM and bucket policy rules.
{% else %}
IAM only
No bucket policy is attached. Access is controlled by IAM policies only.
{% endif %}
{% if can_edit_policy %}
{% set preset_choice = 'custom' %}
{% if not bucket_policy %}
{% set preset_choice = 'private' %}
{% elif bucket_policy_text and bucket_policy_text.strip() == default_policy.strip() %}
{% set preset_choice = 'public' %}
{% endif %}
{% else %}
You do not have permission to edit this policy.
{% endif %}
About Bucket Policies
Bucket policies are JSON-based access policy documents that specify who can access your bucket and under what conditions.
Policy Types
Private — No policy attached; only IAM users with explicit permissions can access.
Public Read — Anyone can read objects, but only authenticated users can write.
Custom — Fine-grained control using AWS IAM policy syntax.
Policy Elements
Effect — Allow or Deny
Principal — Who the policy applies to
Action — Which S3 operations
Resource — Bucket/object ARN
Versioning
{% if versioning_enabled %}
Versioning is enabled
All previous versions of objects are preserved. You can roll back accidental changes or deletions at any time.
{% else %}
Versioning is suspended
New object uploads overwrite existing objects. Enable versioning to preserve previous versions.
{% endif %}
{% if can_manage_versioning %}
{% else %}
You do not have permission to modify versioning for this bucket.
{% endif %}
{% if versioning_enabled %}
Archived Objects
0 items
Objects that have been deleted while versioning is enabled. Their previous versions remain available until you restore or purge them.
Key
Latest Version
Versions
Actions
No archived objects
{% endif %}
About Versioning
Versioning keeps multiple variants of an object in the same bucket. You can use versioning to preserve, retrieve, and restore every version of every object.
Benefits
Recovery — Restore accidentally deleted or overwritten objects
Audit Trail — Track changes to objects over time
Compliance — Meet retention requirements
How It Works
Each upload creates a new version
Deleting adds a "delete marker"
Previous versions remain accessible
Storage costs apply to all versions
{% if versioning_enabled %}
About Archives
When you delete an object with versioning enabled, S3 inserts a delete marker instead of removing the object. The archived versions remain in the bucket and can be restored at any time.
{% endif %}
{% if can_manage_replication %}
Replication Configuration
{% if replication_rule and replication_rule.enabled %}
Replication Active —
{% if replication_rule.mode == 'all' %}
All objects (existing + new) are being replicated.
{% else %}
New uploads to this bucket are automatically replicated.
{% endif %}