Skip to main content

End-to-End Operator Examples

This guide provides comprehensive, production-ready Terraform examples for operators managing Kubiya Control Plane infrastructure. Each example demonstrates real-world use cases with best practices.

Example 1: Complete Platform Setup

This example creates a full platform infrastructure with multiple environments, teams, agents, skills, policies, and automated jobs.

Use Case

Set up a complete platform engineering infrastructure for a medium-sized organization with separate production, staging, and development environments.

Deployment Instructions

  1. Set up authentication:
  2. Initialize and apply:
  3. Verify resources:

Example 2: GitOps Workflow with Multiple Environments

This example demonstrates using Terraform workspaces to manage multiple environments with GitOps practices.

Directory Structure

variables.tf

environments/production.tfvars

environments/staging.tfvars

Deployment Workflow

Example 3: CI/CD Pipeline Integration

GitHub Actions Workflow

Example 4: Self-Hosted Control Plane with Custom Network

For self-hosted deployments in private networks:

Example 5: Using Data Sources

Look up and reference existing resources:

Best Practices Summary

1. State Management

2. Secrets Management

Never store secrets in Terraform configurations:

3. Resource Naming

Use consistent, descriptive naming:

4. Modular Design

Create reusable modules:

Additional Resources

Support

For questions or issues: