Skip to main content
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, 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, VPCs, Object Storage resources, and Managed Inference resources. For detailed examples and resource documentation, see the provider documentation.

Example usage

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.
Last modified on June 29, 2026