Static credentials
Static credentials are the simplest way to get started when you have an access key and secret key on hand. To set up your AWS configuration for Object Storage, create a new credentials file and profile.-
Create a new profile called
cw: -
When prompted for information, provide the following values:
Field Value AWS Access Key ID The Object Storage Access Key. AWS Secret Key The Object Storage Secret Key. Default region name Optional. To set a default region, use a CoreWeave Availability Zone. Default output format Use jsonfor JSON output. -
Set the endpoint URL to the appropriate endpoint for your use case:
Endpoint URL Description https://cwobject.comThe primary endpoint for Object Storage. Use this when running outside of a CoreWeave cluster. http://cwlota.comThe LOTA endpoint, which routes to the LOTA cache for best performance. Always use the LOTA endpoint when running inside a CoreWeave cluster. -
Set the default addressing style to
virtual. This is required for Object Storage.
Workload Identity Federation in Kubernetes
This approach is best for workloads running inside CKS, where short-lived tokens are preferred over long-lived static credentials. When an OIDC token is available in a file and automatically rotated (as in Kubernetes and CKS), use the Container Credentials API. Start with a basic config file for the endpoints:[ORG-ID] with your CoreWeave organization ID.
Your Org ID is a short hexadecimal string (for example, ab1cd2). Find it on the Settings page of your Cloud Console account.
Workload Identity Federation with a credential process
Use this approach when you want federated credentials outside of CKS, such as on developer workstations or in CI environments. Without an auto-rotated token file, AWS SDKs support a Process Credential Provider that invokes a custom command to fetch credentials. This works for both human and machine workloads.- Check for cached credentials.
- Obtain a new OIDC token from your identity provider if the cached credentials are missing or expired.
- Exchange the token with the CoreWeave API for temporary credentials.
- Cache and return the response.
Boto3
This section covers how the same configuration applies when you use boto3 in Python.If you use Workload Identity Federation, use
boto3 >= 1.42.5, which incorporates a required fix for CoreWeave APIs.Config object or the environment to override the AWS CLI configuration. See the full configuration examples.