> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cortex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage Terraform infrastructure

export const RecipeBadges = ({badges = []}) => {
  const map = {
    "recipe": {
      label: "Recipe",
      color: "#A86400"
    },
    "ai-excellence": {
      label: "AI excellence",
      color: "#653EE8"
    },
    "production-readiness": {
      label: "Production readiness",
      color: "#226686"
    },
    "incident-mgmt": {
      label: "Incident management",
      color: "#86198F"
    },
    "migrations": {
      label: "Migrations",
      color: "#0E7C66"
    },
    "compliance": {
      label: "Compliance",
      color: "#475569"
    },
    "dora": {
      label: "DORA metrics",
      color: "#1D4ED8"
    },
    "security": {
      label: "Security",
      color: "#B42318"
    },
    "operational-readiness": {
      label: "Operational readiness",
      color: "#B54708"
    },
    "dev-onboarding": {
      label: "Developer onboarding",
      color: "#C11574"
    }
  };
  const items = badges.map(key => map[key]).filter(Boolean);
  if (items.length === 0) return null;
  return <div className="not-prose flex flex-wrap gap-2 mb-6">
      {items.map(b => <span key={b.label} className="rounded-lg px-2 py-1 text-xs font-medium" style={{
    backgroundColor: b.color,
    color: b.textColor || "#FFFFFF"
  }}>
          {b.label}
        </span>)}
    </div>;
};

<RecipeBadges badges={["recipe", "production-readiness"]} />

You can use Workflows in Cortex to manage different aspects of Terraform infrastructure, including provisioning cloud resources, maintaining the resources, and destroying the resource to remove it from your Cortex workspace.

Handling these processes via a Workflow allows you to:

* **Automate infrastructure provisioning**: Use a Workflow to trigger the creation of cloud resources (such as AWS EC2 instances) by updating Terraform variables and executing runs
* **Enable self-service infrastructure requests**: Using a Workflow to streamline Terraform processes, organizations can enable self-service provisioning for developers.
* **Standardize environment bootstrapping:** Using the Scaffolder, teams can bootstrap new projects or environments with pre-defined Terraform templates, ensuring consistency and compliance with organizational standards.

See end-to-end Workflow examples in the following pages:

* [Provision EC2 instance with Terraform](/guides/production-readiness/terraform/provision)
* [Update EC2 instance](/guides/production-readiness/terraform/update)
* [Terraform destroy](/guides/production-readiness/terraform/destroy)


## Related topics

- [Managing Terraform infra in Cortex](/ingesting-data-into-cortex/entities-overview/entities/terraform.md)
- [Workflows](/guides/product-areas/workflows.md)
- [Manage entities using Cortex Terraform Provider](/ingesting-data-into-cortex/entities-overview/entities/terraform/terraform-provider.md)
