CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
🌙☀️
Log inStart free
Home/Templates/DevOps & SRE

🛠️ DevOps & SRE · Flowchart

Infrastructure as Code Pipeline

How infrastructure changes are made safely with Terraform: plan on pull request, policy checks, approval, apply and drift detection.

More DevOps & SRE templates

Drawing diagram…

What this diagram shows

  • Every change shows a plan before anything is applied
  • Policy checks block risky changes like public buckets
  • A nightly job detects manual changes made outside Git

Prompt used

Terraform workflow: an engineer opens a pull request; CI runs terraform fmt, validate and plan, and posts the plan as a comment. Policy checks (OPA) block public S3 buckets and open security groups. After approval and merge, apply runs with a state lock. A nightly job runs plan against production and alerts if it finds drift.

Mermaid code
flowchart TD
  A[Open pull request] --> B[terraform fmt and validate]
  B --> C[terraform plan]
  C --> D[Post plan as PR comment]
  D --> E{Policy checks pass?}
  E -->|No| X[Block merge with reason]
  E -->|Yes| F[Review and approve]
  F --> G[Merge to main]
  G --> H[Lock state]
  H --> I[terraform apply]
  I --> J[Unlock state]
  J --> K[Nightly drift check]
  K --> L{Drift found?}
  L -->|Yes| M[Alert platform team]
  L -->|No| N[No action]

Related templates

FlowchartDevOps & SRE

GitOps Deployment Flow

How a code change reaches production with GitOps: CI builds and tests, the image tag is written to a config repo, and Argo CD syncs the cluster to match Git.

C4 ArchitectureProDevOps & SRE

Observability Stack (Metrics, Logs, Traces)

A complete observability setup: OpenTelemetry collects metrics, logs and traces from services, which are stored separately and viewed together in Grafana with alerting.

State MachineDevOps & SRE

Incident Lifecycle

The stages of a production incident from the first alert to the postmortem, with severity escalation along the way.

SequenceDevOps & SRE

Incident Response Sequence

Who does what when production breaks: monitoring pages the on-call engineer, an incident channel is opened, customers are updated and the fix is rolled out.

DeploymentProDevOps & SRE

Blue-Green Deployment

A blue-green setup where a new version is deployed next to the live one and traffic is switched only after it passes checks, allowing instant rollback.

C4 ArchitectureProDevOps & SRE

Internal Developer Platform

A self-service platform for developers: a Backstage portal with templates that create repos, pipelines and environments without tickets to the ops team.