s3cmd, Boto3, or the AWS CLI.
Configure Terraform
These examples show how to set up the Terraform provider with CoreWeave AI Object Storage.Endpoint selectionChoose an endpoint based on where Terraform runs:
- Use the LOTA endpoint,
http://cwlota.com, when Terraform runs inside a CoreWeave cluster. The LOTA endpoint routes to the LOTA path for lower-latency access. - Use the primary endpoint,
https://cwobject.com, when Terraform runs outside of a CoreWeave cluster.
- CoreWeave Provider
- AWS Provider
tokenis set as an environment variable for security. Get your API access token from the CoreWeave Access Tokens page in Cloud Console.s3_endpointdefaults tohttps://cwobject.com, which is the primary CoreWeave AI Object Storage endpoint. To use LOTA, set this value tohttp://cwlota.com.versionis set to>= 0.3.0because0.3.0is the first version to support AI Object Storage.
Object Storage resources
After you configure the provider, you can use Terraform to manage organization access policies and bucket access policies, and configure bucket lifecycles and versioning. For detailed examples and documentation, see the CoreWeave provider registry documentation.Known issues
CoreWeave provider 0.7.0 silently drops NoncurrentVersionTransitions
Version 0.7.0 of the CoreWeave Terraform provider silently drops the NoncurrentVersionTransitions block when applying a coreweave_object_storage_bucket_lifecycle_configuration resource. The plan reports success, but the rule applied to the bucket does not include the noncurrent-version transition action.
This bug was fixed in v0.7.1. Upgrade to v0.7.1 or later (current release: v0.13.0). If you cannot upgrade immediately, apply lifecycle configurations that use NoncurrentVersionTransitions directly with the AWS CLI or Boto3. See Apply a lifecycle configuration.
To verify whether a previously applied configuration was affected, read back the active lifecycle configuration with s3:GetBucketLifecycleConfiguration and compare it to the configuration in your Terraform code.
Additional resources
- To learn more about using the Terraform AWS provider with Object Storage, see the S3 section of the official documentation.
- To learn more about the CoreWeave Terraform provider, see the CoreWeave provider documentation.
- To use the CoreWeave provider with OpenTofu, see the OpenTofu provider documentation.