Use aws s3api list-bucket-inventory-configurations to find how an S3 bucket is configured to produce inventory reports. It is a read-only configuration request, not a request to generate a fresh report. An enabled configuration and a daily schedule do not prove that a usable report arrived at the destination.
This walkthrough is for an authorised review of a general purpose S3 bucket using AWS CLI v2 and Bash. Directory buckets have different endpoint and permission requirements; do not apply this example to them unchanged.
Prepare the account and bucket details
Identify the approved AWS profile, source bucket, Region and source bucket owner’s account ID from your organisation’s records. Replace the illustrative values below before running the command. The IAM principal needs s3:GetInventoryConfiguration permission. Having permission to list objects does not by itself establish permission to read this configuration.
Use a least-privilege account. Do not broaden policies or disable certificate verification to make an inspection work. Review permission failures with the bucket administrator instead. The expected-owner parameter provides an additional check: AWS documents that a mismatched owner causes an access-denied response.
Read one response and preserve its context
aws s3api list-bucket-inventory-configurations --bucket example-source-bucket --expected-bucket-owner 123456789012 --profile audit-readonly --region ap-southeast-2 --output json --no-cli-pager
The bucket name, account ID and profile are placeholders, not a tested account. This command does not create, enable, update or delete an inventory configuration. Read its error output if it fails; a failed request is not evidence that the bucket has no inventory configuration.
Record the source bucket, requesting profile, Region, inspection time and successful response in your approved evidence system. Inventory destinations and account IDs can reveal infrastructure details, so avoid posting the raw response to public support forums.
Check pagination before calling the list complete
The service returns at most 100 configurations in one response. Inspect IsTruncated. If it is true, take the returned NextContinuationToken and repeat the same request with --continuation-token and that exact token as an additional argument. Keep all the other scope parameters unchanged. Continue until the service returns IsTruncated: false.
Treat the token as opaque: do not shorten it, decode it or substitute a configuration ID. Quote it when passing it to your shell. A partial response cannot establish that there are no other inventory jobs. Similarly, a successful empty list describes the bucket queried, not every bucket in the account.
Interpret each configuration as a reporting contract
- Id and IsEnabled: identify the configuration and whether report generation is enabled. A saved but disabled entry is not an active reporting schedule.
- Filter.Prefix: check whether only a subset of object keys is included. A report for one application prefix is not a bucket-wide inventory.
- IncludedObjectVersions: distinguish Current from All. AWS documents that All adds version-related fields, including VersionId, IsLatest and DeleteMarker.
- Schedule.Frequency: read Daily or Weekly as the configured frequency, not as proof of the latest completed delivery.
- Destination.S3BucketDestination: record the destination bucket ARN, optional prefix, format, account ID and encryption settings.
- OptionalFields: confirm that fields needed for the review are actually requested. Do not assume the report includes every available attribute.
For a hypothetical review of old object versions under application-logs/, a Current-only report filtered to exports/ answers the wrong question even if it is enabled. The correct next step is to document the mismatch and seek an approved reporting change, not to silently rewrite the configuration.
Verify delivery separately
Ask the destination owner to identify the relevant delivered report and its generation context. With appropriate read access, inspect its associated files and confirm that its scope, version selection and available fields match the task. A destination ARN in configuration is not proof that you can access the destination or that its latest report is complete for your purpose.
Inventory also differs from request logging. For that separate evidence question, see reading an S3 access-log destination. Neither configuration check substitutes for inspection of actual delivered evidence.
Quick review checklist
Was the request successful? Were all pages collected? Is the correct prefix covered? Are current or all versions required? Is the configuration enabled? Is there a delivered report suitable for the review? Keep unanswered questions explicit rather than turning configuration into a compliance or recovery guarantee.
Source: AWS CLI list-bucket-inventory-configurations reference.
Educational-use disclaimer: Test commands carefully before using them in production. The site owner is not responsible for misuse, damage, data loss or production issues.

