Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion administration/cloud_capture/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,11 @@ S3 is opt-in, bucket by bucket. An account usually holds many buckets you would
What to expect:

- **Each bucket is its own environment**, of type S3, named by your [environment name template](#environment-names) with the bucket name as `{resource}`.
- **Each bucket reports exactly one artifact, named after the bucket.** A bucket holding several objects is fingerprinted as a directory, and a bucket holding a single object is fingerprinted as that file, so attest that file with `--artifact-type file` for the fingerprints to match. Either way the artifact carries the bucket's name, not the object's.
- **An empty bucket is captured, not failed.** It reports one artifact, named after the bucket, with the fingerprint of an empty directory: `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`. Every empty bucket therefore shares that fingerprint. It is also the fingerprint of an empty file, so an empty bucket matches any artifact attested from one.
- **A bucket needs both the tag and the permission.** A bucket that carries the opt-in tag but is not named in the stack fails its snapshot on every scan, with an access denied error. A bucket that is named in the stack but not tagged is left alone.
- **Skipping wins.** A bucket that carries an opt-in tag and a [skip tag](#excluding-resources) is not captured.
- **Only objects with a SHA256 checksum are fingerprinted.** S3 stores a full-object SHA256 checksum only when the upload asks for one, for example with `aws s3api put-object --checksum-algorithm SHA256`. An object without one, or one uploaded in several parts, is left out of the fingerprint, as if the bucket did not hold it. The fingerprint therefore matches an artifact you attested from the bucket's whole content only once every object carries the checksum, and a bucket where no object does is reported as holding no artifact.
- **Only objects with a SHA256 checksum are fingerprinted.** S3 stores a full-object SHA256 checksum only when the upload asks for one, for example with `aws s3api put-object --checksum-algorithm SHA256`. An object without one, or one uploaded in several parts, is left out of the fingerprint, as if the bucket did not hold it. The fingerprint therefore matches an artifact you attested from the bucket's whole content only once every object carries the checksum, and a bucket where no object does is reported as an empty bucket.
- **Buckets encrypted with a KMS key are not supported.** The role is granted no KMS permission, so a bucket whose objects use SSE-KMS fails its snapshot. S3's default encryption, SSE-S3, needs nothing more.
- **Large buckets cost more and can time out.** A snapshot is one request per object, on every scan. At the default five minute frequency, a bucket of 100,000 objects is about 29 million requests a day. A bucket of more than roughly 100,000 objects may not finish in the time a snapshot is given, and then fails. Consider a longer [scan frequency](#scan-frequency) if you capture large buckets; it applies to everything Cloud Capture scans for you.
- **A newly tagged bucket is picked up on a later scan**, once AWS reports the tag. Removing the tag, or the opt-in tag from your settings, stops new snapshots; the environment keeps its last snapshot and nothing is deleted.
Expand Down