# Use Cases

Source: https://docs.ops0.com/docs/introduction/use-cases

See how different teams use ops0 to solve real infrastructure challenges.

[ClickOps to IaC](#clickops-to-iac)
[Self-Service](#platform-self-service)
[K8s Incidents](#k8s-incidents)
[Compliance](#multi-cloud-compliance)
[GitOps](#gitops-terraform)

---

## Scenario 1: From ClickOps to Infrastructure as Code

Discovery + Import

Find existing resources and bring them under Terraform management

The Challenge

A fast-growing startup has 200+ AWS resources created through the console over two years. They need to:

Bring resources under version control

Enable reproducible deployments

Meet compliance requirements for SOC 2

### How ops0 Helps

1. **Discovery Scan** - ops0 scans AWS and identifies all unmanaged resources

2. **Code Creation** - Automatically creates Terraform for each resource

3. **State Import** - Imports resources into Terraform state without recreation

4. **Ongoing Management** - All future changes go through IaC with audit trail

### Result

Before

No visibility into changes

After

Complete audit trail

Before

2+ hours to set up env

After

15 minutes with Terraform

---

## Scenario 2: Platform Team Self-Service

Developer Self-Service

Let developers provision infrastructure with guardrails

The Challenge

A platform team supports 50 developers across 10 product teams. Developers constantly request:

New AWS environments

Kubernetes namespaces

Database instances

S3 buckets

The platform team is a bottleneck, handling tickets manually.

### How ops0 Helps

Templated Projects

Platform team creates approved Terraform modules. Developers use them through ops0 without writing code.

Policy Guardrails

OPA policies ensure all infrastructure meets security standards automatically.

Approval Workflows

Production changes require platform team approval. Dev/staging deploy instantly.

Cost Controls

Policies block expensive resource types. Cost estimation shows impact before deploy.

### Result

10 min

Provision time

90%

Less tickets

0

Policy violations

High

Dev satisfaction

---

## Scenario 3: Kubernetes Incident Response

AI-Powered Troubleshooting

Detect, analyze, and resolve incidents faster

The Challenge

An SRE team manages 15 Kubernetes clusters across three cloud providers. When pods crash:

It takes 20+ minutes to identify the root cause

Logs are scattered across multiple tools

Junior engineers struggle with complex debugging

On-call rotation is stressful

### How ops0 Helps

1. **Automatic Detection** - ops0 agent detects CrashLoopBackOff, OOM, ImagePull failures instantly

2. **AI Analysis** - ops0 analyzes logs, events, and resource configs to identify root cause

3. **Suggested Fixes** - AI provides specific remediation steps with commands to run

4. **One-Click Actions** - Apply fixes directly from ops0 without switching tools

### Example Incident Flow

10:15:03

Pod "api-server-7d9f8" enters CrashLoopBackOff

10:15:05 - ops0 analyzes:

• Reads pod logs: "FATAL: database connection timeout"

• Checks events: Pod restarted 5 times in 2 minutes

• Examines config: DATABASE_URL points to db.internal:5432

• Queries cluster: No pods matching "db.internal" found

10:15:08 - AI Summary:

"The api-server pod is crashing because it cannot connect to the database at db.internal:5432. The database service doesn't exist in this namespace."

Suggested: Update DATABASE_URL to postgres.default.svc.cluster.local:5432

### Result

3 min

Time to identify

12 min

Time to resolve

85%

Less escalations

Low

On-call stress

---

## Scenario 4: Multi-Cloud Compliance

Unified Policy Enforcement

Enforce security standards across AWS, GCP, and Azure

The Challenge

An enterprise runs workloads across AWS, GCP, and Azure. They need to:

Ensure all resources meet security baselines

Create compliance reports for auditors

Prevent non-compliant deployments

Track remediation of violations

### How ops0 Helps

Unified Policy Engine

Write policies once, enforce across all clouds. OPA/Rego with AI-assisted creation.

Pre-Deployment Checks

Every deployment is validated. Non-compliant changes blocked before they reach production.

Compliance Dashboard

Real-time view of compliance status. Filter by framework, cloud, or team.

Audit Reports

Create reports mapping controls to resources. Evidence collection for auditors.

### Example Policies

Encryption at Rest

All storage must have encryption enabled

Network Security

No 0.0.0.0/0 on SSH ports

Resource Tagging

owner, environment, cost-center required

Data Residency

EU data stays in eu-west regions

### Result

1 hr

Audit report

0

Non-compliant in prod

Real-time

Violation detection

0

Audit findings

---

## Scenario 5: GitOps for Terraform

PR-Based Infrastructure

All changes through Git with automated plan, apply, and drift detection

The Challenge

A team wants to implement GitOps for infrastructure:

All changes must go through pull requests

Terraform plans should appear as PR comments

Merging to main should trigger deployment

Manual console changes should be detected

### How ops0 Helps

Developer creates PR

ops0 GitHub Integration

• Runs terraform plan

• Posts plan as PR comment

• Runs policy checks

• Shows cost estimation

Team reviews and merges PR

ops0 Workflow triggers

• Runs terraform apply

• Updates state

• Posts result to Slack

### Drift Detection

Daily at 6 AM

• Compares Terraform state to cloud

• Identifies manual changes

• Creates issue/notification

• Optionally auto-remediate

### Result

All via PR

Plan comments

Auto deploy

Drift detection

---

## Next Steps

[Quick Start Get started with ops0 in 5 minutes](https://docs.ops0.com/docs/getting-started)
[How-To Guides Step-by-step guides for common tasks](https://docs.ops0.com/docs/how-to)
