Buckets
Encryption, Object Lock, a CORS test, and a way to prove a backup is intact
Set default encryption and Object Lock from the bucket's Security tab, check CORS rules before saving and test them against any origin, and run Verify copy on a backup, then Repair what is missing.
On a bucket's Security tab
- •Default encryption: SSE-S3 or SSE-KMS. A KMS key that cannot be used is refused before it is saved, because S3 accepts a missing key and then fails every upload.
- •Object Lock: turn it on (versioning first; you type the bucket's name, because it cannot be undone), set a default retention, and set retention or a legal hold on a single file from its menu. A retention date can only be extended.
- •CORS: rules are checked before they are saved, and Test a request tells you whether a given origin, method and header would be allowed — and which of the three is wrong. See configure and test S3 CORS.
On a backup job
- •Verify copy compares the destination with the source and lists what is missing or different, and how it was proven.
- •Repair adds the missing objects. Objects that differ are left alone unless you tick Also replace the ones that differ. Each key is checked again before and after it is written.
The same controls are in the API and the command-line tool. These need permissions the one-click role did not carry at first: re-run your CloudFormation stack, otherwise the buttons answer with the permission to add.