Pulumi components for Pinecone BYOC clusters
Project description
Pinecone BYOC
Deploy Pinecone in your own cloud account (AWS or GCP) with full control over your infrastructure.
Quick Start
Interactive Setup
curl -fsSL https://raw.githubusercontent.com/pinecone-io/pulumi-pinecone-byoc/main/bootstrap.sh | bash
This will:
- Select your cloud provider (AWS or GCP)
- Check that required tools are installed (Python 3.12+, uv, cloud CLI, Pulumi, kubectl)
- Verify your cloud credentials
- Run an interactive setup wizard
- Generate a complete Pulumi project
Then deploy:
cd pinecone-byoc
pulumi up
Provisioning takes approximately 25-30 minutes.
Prerequisites
Common Tools (Required for Both AWS and GCP)
| Tool | Purpose | Install |
|---|---|---|
| Python 3.12+ | Runtime | python.org |
| uv | Package manager | docs.astral.sh/uv |
| Pulumi | Infrastructure | pulumi.com/docs/install |
| kubectl | Cluster access | kubernetes.io |
Cloud-Specific Tools
AWS
| Tool | Purpose | Install |
|---|---|---|
| AWS CLI | AWS access | AWS docs |
GCP
| Tool | Purpose | Install |
|---|---|---|
| gcloud CLI | GCP access | GCP docs |
Architecture
┌──────────────────────┐ ┌───────────────────────────────────────────────┐
│ │ operations │ Your AWS/GCP Account (VPC) │
│ Pinecone │───────────────────▶│ │
│ Control Plane │ │ ┌─────────────┐ ┌─────────────────────────┐ │
│ │◀───────────────────│ │ Control │ │ │ │
│ │ cluster state │ │ Plane │ │ Cluster Manager │ │
└──────────────────────┘ │ └─────────────┘ │ (EKS/GKE) │ │
│ ┌─────────────┐ └─────────────────────────┘ │
│ │ Heartbeat │ │
│ └─────────────┘ │
┌──────────────────────┐ │ ┌───────────────────────────────────────────┐│
│ │◀───────────────────│ │ ││
│ Pinecone │ metrics & │ │ Data Plane ││
│ Observability (DD) │ traces │ │ ││
│ │ │ └───────────────────────────────────────────┘│
└──────────────────────┘ │ ┌──────────┐ ┌──────────┐ ┌─────────────┐ │
│ │ S3/GCS │ | RDS/ | │ Route53/ │ │
No customer data │ │ Buckets │ │ Alloy │ | Cloud DNS | │
leaves the cluster │ └──────────┘ └──────────┘ └─────────────┘ │
└───────────────────────────────────────────────┘
How It Works
Pinecone BYOC uses a pull-based model for control plane operations:
- Index Operations - When you create, scale, or delete indexes through the Pinecone API, these operations are queued in Pinecone's control plane
- Pull & Execute - Components running in your cluster continuously pull pending operations and execute them locally
- Heartbeat & State - Your cluster pushes health status and state back to Pinecone for monitoring
- Observability - Metrics and traces (not customer data) are sent to Pinecone's observability platform (Datadog) for operational insights
This architecture ensures:
- Your data never leaves your cloud account - only operational metrics and cluster state are transmitted
- Network security policies remain under your control
- All communication is outbound from your cluster - Pinecone never needs inbound access
Cluster Access
After deployment, configure kubectl:
AWS:
aws eks update-kubeconfig --region <region> --name <cluster-name>
GCP:
gcloud container clusters get-credentials <cluster-name> --region <region> --project <project-id>
The exact command is output after pulumi up completes.
Upgrades
Pinecone manages upgrades automatically in the background. If you need to trigger an upgrade manually:
pulumi up -c pinecone-version=<new-version>
Replace <new-version> with the target Pinecone version (e.g., main-abc1234).
Configuration
The setup wizard creates a Pulumi stack with these configurable options:
AWS Configuration Options:
| Option | Description | Default |
|---|---|---|
pinecone-version |
Pinecone release version (required) | — |
region |
AWS region | us-east-1 |
availability_zones |
AZs for high availability | ["us-east-1a", "us-east-1b"] |
vpc_cidr |
VPC IP range | 10.0.0.0/16 |
deletion_protection |
Protect RDS/S3 from accidental deletion | true |
public_access_enabled |
Enable public endpoint (false = PrivateLink only) | true |
tags |
Custom tags to apply to all resources | {} |
GCP Configuration Options:
| Option | Description | Default |
|---|---|---|
pinecone-version |
Pinecone release version (required) | — |
gcp_project |
GCP project ID (required) | — |
region |
GCP region | us-central1 |
availability_zones |
Zones for high availability | ["us-central1-a", "us-central1-b"] |
vpc_cidr |
VPC IP range | 10.112.0.0/12 |
deletion_protection |
Protect AlloyDB/GCS from accidental deletion | true |
public_access_enabled |
Enable public endpoint (false = Private Service Connect only) | true |
labels |
Custom labels to apply to all resources | {} |
Edit Pulumi.<stack>.yaml to modify these values.
Programmatic Usage
For advanced users who want to integrate into existing infrastructure:
import pulumi
from pulumi_pinecone_byoc.aws import PineconeAWSCluster, PineconeAWSClusterArgs
config = pulumi.Config()
cluster = PineconeAWSCluster(
"pinecone-aws-cluster",
PineconeAWSClusterArgs(
pinecone_api_key=config.require_secret("pinecone_api_key"),
pinecone_version=config.require("pinecone_version"),
region=config.require("region"),
availability_zones=config.require_object("availability_zones"),
vpc_cidr=config.get("vpc_cidr") or "10.0.0.0/16",
deletion_protection=config.get_bool("deletion_protection") if config.get_bool("deletion_protection") is not None else True,
public_access_enabled=config.get_bool("public_access_enabled") if config.get_bool("public_access_enabled") is not None else True,
tags=config.get_object("tags") or {},
),
)
# Export useful values
pulumi.export("environment", cluster.environment.env_name)
pulumi.export("cluster_name", cluster.cell_name)
pulumi.export("kubeconfig", cluster.eks.kubeconfig)
Installation
Install from PyPI with cloud-specific dependencies:
# For AWS
uv add 'pulumi-pinecone-byoc[aws]'
# For GCP
uv add 'pulumi-pinecone-byoc[gcp]'
Troubleshooting
Preflight check failures
The setup wizard runs preflight checks for cloud quotas. If these fail:
AWS:
- VPC Quota - Request a limit increase via AWS Service Quotas
- Elastic IPs - Release unused EIPs or request a limit increase
- NAT Gateways - Request a limit increase
- EKS Clusters - Request a limit increase
GCP:
- APIs - Enable required APIs (compute, container, alloydb, storage, dns)
- Compute Quotas - Request CPU/disk quota increases via GCP Console
- GKE Clusters - Request a limit increase if at quota
- IP Addresses - Release unused static IPs or request more
Deployment failures
If pulumi up fails partway through:
pulumi refresh # Sync state with actual resources
pulumi up # Retry deployment
Cluster access issues
Ensure your cloud credentials match the account where the cluster is deployed:
# AWS
aws sts get-caller-identity
# GCP
gcloud auth list
gcloud config get-value project
Cleanup
To destroy all resources:
pulumi destroy
Note: If deletion_protection is enabled (default), you'll need to disable it first or manually delete protected resources.
Support
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pulumi_pinecone_byoc-0.2.0.tar.gz.
File metadata
- Download URL: pulumi_pinecone_byoc-0.2.0.tar.gz
- Upload date:
- Size: 52.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8681d0ff45904c17fa93fdb9b724e7ded04ae204ef43b8067d0aeaa6ec4bbf76
|
|
| MD5 |
d7689ea7c5199d697613277e3ffe77f6
|
|
| BLAKE2b-256 |
8bc735932dd20f20070b6e8fc9030f0399e64417876a50d9673a1718e7048313
|
Provenance
The following attestation bundles were made for pulumi_pinecone_byoc-0.2.0.tar.gz:
Publisher:
release.yaml on pinecone-io/pulumi-pinecone-byoc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pulumi_pinecone_byoc-0.2.0.tar.gz -
Subject digest:
8681d0ff45904c17fa93fdb9b724e7ded04ae204ef43b8067d0aeaa6ec4bbf76 - Sigstore transparency entry: 934126648
- Sigstore integration time:
-
Permalink:
pinecone-io/pulumi-pinecone-byoc@46371fb8795b290fb828f0fc0cfa246c2bee3ce5 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/pinecone-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@46371fb8795b290fb828f0fc0cfa246c2bee3ce5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pulumi_pinecone_byoc-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pulumi_pinecone_byoc-0.2.0-py3-none-any.whl
- Upload date:
- Size: 71.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
987b5108497bc051c47e0b56faeab300d1baaffab6800e5654c3086cb0545239
|
|
| MD5 |
2571acc93909eac6d80593502e92e4d6
|
|
| BLAKE2b-256 |
894c8ecca33e5ca83cee5fd7869d4547cb7110b74225af95bc68bbc0c8bee1b6
|
Provenance
The following attestation bundles were made for pulumi_pinecone_byoc-0.2.0-py3-none-any.whl:
Publisher:
release.yaml on pinecone-io/pulumi-pinecone-byoc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pulumi_pinecone_byoc-0.2.0-py3-none-any.whl -
Subject digest:
987b5108497bc051c47e0b56faeab300d1baaffab6800e5654c3086cb0545239 - Sigstore transparency entry: 934126706
- Sigstore integration time:
-
Permalink:
pinecone-io/pulumi-pinecone-byoc@46371fb8795b290fb828f0fc0cfa246c2bee3ce5 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/pinecone-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@46371fb8795b290fb828f0fc0cfa246c2bee3ce5 -
Trigger Event:
workflow_dispatch
-
Statement type: