Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 1012 Bytes

File metadata and controls

31 lines (16 loc) · 1012 Bytes

S3 Object Lock

Prerequisites

  1. AWS CLI installed and configured (aws configure)
  2. Appropriate IAM permissions for the AWS services used

Step 1: Creating bucket with Object Lock

The script handles this step automatically. See s3-object-lock.sh for the exact CLI commands.

Step 2: Setting default retention (1 day governance mode)

The script handles this step automatically. See s3-object-lock.sh for the exact CLI commands.

Step 3: Getting lock configuration

The script handles this step automatically. See s3-object-lock.sh for the exact CLI commands.

Step 4: Uploading a locked object

The script handles this step automatically. See s3-object-lock.sh for the exact CLI commands.

Step 5: Verifying lock

The script handles this step automatically. See s3-object-lock.sh for the exact CLI commands.

Cleanup

The script prompts you to clean up all created resources. If you need to clean up manually, check the script log for the resource names that were created.