Skip to main content
The ctrlc sync command discovers and syncs infrastructure resources into Ctrlplane. Each subcommand targets a specific provider or input method.

Usage

ctrlc sync <subcommand> [flags]

Subcommands

SubcommandDescription
pipeRead resources from stdin as JSON
kubernetesSync Kubernetes cluster resources
awsSync AWS resources (EKS, ECS, etc.)
google-cloudSync Google Cloud resources
azureSync Azure resources
terraformSync Terraform state resources
helmSync Helm releases
githubSync GitHub repositories
vclusterSync virtual clusters

Common Flags

Most sync subcommands support these flags:
FlagDescription
--providerResource provider name
--intervalRun continuously on an interval (e.g., 5m, 1h)

Examples

# One-time sync
ctrlc sync kubernetes --cluster-name prod --cluster-identifier prod-us-east-1

# Continuous sync every 5 minutes
ctrlc sync kubernetes --cluster-name prod --cluster-identifier prod-us-east-1 --interval 5m

# Pipe custom resources from stdin
./discover.sh | ctrlc sync pipe --provider "custom"

Next Steps