Skip to content
CoRISE

What S3 Object Lock Protects: Retention, Isolated Authority and Restoration

Connect OpenTofu and IAM to deletion-rejection checks, version inventory, hash-verified restoration and monitoring. Define what Object Lock protects and what business recovery still requires.

T. AsanoPublished Updated 25 min read
  • Storage
  • Security
  • Reliability
Open table of contents

Turn retained versions into usable recovery points

Storing ransomware backups in S3 Object Lock is a reasonable design choice. Enabling the feature, however, does not establish that the business can recover after compromise. A retained version can still be unusable because its encryption key is unavailable, the healthy recovery point is unknown, or the restore procedure fails.

S3 Object Lock provides WORM protection for individual object versions. [1] This article connects OpenTofu configuration, separated permissions, deletion-rejection checks, version-specific restoration and operational evidence.

Download the complete example. These are authored design examples. OpenTofu initialization, validation and apply, AWS writes and deletion attempts, and the restore scripts were not executed for publication. Expected outcomes below are not captured execution logs, and no measured restore success rate or RTO is claimed.

1. Define the unit that Object Lock protects

A PUT to an existing key creates another version. A protected older version remains, but the latest version is not necessarily healthy. A DELETE without a version ID can create a delete marker when permissions allow it. An ordinary GET can then appear to find nothing even though earlier versions remain. Delete markers themselves are not WORM-protected. [1][2]

Scroll horizontally to view the complete diagram.

Separate the current key from retained versions A new version or delete marker changes the current key but does not remove retained versions. A failed current GET is not proof of version loss. Recovery identifies the bucket, key and version ID.
Fig. 01 — Separate the current key from retained versions
Read the diagram as text

A new version or delete marker changes the current key but does not remove retained versions. A failed current GET is not proof of version loss. Recovery identifies the bucket, key and version ID.

Identify a recovery object by Bucket + Key + VersionId. Recording only backups/latest.dump does not identify the version from before the incident. Versioning alone also does not prevent an authorized principal from permanently deleting a version.

SettingProtection while activeAuthority or decision to manage separately
GovernanceRejects ordinary deletionBypass requires the operation permissions, s3:BypassGovernanceRetention and an explicit bypass request
ComplianceEven the root user cannot ordinarily delete the protected version, shorten retention or change its modeAccidental long retention cannot be shortened; account survival is another boundary
Legal HoldProtects until explicitly removed, without an expiration dateA principal with s3:PutObjectLegalHold can set or remove it; it is independent of retention

Governance bypass does not remove a legal hold. The console automatically includes the bypass header, so inspect the caller’s bypass permission too. For Compliance, AWS explicitly identifies account deletion as an exception to retention-before-expiry protection. Object Lock does not protect the account’s continued existence or administration. [1][2]

The IaC here uses fixed seven-day Governance retention and the provider resource’s fixed days/years fields. Legal Hold is independent of the retention deadline; define who may remove it. [1][3]

2. Establish authority independent of production

Place the bucket in a recovery account. The production backup process assumes only the recovery-side writer role. The recovery reader and disposable tester trust a separate recovery operator.

Scroll horizontally to view the complete diagram.

Separate writing from recovery and administration Production delegates to a recovery writer. A separate reader retrieves explicit versions. Recovery administration must have an independent path, including identity, organization authority, keys, audit and IaC state.
Fig. 02 — Separate writing from recovery and administration
Read the diagram as text

Production delegates to a recovery writer. A separate reader retrieves explicit versions. Recovery administration must have an independent path, including identity, organization authority, keys, audit and IaC state.

PrincipalRequired capabilityAuthority excluded from this example role
Backup writerPUT under backups/*, abort multipart uploads and inspect partsVersion reads, deletion, retention changes and Governance bypass
Recovery readerList versions, version-specific GET and lock metadataWrites or deletion in the original bucket
Disposable testerRead/delete in a dedicated prefix; PUT to an unprotected controlBypass, retention changes and deletion of actual backups
Infrastructure administratorConfigure buckets, roles and policiesUses a different administrative path from the production writer

A separate account provides limited isolation if the same compromised SSO administrator can edit recovery role trusts and policies. Review organization administration, the identity provider, CI credentials, OpenTofu state, audit storage and break-glass access. This example does not provision accounts, an identity provider, MFA or organization policies.

3. Build the minimal retention configuration with OpenTofu

Run the provider in the recovery account. allowed_account_ids helps catch an apply aimed at the wrong account. The example selects AWS provider 6.45.0 as its reference version. [3]

terraform {
  required_version = ">= 1.9, < 2.0"
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "= 6.45.0"
    }
  }
}

provider "aws" {
  region              = var.aws_region
  allowed_account_ids = [var.recovery_account_id]
}

OpenTofu’s dependency lockfile is .terraform.lock.hcl, not tofu.lock.hcl. Review and commit the provider selections and checksums produced by a real tofu init. The uninitialized sample does not contain a fabricated lockfile. Pin the OpenTofu binary, AWS CLI/SDK and execution environment separately. [4]

Connect the bucket, versioning and default retention. The default retention_days is seven.

resource "aws_s3_bucket" "recovery" {
  bucket              = var.bucket_name
  object_lock_enabled = true
  force_destroy       = false
  lifecycle {
    prevent_destroy = true
  }
}

resource "aws_s3_bucket_versioning" "recovery" {
  bucket = aws_s3_bucket.recovery.id
  versioning_configuration {
    status = "Enabled"
  }
}

resource "aws_s3_bucket_object_lock_configuration" "recovery" {
  bucket     = aws_s3_bucket.recovery.id
  depends_on = [aws_s3_bucket_versioning.recovery]
  rule {
    default_retention {
      mode = "GOVERNANCE"
      days = var.retention_days
    }
  }
}

force_destroy = false avoids automatically emptying a nonempty bucket; prevent_destroy adds an IaC destruction safeguard. Neither replaces IAM or Object Lock, and an administrator who can edit the configuration can change that safeguard. Once Object Lock is enabled, it cannot be disabled and versioning cannot be suspended. [2]

Do not admit backup writes before the default-retention configuration is complete. Allow for initial versioning propagation; AWS recommends waiting 15 minutes before the first writes after enabling versioning. [5] Changing the default does not retrofit existing versions. Switching a default from Governance to Compliance does not convert all earlier versions to Compliance.

Enforce bucket ownership, block public access and start the exercise with SSE-S3.

resource "aws_s3_bucket_ownership_controls" "recovery" {
  bucket = aws_s3_bucket.recovery.id
  rule {
    object_ownership = "BucketOwnerEnforced"
  }
}

resource "aws_s3_bucket_public_access_block" "recovery" {
  bucket                  = aws_s3_bucket.recovery.id
  block_public_acls       = true
  ignore_public_acls      = true
  block_public_policy     = true
  restrict_public_buckets = true
}

resource "aws_s3_bucket_server_side_encryption_configuration" "recovery" {
  bucket = aws_s3_bucket.recovery.id
  rule {
    apply_server_side_encryption_by_default {
      sse_algorithm = "AES256"
    }
  }
}

The included bucket policy denies aws:SecureTransport = false. Following AWS guidance, it also requires aws:PrincipalIsAWSService = false, because service-to-service calls can have network context redacted. Excluding service principals from this Deny is not an unconditional Allow. [6]

In the included tofu/ directory, configure the account ID, bucket name and source principal ARNs for the production writer and recovery operator. Set enable_disposable_lab = true only for the tester/control exercise, then apply a reviewed plan. These commands were not executed for publication.

tofu -chdir=tofu init
tofu -chdir=tofu fmt -check
tofu -chdir=tofu validate
tofu -chdir=tofu plan -out=lab.tfplan
tofu -chdir=tofu apply lab.tfplan

4. Attach policies to roles

The writer follows a small protocol: write to a known key. It does not need bucket-wide listing here. If a backup product requires listing or multipart-upload discovery, inspect its actual API calls and add scoped permissions.

data "aws_iam_policy_document" "writer" {
  statement {
    actions   = ["s3:PutObject", "s3:AbortMultipartUpload", "s3:ListMultipartUploadParts"]
    resources = ["${aws_s3_bucket.recovery.arn}/backups/*"]
  }
  statement {
    sid    = "NoDestructiveObjectAuthority"
    effect = "Deny"
    actions = [
      "s3:DeleteObject", "s3:DeleteObjectVersion",
      "s3:BypassGovernanceRetention",
      "s3:PutObjectRetention", "s3:PutObjectLegalHold"
    ]
    resources = ["${aws_s3_bucket.recovery.arn}/*"]
  }
  statement {
    sid       = "NoBucketConfigurationAuthority"
    effect    = "Deny"
    actions   = ["s3:PutBucket*", "s3:DeleteBucket*"]
    resources = [aws_s3_bucket.recovery.arn]
  }
}
resource "aws_iam_role_policy" "writer" {
  role   = aws_iam_role.writer.id
  policy = data.aws_iam_policy_document.writer.json
}

The complete iam.tf includes aws_iam_role.writer, trusting the specified production role, and a version-reader role. The source principal also needs permission for sts:AssumeRole on its destination role. A destination trust policy alone does not complete cross-account access.

The writer’s explicit Deny continues to reject these operations if another Allow is attached to the same role. It does not resist a recovery administrator who can edit the policy itself. Review role changes, bucket policy changes, permission boundaries and the administrators of SCPs/RCPs.

Treat retention administration separately

Explicit object-level retention overrides bucket defaults. A default therefore does not, by itself, establish a minimum for every version. This writer is denied PutObjectRetention, but other administrators may have authority to shorten or extend retention or bypass Governance. [1]

A bucket policy can constrain request values using s3:object-lock-remaining-retention-days. This evaluates a request; it does not mean an existing version’s naturally decreasing remaining days are anomalous. A minimum of 30 days also does not prevent someone with the other necessary authority from shortening 90 days to 30. Review modes, bypass, default changes and replication together. [2]

5. Separate the reasons deletion is rejected

These checks establish different things.

CheckCallerIntended evidence
The writer cannot deleteWriter with deletion explicitly deniedDestructive operations are rejected through that IAM path
A retained version cannot be deletedTester with deletion permission but no bypassRetention metadata and rejection are consistent
An unprotected version can be deletedThe same testerNot every DELETE is failing indiscriminately
An earlier version can be retrievedTester or readerApparent deletion is distinguishable from losing a version

An if delete; then fail; else pass; fi test treats expired credentials, DNS failures and incorrect targets as success. The example inspects a structured AWS SDK exception for both the error code and HTTP status.

def expect_error(operation, code, status):
    try:
        operation()
    except ClientError as error:
        response = error.response
        require(response["Error"]["Code"] == code, "Unexpected AWS error code")
        require(response["ResponseMetadata"]["HTTPStatusCode"] == status,
                "Unexpected HTTP status")
        return {"code": code, "status": status,
                "request_id": response["ResponseMetadata"]["RequestId"]}
    raise RuntimeError("Operation unexpectedly succeeded")

This is an excerpt. The complete script checks the STS account and role, versioning, bucket defaults, the returned version ID, actual retain-until date, absence of Legal Hold and successful readback before deletion. Every target is a newly generated backups/lock-lab/<UUID>/test.txt, not a real backup.

Scroll horizontally to view the complete diagram.

Check IAM denial and retention with separate controls Check writer denial, then compare tester deletion of an unprotected fixture with rejection of a retained fixture. Inspect exact errors and retrieve the surviving version. Review policy differences between the buckets.
Fig. 03 — Check IAM denial and retention with separate controls
Read the diagram as text

Check writer denial, then compare tester deletion of an unprotected fixture with rejection of a retained fixture. Inspect exact errors and retrieve the surviving version. Review policy differences between the buckets.

The tester role and unprotected control bucket exist only when enable_disposable_lab = true. Do not temporarily grant deletion to the production writer. The tester is also denied bypass, and the sample has no bypass cleanup routine for retained fixtures. Record their cost and eventual cleanup after retention.

Capture the version ID from the upload response

With the CLI, explicitly supply the checksum required for retention-protected uploads and save the returned version ID. Listing later and selecting “latest” can pick another writer’s version. [2][7]

aws --profile lock-writer s3api put-object \
  --bucket "$RECOVERY_BUCKET" \
  --expected-bucket-owner "$RECOVERY_ACCOUNT_ID" \
  --key "$LAB_KEY" --body test.txt \
  --checksum-algorithm SHA256 \
  --server-side-encryption AES256 > upload.json

VERSION_ID=$(jq -er '.VersionId | select(. != "null" and length > 0)' upload.json)

aws --profile lock-tester s3api get-object-retention \
  --bucket "$RECOVERY_BUCKET" --key "$LAB_KEY" \
  --expected-bucket-owner "$RECOVERY_ACCOUNT_ID" \
  --version-id "$VERSION_ID"

This excerpt assumes prepared lab profiles, bucket and fixture. Use the included lab.py for the full exercise.

python scripts/lab.py \
  --account "$RECOVERY_ACCOUNT_ID" --region "$AWS_REGION" \
  --bucket "$RECOVERY_BUCKET" --control-bucket "$CONTROL_BUCKET" \
  --writer-profile lock-writer --tester-profile lock-tester \
  --writer-role "$WRITER_ROLE_NAME" --tester-role "$TESTER_ROLE_NAME" \
  --evidence-dir evidence/unique-run-id --allow-disposable-delete

A successful deletion in the control bucket cannot exclude a different Deny applying only to the protected bucket. Review effective policies, retention metadata and audit records associated with the request IDs together. This exercise is not a universal proof that every attacker is unable to destroy recovery assets.

6. Find versions beneath a delete marker

After writing a newer version, the exercise has the tester DELETE without a version ID. The writer is denied this operation; the tester is allowed it within the dedicated prefix. After current GET returns NoSuchKey, a GET for the original version should still return the known fixture bytes. [1][2]

Version listings can span multiple pages. A prefix is not an exact key match, so paginate and compare the key explicitly.

def list_exact(client, owner, bucket, key):
    result = {"Versions": [], "DeleteMarkers": []}
    pages = client.get_paginator("list_object_versions").paginate(
        Bucket=bucket, Prefix=key, ExpectedBucketOwner=owner)
    for page in pages:
        for kind in result:
            result[kind].extend(x for x in page.get(kind, []) if x["Key"] == key)
    return result

During incident response, reconcile this inventory with version IDs in the manifest. Removing a marker to make something visible is a different decision from selecting a healthy recovery point.

7. Restore from a trusted manifest

Object Lock will retain data that ransomware encrypted before the backup. The newest backup is not necessarily the newest healthy backup. Use the incident timeline, modification evidence, backup history and security telemetry to select candidates, then validate them in isolation.

Record the bucket, key, version ID, byte length, checksum, capture time, snapshot/WAL context and application/schema versions. This record illustrates a format; its values are not measured results.

{
  "backup_id": "illustrative-backup-id",
  "bucket": "reviewed-recovery-bucket",
  "key": "backups/database.dump",
  "version_id": "returned-by-put-object",
  "sha256": "trusted-64-character-hex-digest",
  "snapshot_id": "recorded-by-backup-system",
  "wal_position": "recorded-by-database",
  "application_validation": "not_run"
}

If the same compromised writer creates both data and manifest, matching hashes do not independently establish that the data is healthy. Consider manifest generation, signatures, storage authority and the verifier separately. A checksum also does not establish consistency between database files and transaction logs. Use database-native backups or consistent snapshots.

Scroll horizontally to view the complete diagram.

From verified bytes to application and business recovery Use incident evidence and a trusted manifest to choose a version. Retrieve in isolation and compare the version ID, byte count and expected hash. Continue through database restore, integrity checks, application validation and business acceptance; download time alone is not RTO.
Fig. 04 — From verified bytes to application and business recovery
Read the diagram as text

Use incident evidence and a trusted manifest to choose a version. Retrieve in isolation and compare the version ID, byte count and expected hash. Continue through database restore, integrity checks, application validation and business acceptance; download time alone is not RTO.

Compare a hash; do not merely display it

The complete restore.py streams an explicit version, checks the returned version ID, byte count and expected SHA-256, and creates the final output only after these checks. It refuses to overwrite existing output. The core is:

digest = hashlib.sha256()
size = 0
with response["Body"] as body:
    with tempfile.NamedTemporaryFile(dir=output.parent, prefix="restore-",
                                     suffix=".partial", delete=False) as target:
        record["partial_path"] = target.name
        for chunk in body.iter_chunks(chunk_size=1024 * 1024):
            target.write(chunk)
            digest.update(chunk)
            size += len(chunk)
        target.flush()
        os.fsync(target.fileno())
record["observed_sha256"] = digest.hexdigest()
record["bytes"] = size
if size != response["ContentLength"] or digest.hexdigest() != args.sha256.lower():
    raise RuntimeError("Length or trusted SHA-256 mismatch; keep file quarantined")
# Same-filesystem link creation fails if output already exists.
os.link(record["partial_path"], output)
Path(record["partial_path"]).unlink()

Supply the expected digest from the previously trusted manifest. Do not generate it from the recovered file and then compare that file to itself.

python scripts/restore.py \
  --profile lock-reader --region "$AWS_REGION" --account "$RECOVERY_ACCOUNT_ID" \
  --bucket "$RECOVERY_BUCKET" --key "$BACKUP_KEY" --version "$SAFE_VERSION_ID" \
  --sha256 "$TRUSTED_SHA256" \
  --output restore-output/database.dump --evidence evidence/restore-unique.json

The result at this stage is bytes_verified. Database restoration, log replay, integrity checks, application smoke tests, clean credentials and business acceptance still follow. Do not report the script’s download_and_hash_seconds as end-to-end business RTO.

Copying an earlier version into the current position

When required, copy a specific earlier version to the same key to create a new current version while preserving the originals. [8] First retrieve and validate in a clean environment; promotion belongs to a separate operator with write authority. The reader role does not have that authority.

COPY_SOURCE=$(python3 - "$RECOVERY_BUCKET" "$BACKUP_KEY" "$SAFE_VERSION_ID" <<'PY'
import sys
from urllib.parse import quote
bucket, key, version = sys.argv[1:]
print(quote(bucket + "/" + key, safe="/") + "?versionId=" + quote(version, safe=""))
PY
)
aws --profile recovery-promoter s3api copy-object \
  --bucket "$RECOVERY_BUCKET" --key "$BACKUP_KEY" \
  --expected-bucket-owner "$RECOVERY_ACCOUNT_ID" \
  --expected-source-bucket-owner "$RECOVERY_ACCOUNT_ID" \
  --copy-source "$COPY_SOURCE" --tagging-directive REPLACE

The example does not provision recovery-promoter; design its source-read and destination-write permissions separately. URL-encode the copy source. A single CopyObject supports up to 5 GB; larger backups need multipart copy or another suitable path. This example’s --tagging-directive REPLACE does not retain the source tags. Inspect the new version’s encryption, retention, metadata and tags. Do not assume that source lock settings are inherited unchanged. [9]

8. Include encryption keys in the recovery boundary

With SSE-KMS, surviving versions are insufficient if the key cannot be used. Key deletion has a 7–30 day waiting period, but a key pending deletion is already unavailable for cryptographic operations. A deleted key cannot be recovered. The waiting period is not a period during which recovery is unaffected. [10]

Monitor ScheduleKeyDeletion, DisableKey, key policies, grants and administrator role trusts. Separate those changes and access to the recovery key from the production compromise path.

SSE-KMS permissions are also more specific than “the writer needs only Encrypt.” S3 PUT requires kms:GenerateDataKey; GET requires kms:Decrypt; multipart upload requires both. Design the key policy, IAM, encryption context and appropriate service restrictions together. Do not treat the SSE-S3 example as an already complete KMS configuration. [11]

9. Connect collection, detection and notification

CloudTrail Event History does not capture S3 object data events. Explicitly configure their collection for the recovery bucket. This selector example is intended for an existing audit trail. [12]

[
  {
    "Name": "Recovery object activity",
    "FieldSelectors": [
      { "Field": "eventCategory", "Equals": ["Data"] },
      { "Field": "resources.type", "Equals": ["AWS::S3::Object"] },
      { "Field": "resources.ARN", "StartsWith": ["arn:aws:s3:::REPLACE_RECOVERY_BUCKET/"] }
    ]
  },
  {
    "Name": "Management activity",
    "FieldSelectors": [{ "Field": "eventCategory", "Equals": ["Management"] }]
  }
]

Replace REPLACE_RECOVERY_BUCKET and merge with the existing selectors. put-event-selectors replaces a trail’s selector configuration; applying this example blindly can remove other audit coverage. Separately verify logging status, destination permissions, delivery health, regional scope, costs and audit administration. The JSON fragment does not establish a running monitoring system.

Distinguish API names, IAM actions and CloudTrail eventName. Do not search for independent API events called s3:DeleteObjectVersion or s3:BypassGovernanceRetention. Inspect version IDs and bypass request information in DeleteObject/DeleteObjects. Current official documentation states that PutObjectRetention is recorded as PutObjectLockRetention. Build detection against actual event samples. [12]

Change to observeEvidence to inspect
Deletion, markers and retention changesActor, bucket, key, version ID, request/result and bypass information
Defaults, bucket policies and role trustsBefore/after state, approval path, effects on old and new versions
Key disablement, scheduled deletion and permission changesKey identity, decryptability and the owner who can intervene
Missing or rapidly growing backupsLast healthy backup time, volume, anomalous writes and costs
Failed or slow restoresVersion, failure stage, owner and recovery action

A KMS EventBridge pattern can start with:

{
  "source": ["aws.kms"],
  "detail-type": ["AWS API Call via CloudTrail"],
  "detail": {
    "eventSource": ["kms.amazonaws.com"],
    "eventName": ["ScheduleKeyDeletion", "DisableKey", "PutKeyPolicy", "RevokeGrant"]
  }
}

Add the target, its resource policy, retry/dead-letter behavior and an independent notification path. The included S3 pattern broadly routes a bucket’s activity so real event fields can be inspected before narrowing it. Rejected requests may lack expected fields; compare against raw audit records. Matching a pattern and delivering an actionable notification to an owner are different evidence. [13]

Explicit PutObjectRetention calls also produce s3:ObjectRetention:Put notifications. Those alone do not establish that every upload received its default retention or that every version is protected. Combine them with inventory lock metadata and direct queries. [2]

10. Derive lifecycle, replication and retention from recovery

Lifecycle cannot permanently delete a retained version, but storage-class transitions and delete markers can still occur. Retention expiry does not imply immediate deletion; Legal Hold and lifecycle eligibility matter too. For archive tiers, include retrieval delays, costs and staging capacity in the recovery plan. [2]

With Object Lock replication, the destination must also enable Object Lock and replication needs permissions for retention metadata. Observe asynchronous lag, failures and missing copies. Newly written malicious data can also be replicated; replication does not classify data as healthy. Combine account/region boundaries with version retention and recovery-point selection. [2]

Choose fixed retention from expected detection delay, investigation time, recovery margin, RPO/RTO, cost and legal/deletion requirements. Seven days is a lab value, not a production recommendation. Governance can help validate operations before adopting Compliance, but inventory existing versions before changing defaults.

11. Separate static CI from live AWS exercises

After generating and reviewing a real dependency lockfile, static CI can run:

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/../tofu"
# Bootstrap and review .terraform.lock.hcl first; this is not an apply pipeline.
test -f .terraform.lock.hcl
tofu init -backend=false -lockfile=readonly
tofu fmt -check
tofu validate

These checks examine configuration, not live permissions or restoration. Run apply and deletion exercises in a separately approved integration environment with identified accounts, roles, tiny fixtures and retention costs. An ordinary pull request should not automatically trigger destructive production exercises.

For a recovery run, retain the run ID, tool versions, configuration revision, caller, bucket/key/version, retention metadata, request IDs, trusted manifest, byte and application checks, start/end times and unresolved items. Record failed and incomplete runs too. Reassess when keys, archive tiers, authority paths or capacity change.

Periodic restores should cover representative databases, files, archives, large objects, key/region combinations and failure conditions. A few random small files are insufficient coverage. Do not generalize fixture success to all backups. Track backup and restore success separately, and measure the process through business recovery.

Design the path back to business operation

Object Lock strongly protects retention of a particular version under defined conditions. Turning that version into a recovery point also requires separated authority, keys, audit records, manifests, consistent backups, a clean environment and actual restoration.

The ransomware response and infrastructure modernization case provides attributed design context. It does not establish that this exact role layout, seven-day setting, code, deletion exercise or recovery duration was delivered or measured in that engagement. Zero Trust boundary design is a related perspective.

Explain “deletion was rejected” and “healthy data restored business operation” using the conditions and evidence for each. Repeatedly establishing both is how Object Lock becomes part of recovery engineering.

References

  1. AWS S3 Object Lock — Versions, modes and legal holds.
  2. AWS Object Lock considerations — Bypass, checksums, lifecycle, replication, inventory, notifications and limits.
  3. AWS Provider 6.45.0 resource — New/existing buckets and the fixed-retention schema.
  4. OpenTofu Dependency Lock File — .terraform.lock.hcl and provider selections.
  5. AWS Enabling versioning — Propagation after initial enablement.
  6. AWS S3 policy condition keys — TLS conditions and service principals.
  7. AWS PutObject API — Uploads, checksums and version IDs.
  8. AWS Restoring previous versions — Creating a new current version by copying.
  9. AWS CopyObject API — URL encoding, 5 GB limit and destination settings.
  10. AWS KMS key deletion — Pending deletion and effects on decryptability.
  11. AWS SSE-KMS — KMS permissions for PUT, GET and multipart upload.
  12. AWS S3 CloudTrail events — Data events and recorded event names.
  13. AWS S3 events in EventBridge — CloudTrail event patterns.

See also CloudTrail data-event configuration for selector details.

Consultation of a continuously updated page is not a claim about a feature’s release date. The HCL, scripts, diagrams and exercise design are authored examples, not evidence of execution in an AWS environment.

T. Asano

More articles by T. Asano

Contact

Tell us about your engineering challenge.

Talk with CoRISE about the design, implementation and operation of your systems.

Start a Conversation