# How-To Guides

Source: https://docs.ops0.com/docs/how-to

Step-by-step tutorials for every ops0 module. Each guide walks you through a real scenario from prerequisites to verification.

---

## Getting Started

New to ops0? Start here — one guide per module, zero-to-working in under 30 minutes each.

- [Run Your First Discovery Scan](https://docs.ops0.com/docs/how-to/first-discovery): Scan your cloud account, review discovered resources, and import them into an IaC project.

- [Your First IaC Deployment](https://docs.ops0.com/docs/how-to/first-iac-deployment): Create a project, write Terraform, run a plan, and deploy infrastructure end to end.

- [Connect a Kubernetes Cluster](https://docs.ops0.com/docs/how-to/connect-kubernetes-cluster): Connect EKS, GKE, or AKS and start monitoring workloads and costs.

- [Build Your First Workflow](https://docs.ops0.com/docs/how-to/first-workflow): Build an approval-gated pipeline: plan, review, apply, notify.

- [Deploy Your First Configuration](https://docs.ops0.com/docs/how-to/first-configuration): Write an Ansible playbook and deploy it to a server with dry-run verification.

---

## Infrastructure Management

- [Migrate ClickOps to IaC](https://docs.ops0.com/docs/how-to/migrate-clickops-to-iac): Scan existing cloud resources, generate Terraform, and bring everything under version control.

- [Import an Existing Terraform Project](https://docs.ops0.com/docs/how-to/import-terraform-project): Bring a Terraform project from GitHub or local into ops0 without touching your state file.

- [Set Up GitOps Workflow](https://docs.ops0.com/docs/how-to/setup-gitops): Route all infrastructure changes through pull requests with plan output and review gates.

- [Automate Deployments](https://docs.ops0.com/docs/how-to/automate-deployments): Use workflows and schedules to automate Terraform plan and apply.

- [Schedule Recurring Deployments](https://docs.ops0.com/docs/how-to/schedule-deployments): Set one-off maintenance window deploys or recurring cron-based applies.

- [Detect and Fix Infrastructure Drift](https://docs.ops0.com/docs/how-to/detect-drift): Find unauthorized manual changes using session comparison and IaC plan, then remediate.

- [Set Up Multi-Cloud](https://docs.ops0.com/docs/how-to/setup-multi-cloud): Manage AWS, GCP, and Azure from a single ops0 organization with unified policies.

---

## Security & Compliance

- [Scan for Security Vulnerabilities](https://docs.ops0.com/docs/how-to/scan-security-vulnerabilities): Run cloud infrastructure and Kubernetes container image scans to find CVEs and misconfigurations.

- [Enforce Security Policies](https://docs.ops0.com/docs/how-to/enforce-security-policies): Write OPA/Rego policies that block non-compliant IaC deployments before they apply.

- [Create a Policy and Block a Deployment](https://docs.ops0.com/docs/how-to/policies-and-compliance): Step-by-step: write a policy and watch it block a non-compliant Terraform plan.

- [Create Approval Workflows](https://docs.ops0.com/docs/how-to/approval-workflows): Require a designated approver to review plan output before any production deployment applies.

---

## Kubernetes Operations

- [Debug Kubernetes Issues](https://docs.ops0.com/docs/how-to/debug-kubernetes): Use AI-assisted troubleshooting to diagnose and fix pod failures, OOMKills, and crashloops.

- [Kubernetes Cost Optimization](https://docs.ops0.com/docs/how-to/kubernetes-cost-optimization): Install OpenCost, find over-provisioned workloads, schedule idle namespace shutdowns, remove orphans.

---

## Team & Access

- [Manage Team Access with Roles](https://docs.ops0.com/docs/how-to/manage-team-access): Invite teammates, assign org and project roles, and set up approvers for deployment gates.

- [Set Up SSO for Your Organization](https://docs.ops0.com/docs/how-to/setup-sso): Connect Okta, Azure AD, or any OIDC/SAML provider so your team signs in with company credentials.

---

## Cost Management

- [Cost Optimization](https://docs.ops0.com/docs/how-to/cost-optimization): Use cost estimation, policies, and discovery to control cloud spending before and after deployments.

- [Kubernetes Cost Optimization](https://docs.ops0.com/docs/how-to/kubernetes-cost-optimization): Per-namespace cost visibility, right-sizing, and idle resource cleanup for Kubernetes clusters.

---

## Guide Format

Every guide follows the same structure so you always know where to look:

| Section | Purpose |
|---------|---------|
| **Scenario** | The real-world situation this guide solves |
| **Prerequisites** | What you need before starting |
| **Steps** | Numbered walkthrough from start to finish |
| **Verification** | How to confirm it worked correctly |
| **Troubleshooting** | The most common errors and their fixes |
| **Next Steps** | Where to go from here |
