Skip to main content
Manages a CoreWeave AI Object Storage bucket inventory configuration. The provider obtains temporary S3 credentials using its configured authentication; no separately managed access-key resource is required. The authenticated identity must have permission to manage inventory configurations on the source bucket and policies on the destination bucket. Learn more about inventory reporting.

Example usage

Schema

Required

  • bucket (String) Name of source bucket to which the inventory configuration applies
  • included_object_versions (String) Object versions to include: All includes all versions; Current includes only current versions.
  • name (String) Name of the inventory configuration. Must be unique within the bucket.

Optional

  • destination (Block, Optional) Required. Where the inventory report is written. May be the same bucket as the source. The destination policy must grant the inventory service s3:PutObject and s3:AbortMultipartUpload on report objects. Use depends_on to apply that policy before the inventory configuration. Bucket policies are evaluated after organization policies; requests without a matching bucket grant are implicitly denied even if an organization policy allows them. Include caller permissions for Terraform bucket reads and cleanup, and explicit grants for report readers. The policy resource replaces the entire existing bucket policy, so retain all required statements. s3:PutBucketPolicy itself evaluates organization permissions only. See policy evaluation. (see below for nested schema)
  • enabled (Boolean) Whether the inventory configuration is enabled. Defaults to true.
  • filter (Block, Optional) Limits the inventory report to objects matching a prefix. (see below for nested schema)
  • optional_fields (Set of String) Additional report fields: Size, LastModifiedDate, LastAccessedDate, StorageClass, ETag, IsMultipartUploaded, EncryptionStatus, ChecksumAlgorithm. Omit to include no additional fields; an empty set is invalid.
  • schedule (Block, Optional) Required. Schedule for generating the inventory report. (see below for nested schema)

Nested Schema for destination

Optional:
  • bucket (Block, Optional) Required. Destination bucket for the report (may equal the source bucket). (see below for nested schema)

Nested Schema for destination.bucket

Required:
  • bucket_arn (String) ARN of the destination bucket.
  • format (String) Output format: CSV, TSV, JSON, ORC, or Parquet.
Optional:
  • account_id (String) Account ID of the destination bucket owner.
  • prefix (String) Prefix prepended to the report output path.

Nested Schema for filter

Optional:
  • prefix (String) Source-object prefix to filter on.

Nested Schema for schedule

Required:
  • frequency (String) How frequently the report is generated: Daily or Weekly.

Import

Import is supported using the following syntax:
Last modified on October 14, 2026