> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CoreWeave Provider

> Manage CKS, VPC, Object Storage, and Managed Inference resources as code with Terraform

The CoreWeave Terraform provider lets you manage CoreWeave infrastructure as code, including CKS clusters, VPC networking, AI Object Storage policies and buckets, and Managed Inference resources. This provider is a plugin for [Terraform](https://developer.hashicorp.com/terraform), an open-source infrastructure as code tool that lets you define and provision resources in a declarative configuration language.

Use the provider to deploy and manage [CKS clusters](/products/cks/clusters/create), [VPCs](/products/networking/vpc/about-vpcs), [Object Storage resources](/products/storage/object-storage), and [Managed Inference resources](/products/inference). For detailed examples and resource documentation, see the [provider documentation](https://registry.terraform.io/providers/coreweave/coreweave/latest/docs).

<Tip>
  * [View the CoreWeave Terraform provider documentation on the Terraform registry](https://registry.terraform.io/providers/coreweave/coreweave/latest/docs).
  * [Use the CoreWeave Terraform provider in your OpenTofu configuration](https://search.opentofu.org/provider/coreweave/coreweave/latest).
  * Learn more about [CoreWeave's integration and partnership with Hashicorp](https://www.hashicorp.com/en/partners/tech/coreweave).
</Tip>

## Example usage

```terraform theme={"system"}
variable "coreweave_api_token" {
  type        = string
  sensitive   = true
  description = "CoreWeave API token in the form `CW-SECRET-[secret]`. Can also be set via the COREWEAVE_API_TOKEN environment variable."
}

provider "coreweave" {
  token = var.coreweave_api_token
}
```

## Schema

### Optional

* `endpoint` (String) CoreWeave API Endpoint. This can also be set via the COREWEAVE\_API\_ENDPOINT environment variable, which takes precedence. Defaults to `https://api.coreweave.com/`
* `http_timeout` (String) Timeout duration for the HTTP client to use. This can also be set via the COREWEAVE\_HTTP\_TIMEOUT environment variable, which takes precedence. If unset, defaults to 10 seconds
* `s3_endpoint` (String) CoreWeave S3 Endpoint, used for CoreWeave Object Storage. This can also be set via the COREWEAVE\_S3\_ENDPOINT environment variable, which takes precedence. Defaults to `https://cwobject.com`
* `token` (String, Sensitive) CoreWeave API Token in the form `CW-SECRET-<secret>`. This can also be set via the COREWEAVE\_API\_TOKEN environment variable, which takes precedence.
