An AWS CLI tutorial that demonstrates S3 operations.
bash s3-object-lock.shTo auto-run with cleanup:
echo 'y' | bash s3-object-lock.sh- Creating bucket with Object Lock
- Setting default retention (1 day governance mode)
- Getting lock configuration
- Uploading a locked object
- Verifying lock
- Bucket
- Bucket Versioning
- Object Lock Configuration
The script prompts you to clean up resources when it finishes.
Free tier eligible for most operations. Clean up resources after use to avoid charges.