Use the Terraform AWS Provider
Use Terraform to manage CoreWeave AI Object Storage infrastructure as code
Terraform providers are essential plugins that enable Terraform to manage infrastructure resources on various platforms.
As CoreWeave AI Object Storage is S3-compatible, it can be managed using the official Terraform AWS Provider. This provider translates Terraform's declarative syntax into S3-compatible API calls.
Here's an example S3 Terraform provider configuration that sets up the AWS provider with the CoreWeave AI Object Storage endpoint and region:
Example
1terraform {2required_providers {3aws = {4source = "hashicorp/aws"5version = "5.67.0"6}7}89required_version = ">= 1.2.0"10}1112provider "aws" {13access_key = env.AWS_ACCESS_KEY14secret_key = env.AWS_ACCESS_SECRET15region = local.region1617# These two values must be true so Terraform doesn't attempt STS authentication.18skip_credentials_validation = true19skip_requesting_account_id = true2021# CoreWeave uses different region names, so validation must be skipped.22skip_region_validation = true23s3_use_path_style = false2425endpoints {26s3 = local.endpoint27}28}2930locals {31region = "us-east-03"32endpoint = "https://cwobject.com"33}34
Some aspects of note in this example, highlighted above:
access_key
andsecret_key
are set as environment variables for security.skip_credentials_validation
,skip_requesting_account_id
, andskip_region_validation
options are set totrue
to bypass AWS-specific validation checks.- In this example,
region
is set tous-east-03
. Note that CoreWeave AI Object Storage uses different region names than AWS. endpoint
is set tohttps://cwobject.com
, which is the CoreWeave AI Object Storage endpoint.- The
s3_use_path_style
option is set tofalse
to use virtual-hosted-style URLs.
Learn more
To learn more about using the AWS provider with Object Storage, see the S3 section of the official documentation.