To create a bucket with object lock:
- From the navigation pane, select S3 > Buckets.
- Click Create Bucket.
The Create Bucket page appears.
- In the Name field, enter a name for your bucket.
Tip: Bucket names can only contain lowercase letters, numbers, periods, and hyphens.
- Click the Object Lock policy tab.
- Click the Enable Object Lock toggle to enable it.
- To add retention to the policy as a means for compliance, under the Default Retention setting, click On.
- When you are finished configuring your bucket, click Create.
A message confirming the creation of the new bucket is displayed and you are returned to the Buckets page.
- To view your new bucket, select it by clicking its name from the Name column or by clicking View.