---
title: "Managing your resources in Terraform can be literally easy and actually fun"
description: "incident.io's Terraform integration lets users generate readable, commented Terraform config from the existing Workflows and Schedules visual builders, and the same flow handles editing and importing existing resources."
url: "https://swe.quest/articles/managing-your-resources-in-terraform-can-be-literally-easy-and-actually-fun-1e67b490567648a5"
canonical: "https://incident.io/blog/managing-resources-in-terraform"
source: "incident.io"
published: "2024-06-25"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["infrastructure-as-code","api-design","product-engineering"]
---

# Managing your resources in Terraform can be literally easy and actually fun

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2024-06-25, 7 min read, Case study. Original: [https://incident.io/blog/managing-resources-in-terraform](https://incident.io/blog/managing-resources-in-terraform)

## Summary

incident.io's Terraform integration lets users generate readable, commented Terraform config from the existing Workflows and Schedules visual builders, and the same flow handles editing and importing existing resources. Running \`terraform apply\` marks a resource as externally managed automatically. The UI shows which resources Terraform manages and where their config lives, and blocks edits to them, with an "un-claim" escape hatch for emergencies. A separate managed-resource abstraction (managed\_by, source\_url, annotations) keeps management metadata outside each resource's data model so it can be reused for other external managers.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Infrastructure as code](https://swe.quest/tags/infrastructure-as-code.md) (Infrastructure)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [Product engineering](https://swe.quest/tags/product-engineering.md) (Engineering organization)

## Prerequisites

- Terraform basics ([easy posts on Infrastructure as code](https://swe.quest/tags/infrastructure-as-code.md?difficulty=easy))
- Terraform state and import ([easy posts on Infrastructure as code](https://swe.quest/tags/infrastructure-as-code.md?difficulty=easy))

## Keywords

Terraform, incident.io, Terraform providers

## Related posts

- [Using Terraform to Manage Infrastructure](https://swe.quest/articles/using-terraform-to-manage-infrastructure-d186c1bad18dabed.md): Shopify Engineering · 2022-03-17 · Medium · 8 min read · Infrastructure as code, Go, Configuration management, Communications
  Shopify's Conversations team replaced GUI-based configuration of Twilio TaskRouter, which routes contact-center tasks to agents, with Terraform.
- [How We Use Terraform At Slack](https://swe.quest/articles/how-we-use-terraform-at-slack-a1596aae0a45b4a5.md): Slack Engineering · 2022-10-25 · Medium · 14 min read · Infrastructure as code, Cloud platforms, CI/CD, Developer tools
  Slack runs roughly 1,400 Terraform state files across AWS, GCP, DigitalOcean and NS1, split per account, region and large service so each change touches fewer resources.
- [Onboarding yourself as an engineer at incident.io](https://swe.quest/articles/onboarding-yourself-as-an-engineer-at-incident-io-0fce0735d9296049.md): incident.io · 2024-07-05 · Medium · 4 min read · Infrastructure as code, Engineering culture, Developer productivity
  New engineers at incident.io onboard themselves by opening a PR to the infrastructure repo that adds them as a user, puts them on a team in a Jsonnet config, and defines a Spacelift dev stack.
- [Build custom API integrations with incident.io](https://swe.quest/articles/build-custom-api-integrations-with-incident-io-ae5fbcbf065c8d25.md): incident.io · 2022-04-25 · Medium · 7 min read · API design, Incidents & postmortems
  incident.io launched a public API focused on three use cases: creating incidents automatically from other systems, exporting incidents and their actions and follow-ups to BI tools, and configuring roles, severities and custom fields from external sources such as Terraform.
- [Sharding Infrastructure: The Regional Goval Project](https://swe.quest/articles/sharding-infrastructure-the-regional-goval-project-86db1e97083bbccb.md): Replit · 2024-02-14 · Medium · 7 min read · Infrastructure as code, Distributed systems, Cloud platforms, Resilience, Deployment
  Replit re-sharded the infrastructure that runs Repls (Goval) from a few unbalanced, multi-region clusters partitioned by user membership into uniformly sized, single-region clusters with Repls distributed by consistent hashing, shrinking failure domains and removing cross-region traffic.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
